462 Posted Topics
Re: well as far as the copy three times your going to need a loop like do{code} until... give button pressed... secondly ur going to want the file to be appended each time it was pasted so ur going to want to use filename.append ++ which can be into a loop … | |
Ok So Im writing a program to setup another program... And now Im stuck cuz I want make "my program" click the next button on the "setup" and then I want it to click the radio buttons on the "setup" program... how would I got about being able to send … | |
Re: Ok so first off you going to use strings... you can use strcmp() for comparing two strings such as Game: "adam ahs joined the game" compared to " " has joined the game... then itll basically tell you who joined the game... for the second part you can use sk.SendKeys(" … | |
Re: Take a look at the little code snippet I wrote below and you will see the [COLOR="Green"]freopen("CON", "w", stdout);[/COLOR] which outputs data to a screen so try inplementing it into your code... [code] #include <fstream> #include <iostream> #include <windows.h> using namespace std; int main() { freopen("CON", "w", stdout); } [/code] | |
Re: Ok well if u just want the program to output the data shown here then you start like this: #include <iostream> #include <math.h> int main() { cout<<" DATA HERE \n"; } That is as small as a program can get... search up hello world if your just begining | |
Yes I know its a long code and it will get longer but there is a compiler error in the [COLOR="Green"]int main ()[/COLOR] First Visual C++ 2008 Express edition error [QUOTE] ------ Build started: Project: MAC ADDRESS, Configuration: Debug Win32 ------ Compiling... MAC ADDRESS.cpp warning C4603: '_WIN32_WINNT' : macro is … | |
Re: Gosh oh my I dont usually post code just like that for someone's hmk assignment so im only going to post a partial example which does compile and work but it only gives you and idea of what you are looking for... It may not be EXACTLY what you are … | |
Re: Doesnt exactly compile for me for whatever reason but im guess thats how you go about it... found it on this forum... And yes you should search how to do stuff rather than getting spoon fed cuz no one will just write code without you putting in effort... im only … | |
I think I have to the code right cuz it all compiles perfectly except when its done running, and I go to my documents, I dont see my directory... [code] #include <iostream> #include <windows.h> #include <winuser.h> #include <stdlib.h> #include <string> #include <stdio.h> #include "stdafx.h" #include <lm.h> #include <assert.h> #include <fstream> … | |
Re: Here much easier... =) This finds the sum of all the values between the range of values you enter. [Code] #include <iostream> using namespace std; int main() { long Sum = 0; long x, y; cout << "Enter the first #: "; cin >> x; cin.ignore(); cout << "Enter the … | |
Ok the code below is supposed to edit a file called license.dat and replace texts in it... it works great it does all that but I want to implement user input in it. By this I mean I want the user to be able to enter the drive letter for … | |
Below is the code that I have to find the Mac address of any pc (physical host ID) I struggle to make it print to a file but now i have a problem... It prints MAC Address: XX-XX-XX-XX-XX-XX to C:\\Physical-Address.txt but I only want it to print the XX-XX-XX etc … |
The End.