/ *Tell us exactly what you have tried (preferably step-by-step) instead of 
the broad generalization of "well, I tried stuff and it didn't work." 
Being descriptive goes a long way to obtaining a solution to a problem.*/

Thanks for your responses, 


After installation.

clicked on file, then open, i choose 'open file', 

i navigate to my .c files and double click on them.

a tab titled my.c file is opened and i can see the codes, but i can start run, 
'cos the debug button is inactive


 then i googled and found this.
http://cplus.about.com/od/learningc/qt/compilingc.htm
Here is how to compile C code. Launch Visual C++ 2005 Express Edition and 
create a new project. Choose Win 32and Win 32 Console Application. Enter a name 
in the Namebox below.
Now press the Next button and then the Finish button. This will generate a file 
calledname.cpp where name is your entered project name. Now look to the 
Solution Explorer (if you can't see it, click View on the menu then Solution 
Explorer), click name.cpp and press F2. Now press backspace twice so you end up 
with name.c.
Press F7 To compile. If you get an error that say "fatal error C1853: 
'Debug\name.pch' precompiled header file is from a previous version of the 
compiler, or the precompiled header is C++ and you are using it from C (or vice 
versa)" then just click the project menu, properties and change Create/Use 
Precompiled Header from Use Precompiled Header toCreate Precompoiled Header. 
Press the Apply button. It should now compile successfully when you press F7.


apparently this instructions is for the 2005 edition. But i tried it anyway.
With the default code still there I got that first error, c1583
I did the followed the next instruction, then the program ran and exited quickly
Afterwards i deleted the default source code entirely and copied source codes i 
have written and compiled before.

then the error shown below emerged.

1>------ Build started: Project: dell 3.11b, Configuration: Debug Win32 ------
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>dell 3.11b.c
1>c:\users\wolexzo\documents\visual studio 2008\projects\dell 3.11b\dell 
3.11b\dell 3.11b.c(10) : warning C4996: 'scanf': This function or variable may 
be unsafe. Consider using scanf_s instead. To disable deprecation, use 
_CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(306) 
: see declaration of 'scanf'
1>c:\users\wolexzo\documents\visual studio 2008\projects\dell 3.11b\dell 
3.11b\dell 3.11b.c(20) : warning C4013: 'system' undefined; assuming extern 
returning int
1>c:\users\wolexzo\documents\visual studio 2008\projects\dell 3.11b\dell 
3.11b\dell 3.11b.c(26) : error C2857: '#include' statement specified with the 
/Ycstdafx.h command-line option was not found in the source file
1>Build log was saved at "file://c:\Users\Wolexzo\Documents\Visual Studio 
2008\Projects\dell 3.11b\dell 3.11b\Debug\BuildLog.htm"
1>dell 3.11b - 1 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

So what went wrong. why doesn't it run this code and why it exited when it 
did(for the default source code)

Lets C!
Olufowobi L.O


      

[Non-text portions of this message have been removed]

Reply via email to