Home > Back-end >  Dev not compile c source file
Dev not compile c source file

Time:10-01

I am using c + + 4.9.9.2 dev
This is the program I wrote that I compiled to run every time he said I didn't compile
#include
#include
Int main ()
{
Char ch;
Int n=0;
Time_t t1, t2;
Time (& amp; T1);
While ((ch=getchar ())!='#')
N++;
Time (& amp; T2);
Print (" \ n the total input characters; % d ", n);
Printf (" \ n the average entry speed; % 2 f/s ", 1.0 * n/(t2 - t1));
return 0;
}

CodePudding user response:

Print (" \ n the total input characters; % d ", n);
This line of your "printf" wrong number,

CodePudding user response:

The source file is not compile your program used in certain functions cannot be found in the header file, also didn't be defined in the main program,

CodePudding user response:

Print (" \ n the total input characters; % d ", n);
This line of your "printf" wrong number,
According to your circumstance, can successfully, you did not compile cannot run

CodePudding user response:

Print to print f

Has prompted because you have been did not compile successfully

CodePudding user response:

http://blog.csdn.net/moodytong/article/details/7167834

CodePudding user response:

About whether he is suitable for programming is very simple test:
On a newspaper or magazine articles, for a period of about 1000 words in Word input again, after losing to refer to the following answer:

A. there are more than 10 words or punctuation
B there is no words or punctuation mistakes and dare to bet for this
No words or punctuation errors and C fonts and layout fully consistent with the original
D print on the translucent paper and check the same original overlap, and feel very with a sense of accomplishment

A is not suitable for programming (reason: typing accuracy is low, careless)
B junior programmer (reason: typing accuracy high, careful and meticulous, confident, understand the whole Angle of half Angle concept)
C senior programmer (reason: in the B on the basis of understanding the font and layout is also an important factor of computer to print, but compared to D paranoid enough, strives for perfection, the results can verify)
D software project manager (reason: to be able to give convincing for project detailed requirements to the pole and typical test cases, users almost pick is not at fault, major!)

If want to from A to B, to my resources http://download.csdn.net/detail/zhao4zhong1/4084259 download "for programmers keyboard practice"

CodePudding user response:

I just find a positive solution is also the problem for compile tools - options - set TDM - GCC compiler configuration there 4.9.2 64 - bit Debug to TDM - GCC 4.9.2 64 - bit release

CodePudding user response:

I just find a positive solution is also the problem for not press F11, F12 can

CodePudding user response:

Advice directly in the center of the tencent software as a free download
  • Related