Top

Comments

  (610)  RSS
mountaindew's
jonesy44
Comments: 1,068
 
C++ Snippet:  Temperature Converter
Posted on Oct 5, 2008 4:55 pm
awesome! Thanks md. looks cool, i've never thought about doing this kinda thing. i have a neat lil script for you sometime for your ipod :D:D
mountaindew
Comments: 1,636
 
C++ Snippet:  Temperature Converter
Posted on Oct 5, 2008 9:16 am
Check out this tut jonesy: http://www.cplusplus.com/doc/tutorial/

Download Visual C++ (is what I use) or Dev-C++

This is pretty much what this snippet is all about: http://www.cplusplus.com/doc/tutorial/basic_io.html
jonesy44
Comments: 1,068
 
C++ Snippet:  Temperature Converter
Posted on Oct 5, 2008 6:04 am
MD! i didn't know you did this stuff. yall have to teach me sometime :P
Roxas
Comments: 19
 
C++ Snippet:  Temperature Converter
Posted on Oct 5, 2008 6:01 am
I like it. Nice job for a first C++ snippet.
Jamiie
Comments: 139
 
mIRC Snippet:  Translator
Posted on Oct 2, 2008 9:03 pm
Done, I took out the line that says "translation" and switched a few switches around to short alias' to make people think I'm speaking a different language. :P
mountaindew
Comments: 1,636
 
C++ Snippet:  Tic Tac Toe
Posted on Oct 2, 2008 5:38 pm
I updated it quite a bit:

* Used arrays instead of variables for the spaces
--> space[1] space[2] ... space[9]

* Joined the void win() and void tie()

* I added in ? conditionals (like iif) so it eliminated the need for two different if conditions for player 1 and player 2
--> space[7] = (player == 1) ? "X" : "O";
--> player = (player == 1) ? 2 : 1;
Zmodem
Comments: 220
 
mIRC Snippet:  Hawkee Snippet Search
Posted on Oct 2, 2008 2:58 pm
mountaindew: Possibly update the Types list that you have above. I will update mine, too.
mountaindew
Comments: 1,636
 
mIRC Snippet:  Hawkee Snippet Search
Posted on Oct 2, 2008 2:19 pm
Added Hi5 (-hi5)
mountaindew
Comments: 1,636
 
C++ Snippet:  Tic Tac Toe
Posted on Oct 2, 2008 2:15 pm
Cool napalm :)

I think I might remake the variables like a[1] a[2] a[3].

Edit: arrays ;)
mountaindew
Comments: 1,636
 
mIRC Snippet:  Translator
Posted on Oct 2, 2008 2:10 pm
Thanks Jamiie.

In this line:
Code:

set %t.msg $iif(%t.chan,msg $v1,echo -a)

change "echo -a" to "msg $active".
Jamiie
Comments: 139
 
mIRC Snippet:  Translator
Posted on Oct 1, 2008 11:28 pm
Nicely done mountaindew. 10/10+like.. how would you go about making it message chan or active using the alias? instead of the ! event.
napalm`
Comments: 119
 
C++ Snippet:  Tic Tac Toe
Posted on Oct 1, 2008 8:59 pm
Found it.

http://napalmx.googlepages.com/CSE_1384_LAB_3.zip

I miss being a student. Damn you beer/xbox live/mIRC.
napalm`
Comments: 119
 
C++ Snippet:  Tic Tac Toe
Posted on Oct 1, 2008 8:40 pm


Trying to find the source.. so far only fond chemistry lab reports, etc. lol
napalm`
Comments: 119
 
C++ Snippet:  Tic Tac Toe
Posted on Oct 1, 2008 8:33 pm
Holy crap lemme find the game I made in college back in 2005/6.
Hawkee
Comments: 566
 
C++ Snippet:  Tic Tac Toe
Posted on Oct 1, 2008 8:20 pm
Very cool, now how about some socket code to make it multiplayer.
mountaindew
Comments: 1,636
 
C++ Snippet:  Temperature Converter
Posted on Oct 1, 2008 2:09 pm
Updated, now you just input a number and it gives both conversions.
KronicDreamer
Comments: 27
 
C++ Snippet:  Temperature Converter
Posted on Oct 1, 2008 7:21 am
in c/c++ this is in every book and every tutorials when beginning and like napalm said... MUCH shorter :/
Hawkee
Comments: 566
 
C++ Snippet:  Temperature Converter
Posted on Oct 1, 2008 7:10 am
Yeah, napalm has a point. You could also do it like Google "30 C to F" or "100 F to C".
napalm`
Comments: 119
 
C++ Snippet:  Temperature Converter
Posted on Sep 30, 2008 7:32 pm
Wish I still had visual installed, this could be done much easier.

'cin' a number then just display it converted to Fahrenheit and Celsius. This will shorten the code drastically.
NeoOoeN
Comments: 4
 
mIRC Snippet:  YouTube Video Searcher
Posted on Sep 29, 2008 7:31 pm
/youtube xx doesn't works too...

Raaaahhh too bad ! Always the 'searches for YouTube videos matching xx '

Maybe problem on my irc server... ( irc.dreams-fr.net:6667 )
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Next
Bottom