Hi guys, I just started a new class in college and this professor uses a different compiler than my previous professor.
I used to use Dev-C++
but now I'm supposed to use Microsoft Visual Studio 2010 IDE for C++.
I think I downloaded the right one "Microsoft Visual C++ 2010 Express"
I don't know how to start typing my program becauseI don't know what project I'm supposed to create.
Do I create an "Empty Project"? Because I clicked something I think win32 application console thing and it showed this:
// PA01.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
:\. No Idea what I'm doing. I don't know what stdafx.h or anything means :x.... Help. ;o ty
visual basic is IDE just like any other except that it's project templates are based on Win32 API that's why you've seen this ugly code.
just create emply project and start writing C++ as you did before.
so the only way to write favorite C++ is empty project, forget about other project types!
Okay.
Let me start over step by step. :o
. New project > Empty project.. It gives me nothing. I then click new file > cpp file > now Ifinally get a blank screen to type in so I just copy and pasted the code above and push f5 to debug > and I get this error, "Unable to start program 'c:\users...etcetc The system cannot find the file specified"
There is no output at all unless that error code counts.
this is fkn* strange man, it may be due to corupted installation.
the error say's it can't include eather <iostream> or <iomanip> I suppose.
try removing one of them and see if that work.
BTW include files are located in: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include
try this if you do not want to reinstall: right click on project>properties>C/C++>general>additionall include directories>edit>
then fill in that path above.
I have no idea what main.cpp is ?
and I reinstalled with no luck. I get the same error as above... ;-;...
fml.
How am I supposed to do my work when this thing doesn't even like me ): .
I watched the tutorial and did exactly as they did.
I made my own header thing #include <etc stuff
and then added that to my cpp file.
You are quite the beginner in computer science world eh? It's alright we were all there at one point. Anyways, I just wanna point out that visual basic is not your IDE, VB is one of many variations of the BASIC language. Visual studio (or visual c++) is your IDE.
@residentBiscuit
yeah that's what I meant , I didn't think there was a difference (Because Idk what the names are... or what they mean for that matter)
I am a beginner ;-;. And I don't think I'm going to be getting any better but I'm testing out Intro to Comp sci II to see if I should stay in this field or not :\