« first day (891 days earlier)      last day (1537 days later) » 

2:38 AM
hi guys, i just answered a question about appending and prepending printf.
0
A: Prepend or append to every printf call

sgunMost convenient way: #include <stdio.h> #include <stdarg.h> using namespace std; int taggedPrintf(const char * format, ...){ printf("[PRE]"); va_list args; va_start (args, format); vprintf (format, args); va_end (args); printf("[POST]\n"); } #define printf taggedPrintf int mai...

 
2 messages moved from Lounge<C++>
 
 
9 hours later…
11:45 AM
@BartekBanachewicz you know, that google search is unwieldy. be more specific?
@BartekBanachewicz you know, that google search is unwieldy. be more specific?
 
12:05 PM
2 messages moved from Lounge<C++>
 
12:47 PM
<Cthon98> hey, if you type in your pw, it will show as stars
<Cthon98> ********* see!
<AzureDiamond> hunter2
<AzureDiamond> doesnt look like stars to me
<Cthon98> <AzureDiamond> *******
<Cthon98> thats what I see
<AzureDiamond> oh, really?
<Cthon98> Absolutely
<AzureDiamond> you can go hunter2 my hunter2-ing hunter2
<AzureDiamond> haha, does that look funny to you?
<Cthon98> lol, yes. See, when YOU type hunter2, it shows to us as *******
<AzureDiamond> thats neat, I didnt know IRC did that
<Cthon98> yep, no matter how many times you type hunter2, it will show to us as *******
 
1 message moved from Lounge<C++>
 
1:41 PM
Question: How do I get the QTextStream to return only the first number after a space.
line = " 19/31 18/30 20/32";
QTextStream s(&line);
s >> a >> b >> c;
 
1 message moved from Lounge<C++>
 
 
4 hours later…
5:15 PM
1 message moved from PHP
 
5:30 PM
hmm can i have default arguments for a struct constructor? ._. in the old gcc 4.4?
 
2 messages moved from Lounge<C++>
 
5:48 PM
1 message moved from Lounge<C++>
 
 
2 hours later…
8:12 PM
Hey a small C question (but it might as well be the same in C++) when creating a non-dynamic array and then creating a dummy struct with the same size of an array as a member. I get the same sizeof size from both why is that ?
 
1 message moved from Lounge<C++>
 
 
1 hour later…
9:26 PM
google isn't really helpful
 
Xeo
1 message moved from Lounge<C++>
 

« first day (891 days earlier)      last day (1537 days later) »