Type: Posts; User: TheLionKing
Search took 0.01 seconds.
March 21st, 2015, 06:46 AM
I solved it . Thanks to all :)
March 21st, 2015, 06:02 AM
of course i did...it just points me to the for loop line and thats it...I can't seem to see where the error is ...
March 21st, 2015, 03:46 AM
The usual segmentation fault..the debugger takes me to the line
for(combi * put = head ...........
am thinking head does not exist...which means call to function ins(head, t, f) is not working...
January 28th, 2015, 11:32 AM
thanks again twokaud...so many many thanks..
January 28th, 2015, 11:22 AM
thanks to all of you...you guys are just soo good! hopefully oneday i will become like you
January 28th, 2015, 11:07 AM
wow...very trivial indeed...so i load all of them in a container and i start to pop_back for count 20..new line..is always looks more easier when you already have the answer...
January 28th, 2015, 10:17 AM
and what about inverting the order? last line must be first line did you notice? must read from bottom to top... still not clear how that is being done laserlight...
January 28th, 2015, 09:48 AM
each line will be made of 20 numbers, how many lines? they vary..more than 150 lines for sure...keeps changing...
January 28th, 2015, 08:19 AM
so let say i got some numbers like so in a .txt file
12 13 22 22 43 45
23 54 87 89 98 88
34 55 76 88 8 88
45 32 45 28 98 88
January 15th, 2015, 04:38 AM
you are very right! my bad! those small small things are what will get you.
what do you mean by i should learn to ask questions the "smart" way?
we all do start from somewhere you know???
January 15th, 2015, 04:23 AM
am passing an std::multimap<int, int> (a global variable) as a parameter to a function.
In the function itself (function first_rumble() ) the map behaves well..all is ok..size not zero after being...
January 12th, 2015, 10:57 AM
ok will put code in code tags next time. sorry.
are global variable declared up there somewhere....
January 12th, 2015, 09:44 AM
sir since you're online now..can you help me with this lil problem?
am getting error undefined reference... :(
/home/mike/Dropbox/C++/Rolling Real.o||In function `extract_pos_wins()':|...
January 12th, 2015, 09:13 AM
ok ok loads of thanks for the clarification :)
January 12th, 2015, 08:43 AM
thanks 2kaud the code works..and there was no need to change string elem to int elem...
you could have told me sstreams are used to convert int to strings for input..but i read about it and i got it...
January 10th, 2015, 05:27 AM
Hi 2kaud..thanks for the quick reply...
but there are some stream objects I've never used before and reading about them on cplusplus.com has given me some idea but things are not just clear yet......
January 9th, 2015, 06:07 AM
i want the maching to be inserting numbers itself from a name.txt file (no problem here)
but lets say i have the numbers this way
23 24 25 26
27 28 28 30
31 32 33 34
in my name.txt file
November 17th, 2014, 09:11 AM
November 13th, 2014, 07:11 PM
vladimirF that was by the way..we're here to talk messed up code.
Paul mckenzie..I find your code too heavy though..i didn't even know you could call a function in a struct like that..like how you...
November 13th, 2014, 02:20 PM
thanks paul! anyway is not homework...is me wanting the machine to do some daunting repetitive task for me...i got this part time job to put some numbers in order...and am trying to find a way to...
November 13th, 2014, 12:03 PM
November 13th, 2014, 11:57 AM
and you are right Paul! i need to use the STL more! but is not my fault..am in third year computer engineering...should be taking my degree in a couple of months...we were only taught how to program...
November 13th, 2014, 11:48 AM
my numbers are natural numbers...in cont3 there must be no repeating natural numbers...the pairing is insignificant in cont 3... but the rule is that i have to take the first two numbers of every...
November 13th, 2014, 11:44 AM
2kaud! :) of course with this explanation the code will surely crash!!! and it may crash still too if i use just int * pointer if my vector is moving about in memory...i have to read and go at the...
November 13th, 2014, 11:38 AM
oh a moment, i just learned something new...so with vector::iterator..pushback destroys the pointer? wow! so i may as well not use a vector::iterator but an int * chk2 no? anyway am gonna read on...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.