Thursday, July 30, 2009

I/O header file error in c language?

Whenever I tri to compile the c program it give me error that i/o header file is not included.i have set the right path in directory still It is giving me error .How can I remove it. Hel p me plz .

I/O header file error in c language?
You mean stdio.h? You should include it like this:





#include %26lt;stdio.h%26gt;





A common mistake is to use quotes instead of angle brackets, but all system header files require the brackets.
Reply:YOU FIRST CHECK OUT WHETHER THE IO HEADER FILE IS IN INCLUDE DIRECTORY .IF IT IS NOT THERE PLEASE COPY FROM ANY WHERE AND PUT IT IN THAT INCLUDE DIRECTORY.IF U ARE USING C EDITOR FROM UR C:WINDOWS U HAVE TO COPY THE ENTIRE 'C' PROGRAMFILES IN THAT(C:\).IF NOT U CAN USE OTHER DRIVES BY SETTING PATHS AS FOLLOWS:


1.GO FOR OPTIONS INTHAT GO FOR DIRECTORIES :


2.HERE YOU HAVE FIEDS TO ENTER


a.INCLUDE\


b.LIBRARIES\


c.OUTPUT\


PLEASE FULFILL THE FIEDS AS FOR UR 'C' SETTINGS.


AND ENJOY THE 'C' PROGRAMING.


About a System File on my C:\ Drive, why does pagefile.sys appears?

OS: Windows XP SP2


C:\pagefile.sys 737,280kBytes (almost 1GB!)


It seems to be updated every day.


Where does this file come from and why is it needed? I don't think that was originally present.


i'll appreciate any comments, thank you.

About a System File on my C:\ Drive, why does pagefile.sys appears?
This is a temporary file used by the memory manager, when you run out of System memory it uses your hard disk instead, this is slower.





To change it Right Hand mouse click my Computer, Properties,Advanced, Performance

peony

Can. I take a single file as a copy off Drive 'C' and 'D' ??? Pl Guide me some one ?

Pl note that I am running Win 98 on 'C'. Then taken a copy by norton ghost as one file of drive 'C'. Then I installed Win XP sp-2 as new installation on drive 'D'. Now my system has 2 operating system simantaniasly. -- Now i want to take a single file as copy for both drive. Otherwise i want to take a copy as single file off drive 'D'

Can. I take a single file as a copy off Drive 'C' and 'D' ??? Pl Guide me some one ?
The Ghost Image of your 98SE partition is for "disaster recovery" purposes ONLY, leave it alone!!!





If you are really asking: "How do I copy my 98SE personal files into XP?", here's how:





In XP, open the C: drive and find your personal data. Then, copy %26amp; paste into XP's My Documents folder. Done.


What does this mean,checking file system on c?

when i restart my pc, i get a blue screen that saids


windows needs to check file system on c


the type of file system is NTFS


One of your disk needs to be checked for consistency.





I get this message ever so often for the pass year.when i allow it to go on it never tells me anything is wrong.


can anyone tell me what is wrong or why it is doing this or if there is anything i can do to stop it.

What does this mean,checking file system on c?
Alomst anything can go wrong with a hard drive at any given time for so many reasons. There are a few initial tests that the hardware or software (OS) can check at start up that may indicate there is a problem w/ the "consistency" of the hard drive. Your OS (likely XP, Vista or NT) is running chkdsk which is a program to fix those programs.





Problems such as internal file allocation tables, file integrity, file pointers, and many more can easily get corrupted and sometimes just as easily fixed. My experience is that if it starts happening a lot (more frequently) that your hard drive could be failing and I would suggest replacing it before it does.





Another common cause to this is powering off the machine instead of using the "Shut Down" inside of Windows.
Reply:Check Disk is a utility for Windows XP to get ride of on the items that have crupted data from last time shut down you can stop this normally by shutting down Windows by clicking Start %26gt; Turn Off Computer %26gt; Turn Off


More Info From Below


http://www.raymond.cc/blog/archives/2008...
Reply:Errors abound with windows sometimes, even small ones. Over time, unexpected shutdowns, crashes, ppl turning off the pc at the power button, etc. causes system errors on the disk. Windows is doing a quick chkdisk.





You can do one yourself and get a full report by going into a command console and typing "chkdsk /f /r". Answer Y for yes at the prompt and sit back and wait.





EDIT:Enable or Disable Scandisk/Chkdsk on system reboot


If you disable the automatic execution of Scandisk (Win98, ME) or Chkdsk (Win2K, XP), you should run it manually about every two weeks to maintain the integrity of your PC's file system.





Windows XP





Start %26gt; Run %26gt; chkntfs /x %26lt;drive%26gt; [drive] [drive]





For example, if you want to disable Chkdsk from running on drive C: chkntfs /x c:





Chkntfs works by modifying the BootExcecute value in the Registry.


HKEY_LOCAL_MACHINE\SYSTEM\


CURRENTCONTROLSET\


CONTROL\Session Manager


The default value is BootExecute:REG_MULTI_SZ:autocheck autochk *





Chkdsk /f /r is unaffected by chkntfs and can be run to check volumes manually on the next system reboot.





To restore the automatic execution of Chkdsk, you can add this registry file .





