Saturday, 30 July 2011

Back from holiday.

I have just returned from holiday and will now be continuing with my blog, I have several more books for C++ and I am going to start straight away and try create new programs for everyone!

Wednesday, 20 July 2011

Next code coming soon

Just bought a new rig so I should be able to get back to programming very soon, sorry for the delay but my old computer broke down on me.

Picture of my new rig:

Lights up red when turned on.

I will post specs later!

Monday, 18 July 2011

Still learning

I haven't created any new programs worth posting yet, but I am still learning, if you where wondering I am learning C++ through an e-book called "C++ for dummies" I would recommend it if you have no programming experience & would like to learn to be a C++ programmer from beginner to professional.

Sunday, 17 July 2011

First program

Created my first C++ program which basically converts Celsius into Fahrenheit..

Heres the source code:

// Convert temperature from Celsius to Fahrenheit & vice versa
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>

int main(int nNumberofArgs, char* pszArgs[])
using namespace std;

string choice = "y";
char CF;
char C;
char F;

cout << "Assign Celsius to a key" << endl; 
cin >> C;
cout << "Assign fahrenheit to a key" << endl; 
cin >> F;

cout << endl; while (choice == "y")
           cout << "Which do you wish to convert?";
cout << endl;
          cin >> CF;
          if (CF == C)
 // Celsius
 double celsius;
  cout << "Enter the temperature in Celsius: ";
  cin >> celsius;

// Factor
double factor;
factor = 180.0;

// Celsius to fahrenheit using factor
double fahrenheit;
fahrenheit = factor * celsius/100.0 + 32.0;

// Output the results on-screen
cout << "Fahrenheit value is: "; 
cout << fahrenheit << endl; cout << endl; 
 double Fahrenheit;
             cout << "Enter the temperature in fahrenheit: ";
            cin >> Fahrenheit;

double Celsius;
Celsius = (Fahrenheit - 32)*5/9;

cout << "Celsius value is: ";
         cout << Celsius << endl;
         cout << endl;
  cout << "Would you like to start again?" << endl;
  cin >> choice;
return 0;

 Click to animate

Saturday, 16 July 2011

Starting C++

I've decided to try and learn a programming language and after an hour or two of researching I've decided to jump in at the deep end with C++, I know some people believe I should start with an easier language like Python or VB but I think with a little dedication C++ will be my perfect language. Wish me luck!