DevC++ uses gcc (MinGW) for compiling, so it should already be installed on your system. Just add it to your PATH or cd to the dir it's in (C:\devcpp\bin?) and run it.
Type: Posts; User: zach0616
DevC++ uses gcc (MinGW) for compiling, so it should already be installed on your system. Just add it to your PATH or cd to the dir it's in (C:\devcpp\bin?) and run it.
This is what my code looks like:
#include <iostream>
#include <time.h>
#include <stdio.h>
using namespace std;
int main() {
time_t timedata;
time(&timedata);
How would I get the local time (just time, not date) and compare it. I want to say something like if it is 12:00 run this code.
problem solved. sorry for the trouble.
Yes I'm using windows. Sorry for not stating that.I understand that WM_LBUTTONDOWN is for a left click, but what about holding it for a certain amount of time?
How would I write a function in c++ to hold a mouse click for a given amount of time and then release? Thank you in advance for any help.
figured it out i think. Sorry to bother.
I need to insert a character array to be part of string stream, but when I output the stream, the array does not appear as it was typed. It comes out as weird characters. This is basically what the...
Thanks. One more question:
Is it possible to read a range of characters. Like say I want to read character 5-10 from a text file. How would I do that?
I need to write a program that will tell IE to open a webpage of my choice. The reason I need this is because it is one part of a larger program. Could anyone please help me? Thank you.
Read the tutorial.
int num;
cout << "Enter num: ";
cin >> num;
That would ask the user for input and then store it as num.
If you switch languages as fast as you switch programs, you'll never learn anything. Just stick with C++.
Thank you. Sorry for posting without checking the FAQ first.
Instead of my program executing by just typing it's name in the command prompt, how would i give it parameters. For instance, the user would execute the program by issuing the command progname...
Ok thanks. Everything works fine except the string msg will only hold the first word of your message. Can strings not hold space?
Maybe I'm just dense or something. :(
Here's part of the code.
stream << "net send " << ipaddr << ' '<< msg;
stream.str().c_str();
system ("PAUSE");
while (n < nummsg) {
...
Thanks. Seems to be working. Now I just have to piece stuff together. Thanks everyone.
EDIT: Damn. One more thing. :mad:
stream << "net send " << ipaddr << ' '<< msg;
std::system("stream");...
Thank you for all the help. I'm trying to do this with string streams thanks to ya'lls advise and I've almost got it. This is a pretty basic question, but how would I make theur be spaces in between...
Hi everyone. I would like a little help with this code I'm working on. It's purpose is to ask the user for a computer's IP, a message to be sent, and number of messages. Then it will net send that...
I have searched these forums and read multiple topics, but none really answered what I am searching for. So here goes. First of all, I am not trying to code a keylogger, so no flames please. :)
...