Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Thread Tools Display Modes
Old 15th July 2004, 04:11 PM   (permalink)
Default Creating a C++ Program

hey guys im new to using microsoft visual c++ and i am about to create my first c++ program but i need help using the software. Im just creating a simple text program that reads " hello, my name is ....". My question is what options should i choose when creating a new document. When i go to file > new , a window with 4 tabs pops up (files, programs, workspaces, and other documents) since im new , im not quite sure as to what the different file options do.

thnx in advance
Deathshead is offline   Reply With Quote
Old 15th July 2004, 04:26 PM   (permalink)
Default visual c++

what you'll have to do is first create a project, then create a .cpp file, add that file to the project you just created. write your program in the .cpp file, then build and compile. hope this helps.
__________________
Thanks,
Shah
shahh is offline   Reply With Quote
Old 16th July 2004, 07:39 AM   (permalink)
Default

If you want to create a dos program, goto "win32 console application"

You can create a "hello world app" or a "simple app"

if you want some code try this:

---main.cpp---
#include <stdio.h>
#include <conio.h>

void main() {
printf("Yo mama sez press da spacebar...");
getch();
return;
}
0mega is offline   Reply With Quote
Old 18th July 2004, 03:59 PM   (permalink)
Default VC++ new

hi,
Emm u should go to file menu->new
then from list of programm select mfc program(or it was something like that)
and choos a name for it.
then u should choose doilog base programm and accept the other arrangment.
now u have a diolog box with 2 botton and a static box.
u can go on by creating a botton and writte ur codes on it.
i'll so happy to help u more if u need more help.
__________________
Upper than heaven
sina
mohandessina is offline   Reply With Quote
Old 20th July 2004, 03:18 PM   (permalink)
Default

Quote:
Originally Posted by 0mega
If you want to create a dos program, goto "win32 console application"

You can create a "hello world app" or a "simple app"

if you want some code try this:

---main.cpp---
#include <stdio.h>
#include <conio.h>

void main() {
printf("Yo mama sez press da spacebar...");
getch();
return;
}
Another way to do it in C++

Code:
#include <iostream>

using namespace std;

int main ()
{

           cout <<"Hey, what's this?";
          return 0;
}
ab2mh is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 05:26 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.