Ah, it works now.
Thank you!
Type: Posts; User: thelimpkid
Ah, it works now.
Thank you!
This may sound as an completely stupid question. But I'm really confused.
I want to program in C++ for Linux. I'm using Eclipse now, and I installed the C/C++ Development Tools.
I wanted to...
Thanks vart. I got it to work:
source.close();
std::remove(d.filename.c_str());
I created a program to encrypt/decrypt files. The problem is, it creates a new file for the encryption program.
Now I want to remove the unencrypted file.
I tried:
std::remove(d.filename);
I still use Microsoft Visual Studio 2008 Beta 2 with all updates. And it works fine.
Is there much difference between Beta 2 and the final version?
how can I check the username of the windows account that logged in?
So I can make a app of the time/date/username who logged into windows..
hmm, so I could call a batchfile too.. not that it's very usefull lol. I will try if it works in C++ too.. Thanks :)
thanks alot!
I was wondering how I could hide output from a console window. I'm creating a newsupdating script and use:
system ("ftp -s:filename.txt");
to upload the file, but I want to hide the output of the...
Yes, thanks alot for your time and help! It works fine now.
int write() {
getline (cin, text);
ofstream file ("text.txt", ios::app);
file << text << endl;
}
If you mean this, it's not what I want to do with it. I don't want it to have each word on a new...
woops, yea, so this:
int write() {
getline (cin, text);
ofstream file ("text.txt", ios::app);
file << text;
}
Hmm, I got that right now:
#include <iostream>
#include <fstream>
using namespace std;
string text;
int write() {
cin >> text;
Here's what I've got now:
#include <iostream>
#include <fstream>
using namespace std;
string text;
int write() {
getline(cin, text);
wow, thanks alot! I got it all wrong I see. Well I wanted to create a loop that would never end. That's what I tried with e.
Thanks alot for the help!
I'm making a little notepad, and what I got is a single line input. Now I want it to be multiline. Basically, when the user presses the enter key, it should create a new line on the output too. It...