Edit: Got it to work, reason was totally different than I had expected :P
Type: Posts; User: Philandrew
Edit: Got it to work, reason was totally different than I had expected :P
iterate through each character of the string with a for loop
if its a character you don't like, change it to a *
if(string[i] == "<" || string[i] == ">") {
string[i] = "*";
}
How do I reset the file pointer to the beginning of a file?
ifstream fin;
// blahblah
fin.seekg(what goes here?);
I tried a google search, and its something like ios::beg but I couldn't...
Some friends and I did that to a school computer. It rocked :)
I think I've decided to go with Computer Science with a minor in Business.
A lot of what I've read sounds like ultimately, CS and SE will get you to the right place if you play your cards right,...
Topic is fairly self explanatory....which would you go with and why?
What are the advantages and disadvantages of each?
Thanks in advance :)
gmail took away my 6 invites and gave me a new 50 with a snazzy new box.
Thanks, that made me understand it too :)
First two things I noticed:
#include<iostream.h> is outdated, simply remove the .h
Second, you will have to put using namespace std; near the top as well (under include works fine) if you want...
Wow, thats awesome!
I want one...next christmas? :P
C Board members! If you each donate $1...we will be on a good start to getting me one :D
I don't like it.
Call me boring, but I prefer simple designs...a nice banner on top, a sidebar (or two) on the left (and right) side of the screen.
Put in some fancy shmancy borders and some good...
oh ya, lets not forget the end of that program as well...it was equally horrifying...
take a guess...system(); Can YOU Guess what is inside? :P
Scrambling is something I love to do in the summer. Non-technical mountain climbing (you don't need ropes and such)
Top 2:
Middle Sister outside Canmore....you can look down and Canmore looks...
Not bad for a first website, not bad at all :)
(I was honestly expecting a neon green background with white text and embedded, looping music...shoulda known better from these forums!)
I was in the computer lab at my school today...and being the nerd that I am, I noticed Dev C++, and opened it up.
Clicked through to create a new source file.
:eek: I was shocked. :eek:
...
HAPPY BIRTHDAY! How old?
I just wanna see the Flames win (like they shoulda last year...) :)
Ah, OK, makes sense :)
Thanks everybody!
Humans only became humans when God placed a soul in them (when God breathed in the holy spirit). Therefore it doesn't matter if were were once apes, because at that point, we were not humans.
I can't remember the exact details of it (it was pretty abstract), but here is another example that might make more sense.
I am an identical twin. If I get in a space shuttle at travel at the...
Can somebody help explain linked lists to me?
I read the tutorial on this site, and I read SAMS Teach yourself in 21 Days...but I still don't really understand linked lists :(
I understand...
Again, not religious, but going to a Catholic school I have picked some things up :) Hell, I'm not even Catholic. But I do believe there is a power greater than I.
The story of Genesis is an...
I agree with Quzah. If I have any problem with C++, I want to work through it myself....I come here for a pointer towards the right direction. Giving somebody the answer doesn't help them...
Although I'd hardly classify myself as a religous person....how about you back that statement up with some examples? :)
Science is based purely on empirical knowledge. What you can see, taste,...
Interesting kinda thing I learned from my religion teacher (Many would say he is wise)
[I'm in a catholic school system and religion is a required course]
"What holds the world up?" The Greeks...