• (3 Pages)
  • +
  • 1
  • 2
  • 3

Getting Started In Microsoft Visual Studio 2008 Building basic console applications. Rate Topic: ****- 8 Votes

#16 TheMathdoctor  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 10-March 09

Posted 26 January 2010 - 10:52 PM

Good job. :^:

A few corrections: :v:

Step 4: Enter the project name (AddCalc in this case) and click "OK"

Step 6: Instead of "OK" it should be "Finish"

Step 8: Instead of "change the name to" it should be "enter the name"
Was This Post Helpful? 0
  • +
  • -

#17 brisko_mk  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 02-February 10

Posted 02 February 2010 - 11:34 AM

Thx Dudee :)) U KICK ASS :))
Was This Post Helpful? 0
  • +
  • -

#18 Guest_yossiri*


Reputation:

Posted 19 March 2010 - 08:05 AM

Thank you bery much sir. This is what I want to know for a long time.
:D :D
Was This Post Helpful? 0

#19 pepsip77  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 14-April 10

Posted 14 April 2010 - 08:16 AM

it's so helfuly
Was This Post Helpful? 0
  • +
  • -

#20 OAA  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 26-April 10

Posted 01 May 2010 - 10:01 AM

hi...very nice tutorial! But i had a problem. I instead i wrote a smaller code, but when i execute it i.e. (press F5) the file takes in values and ends abruptly. Due to this i cannot even see the last cout statement. Please guide me with my code.

 
#include <iostream>
using namespace std; 

int main()
{
	int a;
	cout<<"hi..enter any integer."<<endl;
	cin>>a;
	cout<<"thankyou.";
	return 1;
}


Was This Post Helpful? 0
  • +
  • -

#21 Guest_koina*


Reputation:

Posted 15 May 2010 - 12:53 AM

sir i followed ur instruction bt every tm i,m gettng the error "cannot open include<iostream> file nosuch directory found".sir plz tell me wat to do?
Was This Post Helpful? 0

#22 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3093
  • View blog
  • Posts: 19,139
  • Joined: 14-September 07

Posted 15 May 2010 - 09:00 AM

OAA Read this

koina: what compiler are you using? It is installed correctly?
Was This Post Helpful? 0
  • +
  • -

#23 Guest_Kerem Karatas*


Reputation:

Posted 01 June 2010 - 07:41 AM

View PostAcroneShadow, on 23 July 2009 - 01:30 AM, said:

change
return 0;


to

cout << result << endl;


"endl" just means endline. Like as if you just hit enter when you are making a reply for example.
I find that it makes it easyer to read when you are running it.

Great guide by the way.


This code does not work as I got a compiler error saying

"1>.\CalcAdd.cpp(76) : error C2065: 'result' : undeclared identifier"
Was This Post Helpful? 0

#24 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6033
  • View blog
  • Posts: 23,415
  • Joined: 23-August 08

Posted 01 June 2010 - 08:31 AM

View PostKerem Karatas, on 01 June 2010 - 08:41 AM, said:

View PostAcroneShadow, on 23 July 2009 - 01:30 AM, said:

change
return 0;


to

cout << result << endl;


"endl" just means endline. Like as if you just hit enter when you are making a reply for example.
I find that it makes it easyer to read when you are running it.

Great guide by the way.


This code does not work as I got a compiler error saying

"1>.\CalcAdd.cpp(76) : error C2065: 'result' : undeclared identifier"


Ignore that post...not sure what that's about, the OP has no result variable, which is what it's complaining about.
Was This Post Helpful? 0
  • +
  • -

#25 polymath  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 52
  • View blog
  • Posts: 670
  • Joined: 04-April 08

Posted 19 June 2010 - 03:17 PM

Wow, I just checked back on this and there are over 100,000 views :D that's quite a few...

Would there be interest in me updating the tutorial for VS 2010? I'm not exactly sure how popular the new IDE is and whether or not its in widespread use yet (beyond the usual early adopters). Also, I don't really like having the line'by-line outside of a code block, but at the same time its annoying if you have to constantly scroll.
Was This Post Helpful? 0
  • +
  • -

#26 Guest_MichelleL11*


Reputation:

Posted 14 July 2010 - 02:01 PM

I actually just used your tutorial to get started with the 2010 version. THANKS!

There was actually very little that didn't match -- but an update wouldn't hurt anything . . .
Was This Post Helpful? 0

#27 Shane Hudson  Icon User is offline

  • D.I.C Technophile
  • member icon

Reputation: 343
  • View blog
  • Posts: 1,286
  • Joined: 06-December 09

Posted 15 July 2010 - 05:43 AM

I have a question... C++ is cross-platform compatible right? C# and VB.net are not, natively. Is the code that is compiled with Visual Studio cross compatible?
Was This Post Helpful? 0
  • +
  • -

#28 polymath  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 52
  • View blog
  • Posts: 670
  • Joined: 04-April 08

Posted 15 July 2010 - 12:10 PM

Yes it is. The code itself is 100% portable to any platform with a standards compliant C++ compiler (so basically anything, as long as you're not rolling your own :P), however the compiled executable generated by MSVC++ is *NOT* portable. A large subset of C# is supported under the Mono project for Linux and other platforms, but it is extremely slow. From my own benchmarks, C# and C++ have similar speed on windows 7, but on Linux C++ is nearly three times faster (interestingly, the relationship is the opposite between C++ and Java).

So to answer your question, as long as you're recompiling for the other platform, the code is portable.

Also, thanks for the update on VS 2010. Unfortunately, one needs to put in a credit card to get through the JourneyEd system that MS uses to verify student status for the DreamSpark program, and i'm too paranoid... (last year I somehow got around that requirement), and I really only want one version of VS on my computer (and why get express when you can get pro?), and so on *ramble*

However, if you're using VS for crossplatform development, i'd warn you that the IDE likes to prod you into using features that are not cross-platform (like assembly debug statements and version numbers), because, of course, Microsoft would like to pretend that they are the only platform out there worth developing for. I would seriously consider using Code::Blocks, on which cprogramming.com has a pretty good tutorial at http://www.cprogramm...om/code_blocks/ (though not anywhere near as good as mine :D), or if you're into headscratching, EMACS.
Was This Post Helpful? 0
  • +
  • -

#29 Guest_arkadeep mitra*


Reputation:

Posted 21 July 2010 - 12:16 AM

dis z realy a help.,..........
Was This Post Helpful? 0

#30 pokes  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 11-August 10

Posted 13 August 2010 - 10:20 PM

i really enjoyed readin it.
Was This Post Helpful? 0
  • +
  • -

  • (3 Pages)
  • +
  • 1
  • 2
  • 3