16,022,362 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by StupidSteve (Top 20 by date)
StupidSteve
11-Apr-11 10:17am
View
Yes you are right:) thank you very much for your reply and help:)
StupidSteve
11-Apr-11 5:49am
View
O, i realized that i am using the VC complier in VC2010 but the GCC compiler in CD, does the VC complier has more useful features that makes its speed lower?
BTW, I really love using VC to debug--- it works much better when debugging a program.
StupidSteve
11-Apr-11 5:39am
View
Now i also doubt that VC2010 has more "visual effect" and caused the relatively low running speed, I am using CD 10.05 and VC2010professional at the same time--- believe that I can sense the different of speed---- maybe the difference has nothing to do with the compiler-- but its because of the different software platform.
StupidSteve
10-Apr-11 21:42pm
View
Thank you Albert! Now i understand your points:)
Thank you so much that you helped me so many times!~
StupidSteve
10-Apr-11 21:41pm
View
Thank you so much Krmed! I've tried you method and it worked out okay~
After that i improved my program by adding a sentence "printf("\n");"right after defining int in the printarray function.
so next time when I want to call an array into a function i have to pass the address of the first element in that array, am i right?
StupidSteve
10-Apr-11 20:43pm
View
it complies and runs the same program faster than VC, nevertheless that it's coding is more intelligent than VC-- it could automatically fill in some characters so that you don't have to type again~have a try~
StupidSteve
10-Apr-11 7:35am
View
Thank you very much and I know that pointer is more powerful when manipulating data----the problem is i am following the K&R C bible and i am forcing myself to achieve this function using very basic sentences....
StupidSteve
10-Apr-11 6:34am
View
Thank you very much but I forgot to inform you that my original sentence was for(i=0; i
StupidSteve
9-Apr-11 23:08pm
View
Hi!~ Albert!
I find that there is an option of choosing "which compiler you would like to use?" and I chose "GNU GCC" compiler, is this the option you mean?
StupidSteve
9-Apr-11 23:01pm
View
You are right, I think what I was firstly doing yesterday with CodeBlocks was not so "enforced" enough with C's rules. And I changed it into (.cpp) and it turned to be okay.
But in the CodeBlocks (for more info you may check its wikipedia website http://en.wikipedia.org/wiki/Codeblocks), I remembered clearly that I built a console project and add a C file (.c) as a headfile to this project. Maybe there is some other method to force Codeblocks to compile in C and I will try to find it.
I think VC is better for a beginner, for it enforces the rules. But i really like CodeBlocks--- its faster.
Thank you very much for your help!~
StupidSteve
9-Apr-11 8:54am
View
okay i know it~ Thanks alot~
have a nice weekend:)
StupidSteve
9-Apr-11 8:46am
View
BTW, could you answer my question above?
what on earth leads to this kind of difference between CodeBlocks and VC in debugging a program?
which piece of my code is more acceptable in form?
THX alot
StupidSteve
9-Apr-11 8:26am
View
Oops...i think i have to tell you that in China there is something works like a "reverse magic" when naming something, i wanna be smart so i picked this funny cybername:)
Nevermind~ and i just wonder which is better for a newcomer to C just like me---the CodeBlocks or the VC? do you have an advice?
StupidSteve
8-Apr-11 13:14pm
View
yes you are right!
i should type () firstly before typing anything between them---- so it makes this kind of typo happens less often~
Thanks for your advice!
StupidSteve
8-Apr-11 13:08pm
View
okay~I finally understand your points~
in fact i was thinking that perhaps your were programming in kind of German C:)
BTW, I like German VERY MUCH!~
StupidSteve
8-Apr-11 12:30pm
View
And I finally find out what's wrong with my 2nd program...
it should be :
...
while ((c=getchar())!=EOF)
...
so it's a typo... :)
StupidSteve
8-Apr-11 12:05pm
View
Thank you very much...but... i cannot read your code and i copied them into VC2010 and several errors had been detected out...
Thank you all the same~!
StupidSteve
8-Apr-11 12:02pm
View
I rewrite it into:
while ((c=getchar())!=EOF)
{
if (c!=' ')
{
if (state==OUT)
{
printf(" ");
state=IN;
putchar(c);
}
else putchar(c);
}
else state=OUT;
}
system("Pause");
}
and the first program works out okay~ finally ~
StupidSteve
8-Apr-11 12:00pm
View
O! I finally understand that! It is such a mistake...
Thank you so much!!!!
StupidSteve
8-Apr-11 11:38am
View
Okay, THX for your comment and I am also a newcomer to this website:)
Show More