@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9



Comments:

<0> where r u from?
<1> why do you care?
<0> sorry about that
<1> all I know is that you are the most stupid israeli person I know now
<1> you must agree with me, no?
<0> PLZ kick him off here forever
<1> why?
<2> i love this part of the play
<1> why abra?
<0> beacuse where not alow stupid people here..
<1> but you can't write english
<1> and you told me my mom is stupid
<1> and to go **** myself
<1> and you dont know how to use pointers
<0> what's ur point?
<1> and you call me stupid?



<1> YOU, Sir, are stupid
<1> YOU!
<3> Heh
<0> what next?
<4> next = prev;
<1> I win, I win!
<5> what does the error mean expected unqualified-id before '{' token
<0> what's merkava 4?
<1> Abra, you should know
<0> mmmmm why should i?
<1> netvision.net.il
<0> ****
<0> u got me
<1> indeed
<0> **** me
<1> maybe later hun
<1> idiot
<4> heh
<4> .il
<4> c-bot .il
<4> israel?
<1> yes
<1> probably the most stupid person there
<2> sure
<5> what i am doing wrong with the extern input file ?
<5> http://rafb.net/paste/results/w73AhI84.html
<6> why is the code outside of main?
<5> ok i moved it in
<5> nowi have `in' undeclared (first use this function)
<4> instead of just randomly throwing code around, first understand what the heck is going on
<4> where did you move it "in" to?
<4> and what line is the error on?
<5> http://rafb.net/paste/results/lnCOY358.html
<5> look
<4> this looks completely different
<4> and ifstream is defined in <fstream>
<5> so i get [Linker error] undefined reference to `in'
<4> yup, you declared it extern (probably, hopefully in a header file)
<4> so, you need to define the actual object somewhere
<4> that's odd to have a global file stream object, though
<5> i have one file that from it all func are reading
<5> and i did ifstream in; in my main
<5> look on my two files http://rafb.net/paste/results/RvXmyT78.html
<4> yeah, the object is in local scope in main()
<4> i highly recommend you don't use a global stream object like that
<4> it's just silly
<4> just p*** the stream object to whatever function you need that reads from it
<5> first of all i have too many fuctions
<4> how many is too many?
<5> about 20
<5> and i can"t understand what to do about my error
<4> move the object declaration outside of main()
<4> that puts it at global scope
<4> and then it'll link up with your 'extern' declaration in the other file
<5> thanks
<5> worked
<5> now can you explain me why you don"t like the global object



<7> if you ever like to use glogal objects, make a singleton container, to put them ;)
<8> Funny, my gf's university website got hacked heheh
<7> :))
<7> nothing will live forever
<5> http://rafb.net/paste/results/jnmiZF67.html
<5> what wrong there ?
<8> That's a vague question
<5> i am getting an endless loop
<8> Maybe it's never 1
<5> i have in my input .
<9> kttkp: first if has not end condition.
<8> No end condition?
<5> yes it has
<8> kttkp: how about you just debug your code and see what peek returns
<9> you can provide a flag value to first if branch.
<8> Not sure you're making sense meyrnn
<5> while(flag != 1);
<5> and when i have . i will get 1
<10> what's the problem?
<9> no the first if can not setting the flag value, so it will work endless.
<8> Not sure why that'd matter meyrnn, he wants the loop to end on .
<9> Ashe` is right too it's possible never havin 1 too anyway.
<5> yes ashe`
<5> i will have the dot
<8> Run your code in a debugger
<8> And see what peek returns
<9> in.peek() == ';')
<9> you should debug.
<8> btw you should keep the return from in.peek()
<8> Or you'll get two different results
<8> (which is probably your error)
<5> how i do it ?
<5> in.peek(b); didn"t work
<8> int c = in.peek();
<8> if (c == ';')..
<5> int ?
<5> you mean char
<8> Nope, I mean int
<8> peek() returns an int
<11> dont question ze master young jedi :P
<5> :)
<10> why does peek() return an int? for unicode?
<9> Tamama :)
<8> For the same reason fgetc does
<9> by the way what is the in.peek() return type?
<8> Returns EOF if stream is at the end of file and in any case where member good() (ios::good) would return false
<5> didn"t help
<5> http://rafb.net/paste/results/3xtLIr31.html
<8> cout << "debug: " << static_cast<char>(b) << std::endl;
<12> just an idea, seems you always read your '.' or ';' first then your number, so if your ';' is on an even position in your output it will fail, again just an idea though
<10> cout << "debug: " << (char) b << endl;
<12> input i meant
<8> Jay1988: the fact you don't understand casts doesn't mean you shouldn't use them properly
<5> i used the code on input 344 486 .
<5> and it didn"t work
<8> Any reason why you don't just read it normally then check what it is?
<4> especially since you end up reading it in no matter what, anyway
<5> good idea
<5> i just to know what i get is it number or is it ; or .
<5> how to do it ?
<4> ';' is a number
<5> but how will i know is it ; ot .
<5> r
<4> what are you really trying to do here?
<4> what is the format of this data?
<8> int i; if (!(in >> i))
<8> Then it most likely isn't a number ;)
<5> i should know what kind of char i got
<5> that the problem
<5> is it was ; or was it .
<9> kttkp: you can try to add break; at the end of cout << "\n"; , just a idea.
<8> string s; if (in >> s) { if (s[0] == '.') { } else { int i; stringstream ss( s ); ss >> i; } }
<8> meyrnn: you shouldn't try to help
<5> ashe` too many thing that we didn"t learn


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

#mirc
centos 3.6 /centos/Null
growing plants in liquids rather than soil is known as ________?
sagetzel
puiu codreanu manele
#AllNiteCafe
#linux
#AllNiteCafe
Sms Bomber Deluxe v15
#javascript



Home  |  disclaimer  |  contact  |  submit quotes