A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

Looking for A Good C++ Program. Thing.

914 views · started by ksrocks333 ·
#1
Looking for A Good C++ Program. Thing.
Ok, in my intro to C++ class we use this great program called Microsoft Visual C++ 6.0. It's very nice, in easily lets you make new console applications and adds them to source files, and the running you program is easy, it compiles everything saves changes and all that good stuff. I want to practice coding at my house. Is there a good *free* program that does most of these things? I couldn't really find the one we are using, and when I did the setup wouldn't work for me, so, can anyone help me out?
#4
What's the full program? The only time it should say you forgot to include something is if you're using a function that's defined by that header. Also, make sure you have that header installed/downloaded/whatever.
#5
GAMEchief wrote:
What's the full program? The only time it should say you forgot to include something is if you're using a function that's defined by that header. Also, make sure you have that header installed/downloaded/whatever.


#include <iostream>

int main ()
{
cout<< "test" <<endl;
return 0;
}

then I get:

fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?

then I change it to:

#include "stdafx.h"

int main ()
{
cout<< "test" <<endl;
return 0;
}

then I get:

error C2065: 'cout' : undeclared identifier
error C2065: 'endl' : undeclared identifier
#6
ksrocks333 wrote:
#include <iostream>

int main ()
{
cout<< "test" <<endl;
return 0;
}

then I get:

fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?

then I change it to:

#include "stdafx.h"

int main ()
{
cout<< "test" <<endl;
return 0;
}

then I get:

error C2065: 'cout' : undeclared identifier
error C2065: 'endl' : undeclared identifier


Try This:
#include <iostream>
#include "stdafx.h"

int main ()
{
cout<< "test" <<endl;
return 0;
}


If that doesn't work I would look here and re-code based on what you are doing... {Crtl + F} Then type 'Count'

PS: I strongly suggest Visual Basic...
#7
Try This:


If that doesn't work I would look here and re-code based on what you are doing... {Crtl + F} Then type 'Count'

PS: I strongly suggest Visual Basic...


What you suggested didn't work either, and that website you suggested doesn't have anything like I'm working on D:. It's weird, we're workin on for loops, while loops, if else statements, and cout<< is just something we use to display text...I don't know why nothing is recognized, In school we use Visual C++ 6.0 or something and it recognizes all of that. D:
#8
ksrocks333 wrote:
What you suggested didn't work either, and that website you suggested doesn't have anything like I'm working on D:. It's weird, we're workin on for loops, while loops, if else statements, and cout<< is just something we use to display text...I don't know why nothing is recognized, In school we use Visual C++ 6.0 or something and it recognizes all of that. D:


I suggest talking to your teacher... I haven't learned C++... Because I have no desire to...

VB and C# are 10 times better... I suggest you learn those if you are going to learn to program...