GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 20-Mar-2005, 04:24
Nick Nick is offline
Awaiting Email Confirmation
 
Join Date: Mar 2005
Location: Wales
Posts: 5
Nick is on a distinguished road
Question

Need help to get started.


I would appreciate any help I can get on the following questions, any suggestions you guys have would be greatly appreciated as hopefully I will have some stuff being drawn and moving around the screen by tonight

First of all I need a free C++ programing environment, I am used to the Blitz+ IDE, which ones are the best, I will mainly be using C++ to write gfx demos for windows.

Where should I get started? My initial objective is pretty simple, I want to get a scrolling message program working with my own bitmap fonts, I am not looking for anyone to code it for me but I need some help in finding tutorials for double buffering, opening a window for graphic output, general syntax and drawing graphics.

Thanks
  #2  
Old 20-Mar-2005, 08:27
Nick Nick is offline
Awaiting Email Confirmation
 
Join Date: Mar 2005
Location: Wales
Posts: 5
Nick is on a distinguished road
I'm just downloading DEVC from Bloodshed, it seems to be what I am looking for.
What do you guys think on using libraries like allegro for gfx stuff?
  #3  
Old 20-Mar-2005, 09:04
dsmith's Avatar
dsmith dsmith is offline
Senior Member
 
Join Date: Jan 2004
Location: Utah, USA
Posts: 1,351
dsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of light
Quote:
Originally Posted by Nick
I'm just downloading DEVC from Bloodshed, it seems to be what I am looking for.
What do you guys think on using libraries like allegro for gfx stuff?


hehe. I have never used allegro, but it seems pretty extensive. dev-cpp is definitely a smart way to go though...
  #4  
Old 21-Mar-2005, 03:18
Nick Nick is offline
Awaiting Email Confirmation
 
Join Date: Mar 2005
Location: Wales
Posts: 5
Nick is on a distinguished road
Well I've managed to get started, it's not a lot more than a hello world program at the moment, this compiles to over 500kb though somehow, this seems massive for what it does, any tips to reduce it to say a few bytes?

Thanks,

Nick.

CPP / C++ / C Code:
// Input a number program.
// By Nick Simpson 2005.
// This program gets a number from the user and checks it to see
// How it compares to 100 and then outputs the appropriate response!
//-------------------------------------------------------------------------------

#include <iostream>//           Include the libs to enable input.

using namespace std;//          What modules does this program use?

int main()//                    Main Procedure
{// Begin;
    
    int thisnumber;
    cout<<"Please type in a number: ";
    
//-------------------------------------------------------------------------------
// Get number from the user;
//-------------------------------------------------------------------------------

    cin>> thisnumber;

//-------------------------------------------------------------------------------
// Get return key and discard it.
//-------------------------------------------------------------------------------

    cin.ignore();
    cout<<"\n";
    cout<<"The number that you entered was: "<<thisnumber<<" \n";

//-------------------------------------------------------------------------------
// Check if less than 100
//-------------------------------------------------------------------------------

    if ( thisnumber<100 ) 

         {
         cout << "The number you entered is less than 100\n";
         }

//-------------------------------------------------------------------------------
// Check if greater than 100
//-------------------------------------------------------------------------------

    if ( thisnumber>100 ) 

         {
         cout << "The number you entered is greater than 100\n";
         }

//-------------------------------------------------------------------------------
// Check if equal to 100
//-------------------------------------------------------------------------------

    if ( thisnumber == 100 ) 

         {
         cout << "The number you entered is equal to 100\n";
         }

//-------------------------------------------------------------------------------
// Return to exit.
//-------------------------------------------------------------------------------

    cout<<"You may press return to exit!\n";
    cin.get();
Last edited by LuciWiz : 26-Mar-2006 at 11:05. Reason: Please insert your C++ code between [c++] & [/c++] tags
 
 

Recent GIDBlogVista ?Widgets? on Windows XP by LocalTech

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB 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
getting started Lamefif01 MS Visual C++ / MFC Forum 4 10-Feb-2005 23:15
Athlon system locking up on start up. Is it MoBo, Processor, PSU or what? ebolaosu Computer Hardware Forum 8 26-Feb-2004 11:19
Our very special offers started!! abc5net Web Hosting Advertisements & Offers 0 15-Jul-2003 11:24
Googledance has started jrobbio Search Engine Optimization Forum 10 25-Mar-2003 10:20
SEO's read this! jrobbio Search Engine Optimization Forum 3 02-Feb-2003 20:11

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 12:20.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.