Results for "Category: Miscellaneous"
It shows the usage of nested loops.
This is my example of a quick and simple menu. This is a good method of simple menus, better then telling someone to enter 1 or 2 or 3 then hit enter to do this and that and i also think thats so boring. All you gotta do is just press the button it tells you then the operation will execute
The code was changed on 12/14/00 to use fstream objects for file I/O and I also added more comments. Use this to encode and decode a text file. The same password must be supplied in both cases because it is used in the encryption algorithm. This increases the security of the encryption making your encrypted file virtually uncrackable, even using the same program, unless you know the password. Please rate this. Whether it's good or bad, I appreciate your feedback. Thanks.
Make your friends think that their harddrive will be formatted. You print "Hit Q to quit:" and when they try to hit 'Q' a 'Y' pops up... Of course, we won't really format or anything. Vote if you enjoy the code :) BTW, to really close the program you must hit ESC.
A couple of simple examples of ways to format output using iomanip; ie: set width, right align, left align, change fill character
It searches specified keyword in specified file without appending the file by user
It is a simple include file that has functions for clearing the screen, moving the cursor, changing the text color, and outputting colored text to a specific section of the screen. I know this is pretty simple to most people, but I've seen many people asking for this.
A Word Statistics Tool to count and report words statistics of an input file. The output is displayed in alphabetical order of the words with the counts. Demonstrates a friend class, operator overloading, file iostream and text parsing. It processes 337KByte text file in ~3 seconds on AMD 550MHz. And there's no limit on the length of each line - a benefit of using STL string. The zip contains a ready-to-use console app along with the source and a make file. The source code should be compilable using any compiler that supports STL, and default template parameter values.
Learn how to write a simple DLL in C++ and then call it in Visual Basic. I scoured the web trying to look for beginning tutorials on how to write DLL's in C++ but came up with NULL examples. All the examples were to complicated for a beginner. Some of them were out-dated i.e. "Learn how to write a DLL to communicate with an ISA card". I soon gathered enough information to write a very simple one. Check it out.
this shows an example of how to create a DLL in C++, and use it in visual basic... hope you like it :)
Under Win32 , get memory information, - total physycal memory, free physycal memory and free system resources (like in the shell about dialog, using the rsrc32.dll)
Unzip the file and open the text document to view the tutorial on Arrays for Beginners!
This code password protects a program and has an example of it by protecting an OpenGL window. It can be used for protecting simple functions or actions also.
This is a COMPLETE introduction to the powerful C programming language (not C++). Perfect for absolute beginners to the language who want it all! Now, I tend to write as I talk so if you find a concept is tought too fast (you want more examples, etc), leave a comment and I'll fix it and reupload it! Please do leave a rating after I fix the problem.
Brief introduction to printf and using C/C++'s basic variables
I found this E-Book, so I thought I would upload it so it could help you guys. (I don't really program in C++)!!
Heres a tutorial which will teach you the basics so you can do some simple inline assembly. Contains code examples and compliments the examples which can also be found on PSC. Also contains x86 instruction list.
Heres a function, which will allow you to setup doevents in your C++ program. What I mean by that is DoEvents is a VB keyword it allows your program to continue updating windows while a specific function is in a loop. Well do this in C++ have that function in your source and say while(whatever) { // processing cppDoEvents(); } and thats it!. thanks to inc for the info on how to do this!
Create a simple client/server connection using winsock. Also shows how one might detect whether or not the address entered is an IP or a hostname, and then how to format that address.
This code allows mIRC to display the current song, bitrate, and samplerate of the current song playing in winamp. This code is a dll file and called by mirc to get this information, and can be very usefull in other applications that need this kind of information. This code is also usefull for anyone wanting to gather this type of information from winamp for any type program. Please vote for this program if you like it.