View unanswered posts | View active topics It is currently Fri Nov 15, 2019 9:51 am

Reply to topic  [ 2 posts ] 
Author Message
Sheikah Elder
User avatar

Joined: Thu May 03, 2007 8:33 pm
Posts: 1456
Gender: Male
Post C++ • Posted: Sun Jan 18, 2009 4:03 pm
Learning it lately, it's very interesting. A bit hard though. I followed a tutorial and got this done, though. Following the comments you can probably see what it does.

#include "stdafx.h"
#include <iostream>   
using namespace std;
int main()                            // Most important part of the program!
  int age;                            // Need a variable...
  cout<<"Please input your age: ";    // Asks for age
  cin>> age;                          // The input is put in age
  cin.ignore();                       // Throw away enter
  if ( age < 100 ) {                  // If the age is less than 100
     cout<<"You are pretty young!\n"; // Just to show you it works...
  else if ( age == 100 ) {            // I use else just to show an example
     cout<<"You are old\n";           // Just to show you it works...
  else {
    cout<<"You are really old\n";     // Executed if no other statement is

It's a bit tough, but I really like it. Anyone else know a C language, or any other programming language?

Deku Lord wrote:
I only do stupid *Navi* out of necessity, and necessity only

Goron Warrior
User avatar

Joined: Wed Jun 11, 2008 2:41 pm
Posts: 642
Gender: None specified
Post Re: C++ • Posted: Sun Jan 18, 2009 5:36 pm
I actually got pretty deep into C++ earlier this year... More specifically the allegro library in C++. I got to the point where I could do some simple animations and make games like pong.... but then I realized that the library I picked could only take me so far.... so I got discouraged, and kinda dropped it...

But... I think the C++ know-how members of EDN should definitely get together on a project sometime....


Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.