Go Back   Novahq.net Forum > Computers > Web design and Programming

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-04-2004, 09:49 AM
BOne is offline BOne
Registered User

Join Date: Aug 2003
Posts: 1,640

Send a message via ICQ to BOne Send a message via Yahoo to BOne
Biggrin your first C++ assignment

C++ compiler

Above is a link to a C++ compiler so that if your interested in learning a bit about C++ ill be posting short codes and tricks and tips here .... this is a very popular and powerfull PC language quite a few languages as well as software is developed with some sort of C syntax below is the first bit of code to try ...

// DBL forward slashes are programers notes here you can put
// anything you want,your name,what the program does
//and the compiler will not read anything behind the slashes
//into your code. you may also program note with
// a */ /* anything in between
//slash astrick is a programmers note as well.
*/TRY TO USE THE CODE BELOW/*

#include< iostream > //use no spaces

using namespace std;

int main ()
{
cout<<"\nthis is our first C++ program.";
cout<<"\nit works!!!";
cout<<endl; //endl is a carriage return command

return 0;
}


your output after you compile should be this
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV

this is our first C++ program.
it works!!!



any questions.....post em up
__________________
=====Retired sig team member=====

Last edited by BOne; 11-04-2004 at 09:55 AM.
Reply With Quote
  #2  
Old 11-24-2004, 08:32 PM
atholon is offline atholon
"ath-hole"

Join Date: Jan 2003
Location: Failville.
Posts: 11,357

Send a message via MSN to atholon
Grrr. I am a slacker. I took a class in C++ but it went way too slow. Is it better to start in VB or C++?
__________________
Reply With Quote
  #3  
Old 11-25-2004, 12:56 AM
Nev is offline Nev
Registered User

Join Date: Apr 2003
Posts: 311

Send a message via ICQ to Nev
depends.
VB up until version 6.0 is nice to begin with, although IMO it's not a "proper" programmiang language. but VB.NET is quite different, and way better structured, but still as easy.
C++ is not good for beginners, since it's very....unforgiving.
i'd recommend Java instead, from there it's not too hard to go over to C++
Reply With Quote
  #4  
Old 11-25-2004, 12:06 PM
atholon is offline atholon
"ath-hole"

Join Date: Jan 2003
Location: Failville.
Posts: 11,357

Send a message via MSN to atholon
Well I know the basics...if, while, for ect I am not very good with objects and such. I need to get better at arrays and stuff. I don't know how to interact with other programs and such...
__________________
Reply With Quote
  #5  
Old 11-30-2004, 09:34 AM
BOne is offline BOne
Registered User

Join Date: Aug 2003
Posts: 1,640

Send a message via ICQ to BOne Send a message via Yahoo to BOne
Quote:
Originally posted by Nev
depends.
VB up until version 6.0 is nice to begin with, although IMO it's not a "proper" programmiang language. but VB.NET is quite different, and way better structured, but still as easy.
C++ is not good for beginners, since it's very....unforgiving.
i'd recommend Java instead, from there it's not too hard to go over to C++
so true
__________________
=====Retired sig team member=====
Reply With Quote
  #6  
Old 12-03-2004, 08:56 PM
CMcGee is offline CMcGee
Registered User

Join Date: Dec 2004
Posts: 50

Re: your first C++ assignment

Quote:
Originally posted by BOne
C++ compiler

Above is a link to a C++ compiler so that if your interested in learning a bit about C++ ill be posting short codes and tricks and tips here .... this is a very popular and powerfull PC language quite a few languages as well as software is developed with some sort of C syntax below is the first bit of code to try ...

// DBL forward slashes are programers notes here you can put
// anything you want,your name,what the program does
//and the compiler will not read anything behind the slashes
//into your code. you may also program note with
// a */ /* anything in between
//slash astrick is a programmers note as well.
*/TRY TO USE THE CODE BELOW/*

#include< iostream > //use no spaces

using namespace std;

int main ()
{
cout<<"\nthis is our first C++ program.";
cout<<"\nit works!!!";
cout<<endl; //endl is a carriage return command

return 0;
}


your output after you compile should be this
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV

this is our first C++ program.
it works!!!



any questions.....post em up

I know this post is, a little dated, but, they arent many threads to bring this thread up above. Not sure where you learned your C++ Bone lol, but my code differs a bit from yours. Hit me up on MSN @ dce_evolution@hotmail.com
Need some help with DevC++ Compiler.. but I just went ahead and operated with using number variables in C++ :

// operating with variables

# <iostream.h>

int main {}
{
// declaring variables:
int a, b;
int result;

// process:
a = 5;
b = 2;
a = a + 1;
result = a - b;

// print out the result:
cout << result;

// terminate the program:
return 0;
}
Reply With Quote
  #7  
Old 12-06-2004, 09:52 AM
BOne is offline BOne
Registered User

Join Date: Aug 2003
Posts: 1,640

Send a message via ICQ to BOne Send a message via Yahoo to BOne
Quote:
originally posted by:Cmcgee:Need some help with DevC++ Compiler
sure add me you your msn as well or you can post any questions you have here....im pretty good with VIM editors as well as pico editors..i learned C++ in college..next semester ill be in advanced applications of C++ along with a few other languages.....my msn is df1_bone_collector@hotmail.com add me if ya wanna ...
that code was actually an assignment in class.. our first..get our feet wet so to speak...lol...
__________________
=====Retired sig team member=====
Reply With Quote
  #8  
Old 12-08-2004, 03:12 PM
GeeFuss is offline GeeFuss
GeeFuss's Avatar
Cardiac

Join Date: Aug 2004
Posts: 3,862

Hey Im wanting to start a career in Computer Programming (making video games), so maybe I can learn a lil before I start college (Im only in 10th grade LOL)
__________________
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
University Assignment Stoint Sigs and Graphics 10 05-02-2005 03:59 PM


All times are GMT -5. The time now is 06:33 PM.




Powered by vBulletin®