TMKCodes's Profile
Reputation: 48
Craftsman
- Group:
- Authors
- Active Posts:
- 438 (0.29 per day)
- Joined:
- 21-March 09
- Profile Views:
- 9,903
- Last Active:
Dec 01 2012 09:11 AM- Currently:
- Offline
Previous Fields
- Country:
- FI
- OS Preference:
- Linux
- Favorite Browser:
- Chrome
- Favorite Processor:
- AMD
- Favorite Gaming Platform:
- PC
- Your Car:
- Who Cares
- Dream Kudos:
- 300
Latest Visitors
-
sparkart 
20 Feb 2013 - 10:30 -
dvlsmrcy 
18 Jan 2013 - 12:22 -
codermonk 
29 Nov 2011 - 04:44 -
darek9576 
24 Aug 2011 - 05:49 -
calebjonasson 
12 Aug 2011 - 03:58
Posts I've Made
-
In Topic: Do you use C++'s libraries?
Posted 7 Nov 2011
Myself I sometimes have some problems with the standard libraries, when they don't do what I really want. So I reinvent the wheel and write my own libraries. I barely never anymore use any containers in the standard library collection. -
In Topic: How to solve this infinite loop?
Posted 7 Nov 2011
You can stop the loop with the keyword "break". The loop will also end if the while expression result is false.
Basically something like this.
int data; while(1) { std::cout << "Pass a number: "; std::cin >> data; if(data == 0) { break; // end the infinite loop because 0 was passed into data. } else { // Do something else with the number } }
Your code works too.
Spoiler -
In Topic: What should i really use for input/output on c/c++?
Posted 28 Aug 2011
In C++
std::cin for input and std::cout for output from iostream
In C
scanf() for input and printf() for output from stdio.h -
In Topic: has no2 ever ruined your dream?
Posted 15 Jun 2011
No no-one from DIC has been in my dream, but I hate dreams where i'm tracing a bug line by line.. The whole dream is just seeing a console input of a program code, so fucking annoying.
Though my latest dream was so that some terrorists had invaded Finland for some reason and for some reason my mother had become epic biologist and they wanted her to create a bioweapon for them. Well the Rrussians and Americans we're in Finland with full force too and the Russians kidnapped me while I was sneaking around the building which the terrorists had taken as their base. Then the russian general interrigoated me and I said to him "I'm finnish and do i look like some terrorist who would know their plans?" the general answered no and let me go, but they kept surveilling me and as i sneaked to the terrorist base the russians came soon after me and killed the terrorists. Afterwards the Russians badmouthed the Americans for being so slow. Though only thing i wonder, where the fuck the finnish army was in my dream. -
In Topic: Looking for a good C++ compiler
Posted 3 Jun 2011
g++ is awesome compiler. I use it daily on Linux myself. Though it is not full blown integrated development environment like visual studio but just a compiler.
My Information
- Member Title:
- D.I.C Regular
- Age:
- 23 years old
- Birthday:
- January 8, 1990
- Gender:
-
- Location:
- Finland
- Interests:
- C/C++, PHP, Anime & Manga
- Full Name:
- Toni Mikael Korpela
- Years Programming:
- +5
- Programming Languages:
- C/C++, PHP, xHTML, CSS
Contact Information
- E-mail:
- Click here to e-mail me
- Skype:
-
TMKCodes
Friends
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
TMKCodes has no profile comments yet. Why not say hello?