Until I've decided on a new topic I'm just going to be giving you my two cents on the news today and causing arguments in the comment section starting with a Zombie Apocalypse.
Friday, 1 June 2012
Changing the whole blog
I'm back on blogger, it's been way too long to carry on the C++ stuff so I've decided I'm going to change the blog around. Though there's a slight problem; I'm not 100% sure what I'm going to change it too so I'm asking you for comments, what would you like to see on my blog and what type of things would you wish for me to discuss.
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
-Odium
-Odium
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!
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:
cout << "Which do you wish to convert?";
cin >> CF;
if (CF == C)
{
// Celsius
double celsius;
cout << "Enter the temperature in Celsius: ";
cin >> celsius;
{
double Fahrenheit;
cout << "Enter the temperature in fahrenheit: ";
cin >> Fahrenheit;
cout << endl;
}
cout << "Would you like to start again?" << endl;
cin >> choice;
Click to animate
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;
}else
{
double Fahrenheit;
cout << "Enter the temperature in fahrenheit: ";
cin >> Fahrenheit;
cout << Celsius << endl;
double Celsius;
Celsius = (Fahrenheit - 32)*5/9;
cout << "Celsius value is: ";
cout << endl;
}
cout << "Would you like to start again?" << endl;
cin >> choice;
system("cls");
}
system("PAUSE");
return 0;
}
Click to animate
Subscribe to:
Posts (Atom)