@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> and then maybe some work later
<1> I have a copy I can send you if you like...
<2> burp
<3> weird this did not work http://rafb.net/paste/results/KQXDJk64.html because it skipped the input in the first loop but this worked fine http://rafb.net/paste/results/ApmJvA65.html
<4> how i can connect strings ?



<1> Tie the ends together.
<4> if i have 2 strings like "-" and "-" and i want to connect them
<4> how ?
<5> string("-") + "-"
<4> k :)
<2> You need to #include <string> and add a using std::string;
<4> yes yes
<2> And note that the result is a std::string.
<2> Not const char*.
<5> ...
<4> yep i know
<5> (string("-") + "-").c_str()
<5> *eg*
<2> *ge*
<4> *ha* ?
<2> ? *ah*
<4> and if i want to connect 2 chars to one string ?
<4> 2 or more ...
<2> IIRC you can use operator+...
<2> With chars too, as with char*.



<2> And if you have lots of them, you can throw them in a container and then make a functor to add them to a string.
<4> ah ??
<2> Look up for_each.
<2> yawn
<2> Leave the damn connection alone.
<2> You're interfering with my yawning.
<6> ppl, how is INFINITY #defined on unix gnu headers
<7> um
<7> you can't check yourself?
<6> I don't have them
<6> I am trying to compile a program under win32
<6> visual studio
<6> rect_d res(INFINITY, INFINITY, -INFINITY, -INFINITY);
<7> #if __GNUC_PREREQ(3,3)
<7> # define INFINITY (__builtin_inff())
<7> #else
<7> # define INFINITY HUGE_VALF
<7> #endif
<8> my VALF is bigger
<9> does it ever pay off to write your own versions of stdlib stuff in c++?
<9> for example priority_queue
<9> ?


Name:

Comments:

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






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

#india
#kl
HOWN RETURN
#allnitecafe
#worldchat
#allnitecafe
#india
#chat-world
#india
#worldchat



Home  |  disclaimer  |  contact  |  submit quotes