• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Quick question about Visual C++ Pro....HOW DO YOU USE IT?!

Milito01

Banned
Im just an average guy in an AP computer science course at my high school (dont assume anything with AP in front of the course title, its a breeze). Anyways, I decided to do some home programing, so i ...*cough..pirated...cough* Visual C++ Professional edition iso. Anyways, now that its up and running, I cannot figure out how to get a simple cout<< &quot;HELLO&quot; program going. Can someone instruct me on how to setup the correct project type, or what i need to do to make a simple program? Any help would be great, thx 🙂

-Adam
 
screw the project, just go to File->New->cpp file

then just program away, in your case cout<<&quot;Hello World, I can't figure out the simplest things in life 😉&quot;;

actually the &quot;wink&quot; face might be a little be harder to implement.

After you're done compile, build, then execute.
 
he's right, you can jus go and start a new cpp.. I think you should check out VC++ Step by Step, its an M$press book, but its a great starter, itll show you how to use the IDE as well as prog in it
-neural
 
Well, the obvious thing to say here is, well....I feel stupid. Thanks for the help, i was just confused with all of the project options for much more advanced users than me. I am accustomed to Code Warrior for the Mac of all things at school. If i may ask another foolish question, when I recieve errors in a program, where do I go to determine what needs to be done to fix them?
Thx
 
If you get errors while the program is running or you're not getting what you were looking for in output then try debugging it. If it's a compiling error, it should tell you on the compiling window which line(s) are at fault.

EDIT:

It compiles top-down so you may have to fix errors several times before the page of code gets compiled.
 
Can someone tell me how i can implement simple classes like apstring.h into the program? Im not sure if i need to obtain them from somewhere else, or if they are already somewhere within the computer. Thx

BTW--thanks for being so patient with me Mule, i appreciate it very much 🙂
 
I'm only familiar with C++ using the standard namespace. I don't know if apstring.h is part of MFC or some file you made up. But to add *.h files just use the &quot;#include apstring.h&quot; command at the top. Or if you want to add *.cpp files to your driver then just go to Projects->add files to project(or something similar to that).

I don't have VC++ loaded on my computer at this point so I couldn't tell you for sure. I have been drifting off towards java.

EDIT:

When you write &quot;#include apstring.h&quot; make sure the .h file is in the same directory as your .cpp file, otherwise set the path accordingly.
 
Thanks Mule.

I might be a little bit misled on how to approach this, considering I have only been using Code Warrior on a Macintosh at school to program with. I use a class &quot;apstring.h&quot; in order to deal with full words, etc. Im not sure if that file is commonly used. Lets say that this file isnt located anywhere within Visual C++ (i havent found it yet) Is there some place I could go online to find libraries and classes like this?

Thanks again Mule, honestly 😀
 
If your using a book, go to the publishers website. You can usually find all the files you need in a zip files for that book, even all the programs typed out for you, all you have to do is execute them. And you put the .h files in the folder that contains all the other .h files.
 
Back
Top