Thumbs upMy first c++ program!

Posts 16–30 of 32 · Page 2 of 3
Hmm..
Needs more sand.

Na, all joking aside, its a pretty good beginners program. My first
program was a calculator. Baby-steps, baby-steps!
Quote Originally Posted by PB&J View Post
Needs more sand.

Na, all joking aside, its a pretty good beginners program. My first
program was a calculator. Baby-steps, baby-steps!
lol, my second program failed (I was writing it for 3 hours and than realized that its impossible) it was supposed to be a converter like 10000mm = xkm2 xmm2 and so on. but the numbers went so big that there came e+ instead of numbers.

But my third program was useful lol. I made 2 euros with it. sold 1 to my dad`s friend and 1 to my dad`s other friend.

There is a TM (Dont know how that is in english) and it is the weight of a log or a plank. And i didnt find it on the internet anywhere so i made a program that calculates the logs/planks weight !, and lol i made money!
Quote Originally Posted by Ronon666 View Post
lol, my second program failed (I was writing it for 3 hours and than realized that its impossible) it was supposed to be a converter like 10000mm = xkm2 xmm2 and so on. but the numbers went so big that there came e+ instead of numbers.

But my third program was useful lol. I made 2 euros with it. sold 1 to my dad`s friend and 1 to my dad`s other friend.

There is a TM (Dont know how that is in english) and it is the weight of a log or a plank. And i didnt find it on the internet anywhere so i made a program that calculates the logs/planks weight !, and lol i made money!
2 WHOLE EUROS!? Don't spend it all at once ^^
no offence but they probably will not use it。 Just  trying to support you。。
@Auxilium
1. your evil
2. not true, read below:

xD no, they have been looking for it on the internet for like few weeks and they didnt find it anywhere (And since they have no brains to calculate it with a normal calc) now since they have a big forest and they need to calculate the TM so i made it, and they bought it and their using it. xD

lol i know yeah 2 euros. But its still some money for half an hour learning. and too bad, already wasted it. xD
YAY! i made an age calculator! O.o
Code:
#include <iostream>
#include <windows.h>
using namespace std;

int main()
{
    double yearywb, month, day, year, age, tmonth, tday, num1, num2, num3, num4, num5;
    cout << "Welcome to your age calculator (YAC) \n" << "Maker : Kevin Laig \n\n";
    cout << "What year were you born? \n";
    cin >> yearywb;
    cout << "What month were you born(may = 5, okt = 10)? \n";
    cin >> month;
    cout << "What day were you born?(1-31) \n";
    cin >> day;
    cout << "What year is this? \n";
    cin >> year;
    cout << "What month is this?(1-12) \n";
    cin >> tmonth;
    cout << "What day is it? (1-31)\n";
    cin >> tday;
    num1 = year - yearywb;
    num2 = tmonth - month;
    num3 = tday - day;
    cout << "You are " << num1 << " years, " << num2 << " month(s) and " << num3 << "days old. \n\n";
    cout << "NOTE: if the answer for months is -X then calculate 12 - X";
    cout << endl;
    cout << "(X = a number you got for months) and you get the real answer but if "<<endl <<"your answer is -x for days then look from calendar how many" << endl << "days in this month are (28/30/31) and do 28/30/31 - X" << endl << "(X = the number you got for days) \n\n ";
system("pause");
    return 0;
}
c++ is so awesome!


how to fix this?
Quote Originally Posted by Ronon666 View Post
@Auxilium
1. your evil
2. not true, read below:

xD no, they have been looking for it on the internet for like few weeks and they didnt find it anywhere (And since they have no brains to calculate it with a normal calc) now since they have a big forest and they need to calculate the TM so i made it, and they bought it and their using it. xD
1。 How am i evil?
2。 If they are too stupid to do a simple calculati on I do not know how they could have made it this  far in life。。
thx whit! lol are you the only one that has helped in this thread lol?
Quote Originally Posted by Ronon666 View Post
thx whit! lol are you the only one that has helped in this thread lol?
Im just one helpful Motha Fucka
Quote Originally Posted by Ronon666 View Post
thx whit! lol are you the only one that has helped in this thread lol?
you just ignored my tips. so why would i care.. for example.. ^^

Holy Shit Patrick..
long time no see guise 
Quote Originally Posted by Kallisti View Post
long time no see guise 
dude i have not seen you for like 5 months
Quote Originally Posted by Ronon666 View Post
lol, btw is there a way to remove e+ from really big numbers from the answer if your doing something like 1 km2 = 1000000mm2 but i want to make 1000km = 10000........ but when i do that it gives me 1e+0000
@Ronon666

1e+ means 1.0x10 to the power of X. for instance. 1e+06 is 1 to the 6th power, or 1 million ie 6= 6 zeros
O.o ppl hijacking this thread! help!!!

jk. yeah @'Bruno you have helped too.

O.o how can you write your name in japanese/korean or wtf are those?

@Minato_Nagato thx but i have already abandoned that project like a long time ago. Well im off to learn something new and epic.
Posts 16–30 of 32 · Page 2 of 3

Post a Reply

Tags for this Thread

None

Talk with us