That works, thank you very much! And much thanks to the other people as well! I really learned a lot from this thread / little program. I will try to study up on how to use ShellExecute(), as well.
...
Type: Posts; User: Nightwarrior
That works, thank you very much! And much thanks to the other people as well! I really learned a lot from this thread / little program. I will try to study up on how to use ShellExecute(), as well.
...
Thanks for the reply. I was using ShellExecute before, but I couldn't get it to work; so I swapped over to this (since this is the help someone else offered me). I have no idea how to go about all of...
None of the loops are actually starting more than 1 command prompt w/ ping in it. They all only start one. :(
Alright, I'll mess around with that a little. My goal is though, to start as many ping.exe's as the NumPrompts variable.
Here's the full code (might help explain it more):
#include...
How would I go about looping this?
cout << "Please enter the number of prompts you desire: ";
getline (cin, NumPrompts); "\n";
std::string...
Guess it'd help if I included the code. :)
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
One last question. Is it possible for it to loop back to the start?
i.e.
Switch y case 1 starts the program
switch x case 1 does division
it stops after you do the division. Can you make it...
Thanks a lot!
Hrm, what if I wanted to output 2 numbers divided by each other? Like real division. 5 / 2 = 2.5. Dev C++ says 5 / 2 = 2.
It's only doing how many times the number can go in it wholey, and I'd...
Ah. I understand now. Thanks!
I have the:
int y;
int x;
int a;
int b;
Is it possible to do a case within a case? For example:
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
Sorry for bugging you again, but the
std::cout << std::setw(3) << 1;
is messing my output up. Where should it be added? :(
Thank you for taking your time to help me. :)
Thank you very much!
Now is there any way for it to convert 0, 1, 2, 3, etc to 000, 001, 002, 003, etc? I know it's silly, but it'd look much better.
*EDIT: How would one make it check to see...
Sorry for being a complete noob in advance, but I only recently started with C.
I'm trying to make a program that'll output all numbers based upon your inputs.
#include <iostream>
#include...