Search found 1649 matches

by avansc
Sat Nov 08, 2008 3:04 pm
Forum: Programming Discussion
Topic: Suggestion for falcos next how to program video.
Replies: 15
Views: 2198

Re: Suggestion for falcos next how to program video.

yeah... I guess if you're able to create your own data structures, you're able to control every property/attribute that they have, and your cutting away the extra 'fat' you would get with an STL object. could be a valuable learning experience to create your own templates, rather than rely on what i...
by avansc
Sat Nov 08, 2008 9:55 am
Forum: General/Off-Topic
Topic: sorry if i was a dbag last night.
Replies: 2
Views: 256

sorry if i was a dbag last night.

like the title says, i was in a foul mood because some german nimrod sent the wrong request and usually that just gets ignored, but for somereason it did the request and now i have to work on a saterday. ahhh. but alls well that ends well. so sorry if i was rude to anyone.
by avansc
Sat Nov 08, 2008 9:50 am
Forum: General/Off-Topic
Topic: Russian Girl facts
Replies: 21
Views: 1828

Re: Russian Girl facts

Fact: Russian girls will suntan anywhere :lol: http://img98.imageshack.us/img98/1776/a003pf1.th.jpg http://img98.imageshack.us/images/thpix.gif That bottle trash was probably something she brought with her friends, or maybe even just for herself.. Russians need alcohol to stay sober. They need a LO...
by avansc
Sat Nov 08, 2008 9:44 am
Forum: Programming Discussion
Topic: Challenge 4 - Balancing act!
Replies: 18
Views: 2580

Re: Challenge 4 - Balancing act!

That's it.. I have no idea what you're talking about or how to do it. I give up. And JEEEZ... I was just trying to be humorous with my comments. The way you respond, is like you're cold dead serious about it. The reason I try these challenges is just to get some steam off. I don't care if I get it ...
by avansc
Sat Nov 08, 2008 12:11 am
Forum: Programming Discussion
Topic: Challenge 4 - Balancing act!
Replies: 18
Views: 2580

Re: Challenge 4 - Balancing act!

i also have no idea why both of you sort the numbers. there is no reason to do that. that does not make it computationally any easier.
try to think about all the sets you have to test. think about innovative ways to cut down on testing. and just get a notepad and make some notes.
by avansc
Fri Nov 07, 2008 11:59 pm
Forum: Programming Discussion
Topic: Suggestion for falcos next how to program video.
Replies: 15
Views: 2198

Re: Suggestion for falcos next how to program video.

what? What do you mean, what? STL has a bunch of useful things that make your life easier, and professors tend to not cover it, and intro classes tend to not mention it at all. two reasons i say what for. 1. its not a good place to start for C++ (that was my main reason) 2. as a C programmer i tend...
by avansc
Fri Nov 07, 2008 11:49 pm
Forum: Programming Discussion
Topic: Challenge 4 - Balancing act!
Replies: 18
Views: 2580

Re: Challenge 4 - Balancing act!

Done! Works beautifully :) #include <iostream> #include <stdlib.h> #include <stdio.h> #include <string> #include <sstream> #include <math.h> #include <vector> #include <conio.h> bool T1done = false; std::vector<int> T1, T2a, T2b; std::string IntToStr(int iNum) { std::ostringstream oss; oss << iNum;...
by avansc
Fri Nov 07, 2008 11:48 pm
Forum: Programming Discussion
Topic: Challenge 4 - Balancing act!
Replies: 18
Views: 2580

Re: Challenge 4 - Balancing act!

Mine worked on inputs 9 8 7 6 5 4 3 2 1 and 8 7 6 5 4 3 2 1 Mine doesn't conform to your file format standard either, though. Notice I said it wasn't tested on nonconsecutives, I wrote it in 30 minutes between classes ;) yeah, i dont really care about file format, you can do that any way you want. ...
by avansc
Fri Nov 07, 2008 11:47 pm
Forum: Programming Discussion
Topic: Challenge 4 - Balancing act!
Replies: 18
Views: 2580

Re: Challenge 4 - Balancing act!

cypher1554R wrote:Oh, now you're just splitting hairs >:[


xP

well your program still doesent work
by avansc
Fri Nov 07, 2008 10:31 pm
Forum: Programming Discussion
Topic: Challenge 4 - Balancing act!
Replies: 18
Views: 2580

Re: Challenge 4 - Balancing act!

umm. i dont think its working 100% Hah! That's too bad, cause it is. ;) well i get this output from your program. So far (9): 1 : 2 : 7 : 8 : 9 : 11 : 22 : 32 : 43 : Weight 10: Sorting: 43 : 32 : 22 : 11 : 9 : 8 : 7 : 2 : 1 : Team A: 43 : 11 : 9 : 2 : 1 : >> 66 Team B: 32 : 22 : 8 : 7 : >> 69 Press...
by avansc
Fri Nov 07, 2008 9:46 pm
Forum: Programming Discussion
Topic: Challenge 4 - Balancing act!
Replies: 18
Views: 2580

Re: Challenge 4 - Balancing act!

Done! Works beautifully :) #include <iostream> #include <stdlib.h> #include <stdio.h> #include <string> #include <sstream> #include <math.h> #include <vector> #include <conio.h> bool T1done = false; std::vector<int> T1, T2a, T2b; std::string IntToStr(int iNum) { std::ostringstream oss; oss << iNum;...
by avansc
Fri Nov 07, 2008 9:42 pm
Forum: Programming Discussion
Topic: Pointers and their Application.
Replies: 16
Views: 3239

1.12 - Pointer Arithmatic

1.12 - Pointer Arithmatic in this section i will describe pointer arithmetic and show you valid operations. 1.12.1 - the sum of a pointer and an integer once you assign a pointer p to a memory block, it is important to remember that the pointer does not describe the entire block, but rather just th...
by avansc
Fri Nov 07, 2008 9:29 pm
Forum: Programming Discussion
Topic: Pointers WTF?
Replies: 8
Views: 808

Re: Pointers WTF?

JaxDragon wrote:I think C++ officially hates me. I tried referencing pointers and stuff, and got loads of errors, *panics*
thats gonna happen, that still happens to me. post your code and i'll let you know what you are doing wrong.
by avansc
Fri Nov 07, 2008 9:19 pm
Forum: Programming Discussion
Topic: Pointers WTF?
Replies: 8
Views: 808

Re: Pointers WTF?

Can someone PLEASE explain to me what pointers are and WHY you need them? It doesn't make sense! They just make things more complex. But I understand they are used in SDL quite often. i have a thread about pointers that i update regularly. here is the short version what pointers are and why you nee...