-
Posts
90 -
Joined
-
Last visited
Everything posted by supereater14
-
not according to my c++ tome of goodness (the colorful one) it works my way in all my other programs
-
i've found that the zipit makes a good irc client. just install ircii.
-
my solution is this: install whatever av software i want, then go into msconfig and remove it from startup. to turn it off, i just restart my computer! works for me!
-
my computer is dual booted with ubuntu and xp pro. i still have to use windows for some things. i am looking for a av program that i can pretty much turn on, run a scan and then close and forget about for another month.
-
just use your own irc client. i like chatzilla myself. once in your irc client, just type /server irc.awesomeirc.net after you have connected, type /nick desired_nickname then /join #hak5 and you're in!
-
i am looking for an antivirus program. my requirements are that it work well and have the ability to disable it completely!!!!! by completely, i don't mean just turning off the shield function, i mean no threads related to it at all!!! this is a big thing for me. i have already tried avg(good but lacking the ability to disable) and avast(near impossible to uninstall, by the way) thank you in advance.
-
sure i do, it's under case 5.
-
all right, apparently it cannot find the "input.txt" file
-
here's the code, but when i run it, it doesn't produce an output file. #include <cstring> #include <fstream> #include <iostream> using namespace std; int main(){ int x[25]; int y = 0; char m[100]; int z[100]; //*char h[100]; ifstream in("input.txt"); /*if (!in){ cout << "read error\n"; return 1; }*/ in >> m; /*for(int clap = 0; clap == 99; clap++){ h[clap] = m[clap]; }*/ for(int b = 0; b == 99; b++){ z[b] = (int(m[b]) - 48); } //*z << m; for (int c = 0; c == 99; c++){ switch(z[c]){ case 0: break; case 1: y--; break; case 2: y++; break; case 3: x[y]--; break; case 4: x[y]++; break; case 5: ofstream out("output.txt"); out << x[y]; out.close(); in.close(); return 0; break; } } in.close(); return 0; }
-
i think the best solution is (int(whatever) - 48)
-
well, atoi(&whatever) works (where whatever is a char), but the code still doesn't work as a whole.
-
4 numbers btw, atoi requires a const char*, not a cstring
-
the input file looks like, for example: 4445
-
the entire error is error C2664: 'atoi' : cannot convert parameter 1 from 'char' to 'const char *' though, meaning that it recognizes atoi
-
if it helps, i'm using microsoft's visual c++ 2008 (really annoying compiler)
-
char blahblah[100]; int hi[100]; ... for (int b = 0; b == 99; b++){ hi = atoi(blahblah; }
-
i'm trying atoi, it's not working. it replies: cannot convert parameter 1 from 'char' to 'const char *'
-
[quote EDIT: instead of that whole switch statement and stuff you can do what I posted. Although depends on how your input file is setup. Assuming in your input it says something like: 1 2 3 4 5 6 7 8 you would have to include something like: if( array[i] != ' ' ) ... wouldn't wouldn't that stop at the first whitespace?
-
that would actually work
-
i am looking to convert a char array to an int array example: "4" becomes 4 never mind, instead, tell me what's wrong with this code: #include <fstream> #include <iostream> using namespace std; int main(){ int x[25]; int y = 0; char m[100]; int z[100]; ifstream in("input.txt"); /*if (!in){ cout << "read error\n"; return 1; }*/ in >> m; /*for(int b = 0; b == 99; b++){ z[c] = m[c]; }*/ //*z << m; for (int c = 0; c == 99; c++){ switch(m[c]){ case '1': y--; break; case '2': y++; break; case '3': x[y]--; break; case '4': x[y]++; break; case '5': ofstream out("output.txt"); out << x[y]; out.close(); in.close(); return 0; break; } } in.close(); return 0; }
-
hi, i am trying to read a file using ifstream. the problem is, the file is on a remote server. btw, i do not own the server correction: i need to send an http request to a server and get the response.
-
i scrapped it for parts.
-
#1 already did both #2 i can remove it, but i don't know where to get a replacement
-
This is true, I got it for five bucks.
-
i've discovered that some 2gb micro- or mini-sd card might not work. you might want to try it with a 4gig card.