You missed the delightful programming subforum users pic!
[editline]0[/editline]
[img]http://i33.tinypic.com/2d7wyyr.png[/img]
[img]http://i45.tinypic.com/1zvbzbr.png[/img]
[QUOTE=CarlBooth;21822943]You missed the delightful programming subforum users pic![/QUOTE]
please add it, it's my only highlight
Okay, the fix I applied outputs the final line twice. This thing is starting to annoy me.
[QUOTE=Darwin226;21822854]turb, is AnyHub your service? If yes, how much does it cost you to maintain it?[/QUOTE]
$40 per month for my dedi, it does have other things other than AnyHub on it though
Aww, you left out my game of life video. Well, better luck next time.
[QUOTE=Overv;21823006]Aww, you left out my game of life video. Well, better luck next time.[/QUOTE]
Wait, hangonaminute...
Why are Overv's 3D thingies not featured?
[QUOTE=Overv;21823006]Aww, you left out my game of life video. Well, better luck next time.[/QUOTE]
Link/post #? I must've accidentally missed it, sorry.
[editline]07:31PM[/editline]
[QUOTE=darkrei9n;21822975]Okay, the fix I applied outputs the final line twice. This thing is starting to annoy me.[/QUOTE]
[cpp]
std::ifstream file("your_file.txt");
std::string line;
while (std::getline(file, line))
{
std::cout << "here's a line: " << line << "\n";
}
[/cpp]
That should output every line in the file. If it doesn't, something else is screwed up.
[editline]07:31PM[/editline]
[QUOTE=CarlBooth;21822943]You missed the delightful programming subforum users pic!
[editline]0[/editline]
[img]http://i33.tinypic.com/2d7wyyr.png[/img]
[img]http://i45.tinypic.com/1zvbzbr.png[/img][/QUOTE]
Nah, don't apply
Programming some funny Omegle responder bot using Project Sikuli.
[url=http://www.facepunch.com/showthread.php?t=935616]What is Project Sikuli?![/url]
[QUOTE=nullsquared;21823118]Nah, don't apply[/QUOTE]
killing myself now
[QUOTE=Overv;21823006]Aww, you left out my game of life video. Well, better luck next time.[/QUOTE]
Added
[editline]07:34PM[/editline]
(second quote down)
Woop! You added my cheese sun gif!
[img]http://www.cubeupload.com/files/eb4200style.png[/img]
As a little reward, have a link to it. (Not really finished, but fun to tinker with anyway)
[url]http://culexus.com/seb/Projects/Planets/Planets.rar[/url]
Thanks Null! Sorry for being hard about it, my programming book uses incredibly hard to follow methods of pulling lines from a file. It originally used something a line known as void displayLine( int, char, double) which just confused me more. Thanks though.
Now just to fix my writing to the file.
ios::app appends the line to the end of the file right?
[QUOTE=BAZ;21823755]Woop! You added my cheese sun gif!
[IMG]http://www.cubeupload.com/files/eb4200style.png[/IMG]
As a little reward, have a link to it. (Not really finished, but fun to tinker with anyway)
[URL]http://culexus.com/seb/Projects/Planets/Planets.rar[/URL][/QUOTE]
That's cool. It took me forever to get it to orbit again after I accidentally threw it...you should add a menu for different colored and sized moons and stuff!
[QUOTE=Chad Mobile;21824055]That's cool. It took me forever to get it to orbit again after I accidentally threw it...you should add a menu for different colored and sized moons and stuff![/QUOTE]
You can scroll with the mousewheel when you hover to adjust the size. I will probably add alot more features in the future (auto-orbit and similar things)
[editline]01:30AM[/editline]
There's code and sprites in there for earth and mars. I just completely forgot!
I'll be sure to enable them and add black holes!
Hah, I didn't even think of the mouse wheel! Can't wait too! :v:
[B]Edit: [/B]I made the sun waay too small and it disappeared, and I made one of the moons big and it replaced it..:j:
[QUOTE=Chad Mobile;21824198]Hah, I didn't even think of the mouse wheel! Can't wait too! :v:
[B]Edit: [/B]I made the sun waay too small and it disappeared, and I made one of the moons big and it replaced it..:j:[/QUOTE]
There's a readme file incase you didn't notice lol.
..which I didn't notice
Overv, that video is awesome, great concept and execution.
[QUOTE=darkrei9n;21824009]
ios::app appends the line to the end of the file right?[/QUOTE]
Yeah that opens the file in append mode instead of overwriting it
I'm working on fixing a library (Magick++) that I managed to break. Anyone know how to view what's currently defined in MSVC08?
I am working on making a program that when you press a hotkey it captures all keystrokes and redirects them to a specific window. So I can chat with an irc client while playing games :x.
Well, in my attempt to fix my reading issue, I broke my writing part.
[img]http://i44.tinypic.com/9fn091.png[/img]
Added chain matching, an indicator for the next set of gems, and a tube to the side of the board that isn't being used right now...
If you're interested in trying it out, [url=http://anyhub.net/file/columnsds-dev201005091109.zip]here you go[/url]. I've also managed to fix randomisation not working in NO$GBA. Just be aware that if you use Acekard firmware (including AKAIO, Wood RPG/R4 etc) this build doesn't work right now...
I gave up on 2010 and reinstalled 2008 (albeit professional, thanks dreamspark), everything works again.
...Then I had a moment of inspiration and linked the static libraries of sfml (in 2010), and the program worked. :doh:
Although, I did get a bunch of [del]errors[/del](thanks high) warnings I've never seen before
[code]
graphics.obj : warning LNK4217: locally defined symbol ?IsOpened@Window@sf@@QBE_NXZ (public: bool __thiscall sf::Window::IsOpened(void)const ) imported in function "public: bool __thiscall Window::Closed(void)" (?Closed@Window@@QAE_NXZ)
etc
[/code]
I'm just going to use 2008 until 2010 get's more established, but I would like to know what that error means if anyone knows off the top of their head.
Can anyone help me with the writing portion of my program? The lines of code for writing.
[cpp]
fstream ClientFile("grades.tst", ios::in | ios::app );
fstream DBFile( "IDatabase.tst", ios::in | ios::app );
cin >> stuffName;
getline(cin, stuffName);
DBFile >> stuffName;
[/cpp]
This is summed up a lot, there is a lot more to it.
That looks like reading to me.
[QUOTE=darkrei9n;21825080]Can anyone help me with the writing portion of my program? The lines of code for writing.
[cpp]
fstream ClientFile("grades.tst", ios::in | ios::app );
fstream DBFile( "IDatabase.tst", ios::in | ios::app );
cin >> stuffName;
getline(cin, stuffName);
DBFile >> stuffName;
[/cpp]
This is summed up a lot, there is a lot more to it.[/QUOTE]
That's reading from the file, not writing to.
[url]http://www.cplusplus.com/doc/tutorial/files/[/url]
[QUOTE=ryandaniels;21824967]I gave up on 2010 and reinstalled 2008 (albeit professional, thanks dreamspark), everything works again.
...Then I had a moment of inspiration and linked the static libraries of sfml (in 2010), and the program worked. :doh:
Although, I did get a bunch of errors I've never seen before
[code]
graphics.obj : warning LNK4217: locally defined symbol ?IsOpened@Window@sf@@QBE_NXZ (public: bool __thiscall sf::Window::IsOpened(void)const ) imported in function "public: bool __thiscall Window::Closed(void)" (?Closed@Window@@QAE_NXZ)
etc
[/code]
I'm just going to use 2008 until 2010 get's more established, but I would like to know what that error means if anyone knows off the top of their head.[/QUOTE]
That's a warning, not an error.
Swapped the >> around, still does not write. Except for the cin's << because it bitches to me about that one.
[QUOTE=high;21825238]That's a warning, not an error.[/QUOTE]
Oops, wrong word, although I did mistake them for errors when I first saw them.
Sorry, you need to Log In to post a reply to this thread.