Wednesday, 31 August 2011

Things not really going as planned

When learning C++ I thought I'd be creating a lot of programs throughout my learning which I would be able to post here, though it seems that I was completely wrong, I am starting a C++ course at college on the 5Th of September and I'm going to convert this into more of a C++ tips and tricks and other tutorials rather than my own progress, thanks to everyone that is still here with me, until next time

Tuesday, 9 August 2011

New Code Wage Estimator

I've almost finished another program, sorry it has taken so long but I have been very busy.. Anyhow, I will upload my code as soon as it is finished.. The program is a wage estimator based on your pay period.
I should be back to my daily blogging now as I have cleared my schedule. Feels good to be back!

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!