•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 374,512 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,876 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser:
•
•
•
•
•
•
•
•
This simple command line script is used to pull a prank on one of your buds. What it does is play an anoyying beeping sound over and over again while rendering the computer being used completely unresponsive. The task manager doesnt even respond. The window never loses focus and nothing can be done... (View Snippet)
Code will check whether the number entered is integer or not.
ignore extracts characters from the input sequence and discards them. The extraction ends when max characters have been extracted and discarded or when the character delim(\n) is found, whichever comes first.
In the latter case, the... (View Snippet)
Put the following code in a C++ Header File.
The following function is to make it way more easier to draw text onto the client area of a window.
Now the only thing you need to do is include the C++ Header file containing this function into any C++ Source file and use the following code to... (View Snippet)
Good day, here is one of the commands that will allow you to get sound in your program. It was compiled using DevC++. (View Snippet)
This program uses snipets from a couple of other programs that I put together in order to make a program that displays the time and date and refreshes the time and date every second. I commented practically every line to explain, as far as I know, what it does. If you know of an easier way to do... (View Snippet)
Hey, i was just mucking around and improving my code etc and made a calculator, it's not the best calculator in the world, it only can handle 1 or 2 numbers but i think it's good my self :). (View Snippet)
Just playing with the no.
points used in the program:
1. Even no cannot be prime except 2
2. % division of odd by even cannot be 0 (View Snippet)
Here is an example on how to put at least lines and circles onto your windows console display. Yes, you have to jump through a hoop to do it. Dev-C++ can do this thanks to some BCX generated code. You have to set up your project as a Console Application and link with libgdi32.a in the case of... (View Snippet)
This snippet has a will convert Decimal number to Binary number. (View Snippet)
This is a simple example of how to delete a line from a text file. In order to do that you have to completely rewrite the file, leaving out the line(s) you want to delete. First open the input file, then open an output file (doesn't matter what filename you give it as long as its a legal file... (View Snippet)