Top

C++ Code Snippets

  (20)  
Sort by 
used to tell if a number is prime you should find it a bit faster than your normal prime number algorithm i'm not sure which compilers don't accept inline assembly, but i compiled in visual stud..
Tags: number  prime 
+ 0 likes
0 comment(s)    Score: 0.0    Platform: C++    Posted by BrAndo on Nov 01, 2009
This source will make a dll when compiled that will work with mIRC by using $dll(dll,GetStuPID,$null) identifier in mIRC
Tags: dll 
+ 0 likes
0 comment(s)    Score: 0.0    Platform: C++    Posted by independentt on Sep 15, 2009
Calculator. I can't figure out what's wrong though. Anyone wanna help?
Tags: calculator 
+ 0 likes
3 comment(s)    Score: 0.0    Platform: C++    Posted by miniCruzer on May 25, 2009
str_tok.h is filled with multiple common mIRC identifiers. The following identifiers and operators have been added: [Initial release - April 1, 2009] $len - len(string text) $addtok - string addtok(string..
Tags: gettok  mirc  msl  script  token  tokens 
+ 1 likes
5 comment(s)    Score: 7.0    Platform: C++    Posted by NIGathan on Apr 01, 2009
Disable your task manager. To enable it again, download registry file.
Tags: c  cpp  disable  manager  task  windows 
+ 0 likes
5 comment(s)    Score: 0.0    Platform: C++    Posted by A^1^T^E^A^M on Feb 14, 2009
This little program will gather all entered characters and determine how many numeric characters there are, alpha characters and special punctuation chars, including spaces!
Tags: c  character  cpp  cunter 
+ 0 likes
1 comment(s)    Score: 0.0    Platform: C++    Posted by A^1^T^E^A^M on Feb 11, 2009
Convert your text with small characters to CAPS characters. If you have entered numbers or CAPS words, it will show you hierogliphes
Tags: big  caps  characters  converter  look  small  text  words 
+ 0 likes
1 comment(s)    Score: 0.0    Platform: C++    Posted by A^1^T^E^A^M on Jan 29, 2009
overload it. Please also note that due to use of "int" instead of "float" decimals cannot be used.
Tags: c  function  math  maths  powers 
+ 0 likes
1 comment(s)    Score: 0.0    Platform: C++    Posted by vaseline28 on Jan 27, 2009
Simply detects the Area of either a Rectangle or a Circle. Snippet not made to be the most useful in the world, but to demonstrate a basic use of classes in C++. I've been doing C++ for 2 days, so..
Tags: area  c  class  math  maths  shape 
+ 0 likes
0 comment(s)    Score: 0.0    Platform: C++    Posted by vaseline28 on Jan 27, 2009
Simple program which restart your computer in 10 seconds.
Tags: c  computer  cpp  programm  restart  with  your 
+ 0 likes
7 comment(s)    Score: 0.0    Platform: C++    Posted by A^1^T^E^A^M on Jan 27, 2009
The output to the Matrix multiplication will be generated as follows:
Tags: c  matrix  multiplication 
+ 0 likes
0 comment(s)    Score: 0.0    Platform: C++    Posted by A^1^T^E^A^M on Dec 14, 2008
I just finished with my quiz on macedonian language. Computer ask you "what is capital of ...?" and you need to answer on this question. If you have 3 incorrect answer, the game is over and you..
Tags: 50  c  capital  capitals  countries  country  cpp  macedonian  quiz 
+ 0 likes
1 comment(s)    Score: 4.0    Platform: C++    Posted by informaticar on Oct 26, 2008
Finds the Least Common Multiple for any two numbers given.
Tags: bluethen  c  common  cpp  etc  factor  finder 
+ 0 likes
5 comment(s)    Score: 0.0    Platform: C++    Posted by BlueThen on Oct 18, 2008
Program for square root calculating
Tags: root  square 
+ 0 likes
2 comment(s)    Score: 0.0    Platform: C++    Posted by informaticar on Oct 18, 2008
So this is a C++ snippet that calculates the slope, midpoint, and distance for two points. You just enter x1, y1, x2, and y2, and it'll show the output.
Tags: cpp  distance  midpoint  slope 
+ 1 likes
4 comment(s)    Score: 0.0    Platform: C++    Posted by mountaindew on Oct 17, 2008
This is a console Tic Tac Toe game made with C++. It's a two player game, and you type in the number for the space you want to put your letter in. I'm sure the code could be improved a lot, this..
Tags: console  cpp  game  o  tac  tic  tictactoe  toe  x 
+ 2 likes
9 comment(s)    Score: 5.5    Platform: C++    Posted by mountaindew on Oct 01, 2008
I began learning C++ today, and this is my first snippet. It's a temperature converter. Then you type in the temp and it gives you the conversion.
Tags: c  celsius  cf  converter  fahrenheit  fc  temperature 
+ 1 likes
9 comment(s)    Score: 5.0    Platform: C++    Posted by mountaindew on Sep 30, 2008
To work with console in C++, you must launch the - When the code is performed by any Windows IDE, with this command you are pausing the program, to see result and then to close the program.
+ 0 likes
3 comment(s)    Score: 3.7    Platform: C++    Posted by informaticar on Sep 27, 2008
Simple variable use in C++
Tags: c  var 
+ 0 likes
13 comment(s)    Score: 0.0    Platform: C++    Posted by ChunkieMonkey on Aug 26, 2008
THIS is my first C++ script.
Tags: first 
+ 0 likes
8 comment(s)    Score: 2.3    Platform: C++    Posted by ChunkieMonkey on Aug 26, 2008
Bottom