[HKEY_LOCAL_MACHINE\SYSTEM\


CurrentControlSet\Control\Session Manager]


"BootExecute"=hex(7):61,75,74,


6f,63,68,


65,63,6b,20,61,75,74,6f,63,


68,6b,20,2a,00,00
Reply:Its part of the CHKDSK function. It double checks the different types of memory (RAM, HD) and the file system (the thing that dictates how everything you save will be mapped out and where on the hard drive it will save to) to make sure they are working fine. Check the wiki article for more.





Hope this helps ;)
Reply:ALLWAYS when u want to turn the pc off: click on the "Start" button, then "Shut down..." and wait till it turns off or shows the message: "It is now safe to turn off your pc". Just before this switch it off.
Reply:..Its because ..u didnt shutdown properly........


just let it ..Check once...and it wont show up again ....if u shutdown the next time properly....


......................................... nothing wrong...
Reply:This is Windows scanning your Hard Drive disk's physical surface looking for bad sectors. What could cause this disk scan to occur most likely is from powering off the computer incorrectly, like holding down the power button without allowing Windows to properly go through it's Shutdown procedure. Make sure you are clicking the shutdown button when you are shutting down and if needed, Windows should prompt you when it is safe to turn off the computer especially if it is an old computer. For newer computers it may shut off automatically after it completes the Shutdown procedures. Another alternative could be that your hard drive is going bad. If this is the case you might want to consider logging in as the local administrator or power user so that you can run a "Scan Disk" on the drive to try and detect bad sectors so that the operating system does not write on them and it can also try to self-repair itself as well. It will usually take a bit longer than a regular scan because it will try to fix the bad sectors it finds but again heres how you can do that. In XP you can go about doing this by clicking on start %26gt; then click on run %26gt; type in this new box "cmd" then hit ok or enter. %26gt; This should bring up a black box that you can type in %26gt; Type the following:





chkdsk /f





There is a space in between the dsk part and the /f.


Once this is entered, hit "Enter" on your keyboard and it will prompt you most likely saying that the disk is in use or cannot be mounted which means it cannot be scanned because you are running Windows on it. Just simply hit "Y" for yes and it will prompt you with a success message saying that it should run next time you restart. Restart when desired and the utility will run. If you find that you repeatedly have to perform this operation to fix the Disk Checks upon startup you might want to start considering buying a new hard drive to replace the one you have as these are signs of the physical hardware starting to fail. You can obtain one from any local computer repair shops or your computer manufacturer if you went through any. Good luck and I hope this helps.


C++ input file question?

I have a given text file that I need to read from with the following conditions:


First line contains names of N places


Each successive line contains a name of one of the places followed by an integer value, then the names of the places it is connected to and an integer distance





Here is an example file:





Miami Orlando Detroit Dallas


Miami 10 Orlando 5 Dallas 20


Orlando 8 Dallas 15 Detroit 40


Detroit 15 Dallas 50


Dallas 20 Miami 10 Orlando 15





First line lists the places...second line lists Miami, it's value of 10, it's connections to Orlando and Dallas and its distances to them (distance to Orlando is 5, distance to Dallas 20).





Basically, I need to read a file like this in and store it in a vector...The vector is of type pair%26lt;Node%26lt;T%26gt;*, int%26gt; where T is just a templated type, int is the distance. So each location in the vector will contain a Node which will just be the name of the place, and the distance as a pair.





How would I read these files in?

C++ input file question?
I would suggest you use the getline() function to read each line into a string, then parse the string. You can use eof() to detect the eof, but with the rules you stated, that is necessary only to check for the file NOT following the rules.





Hope this helps.


"Checking File System on C" [Not Like previous Problems][I am Desperate]?

You have probably seen people complain about how their computer boot up with a "Checking File System on C" warning, and that it will start checking it in 9 or 10 seconds.





My problem is that I get that message too every time I boot it up but it stop at Stage 2 of 3.





I have tried using Safe Mode with the Command Prompt and typing "chkdsk" but it also stops, so checking it will not help.





I need an alternative way to prevent it from showing up.

"Checking File System on C" [Not Like previous Problems][I am Desperate]?
My guess is that you have a bunch of bad sectors on the physical disk. You may want to replace it. Corrputed sectors can be walled off for a time, but the disease isn't cured. If you can save your data now, you could try a low-level format and hope for the best.
Reply:can u get to system restore? Or, when u restart at the very beginning, press F8 and use your arrow keys and try sytem debugging or try when system last worked good. Try those options. It sounds like a worm. good luck

long stem roses

C++ and its exe file?

If I have only the .exe file written from C++, how can view its source code?

C++ and its exe file?
If the source has been compiled with the option enabled to generate debugging information, then you can open the executable file with your favorite debugger such as GDB, VS C++ Debugger, Borland Debugger ...etc.


Usually, most compilers disable this option by default unless the user enabled it manually.
Reply:use bloodshed or marcosoft to look at your source code
Reply:Generally you can't since it's not easy to decompile an exe like you can with a java .class file for example. However, if it is a debug version, use a hex editor and a disassembler to get clues about the construction.


If you are a fairly competent programmer, you should be able to figure out what the exe does and uses the information from the disassembler to deconstruct the inner workings.