@# 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



Comments:

<0> value::value(int num) { n = num; } connector::connector( char *name, int number ) { ... }
<0> oop with :value(number)
<1> struct connector c[10] = { connector(someInt, somePointer), connector(SoemInt, somePointer), ... 10 times. };
<0> oh okay
<1> And... You should use std::string
<0> eh maybe
<1> Also, if value doesn't have a default constructor, you'll ahve to p*** ti some value in the initialization list.
<1> Well, "maybe"... Unless youR'e working with a C API, you definitely should. =P
<0> which i am
<1> string::c_str() should usually do teh job, though.
<0> actually you're right I should use my text cl***
<1> Text cl***?
<0> yeah has format tags which work with existing display code... has color, font, etc info
<1> I see.
<2> how can i exclude a) b) c) d) e) from this text: a) name1 b) name2 c) name3 d) name4 e) name5?
<2> i want to have "name1 name2 name3 name4 name5" instead of a) name1 b) name2 c) name3 d) name4 e) name5?



<0> is there a 'standard' for the method to result with the string name of an object?
<0> thing->tostring() or something?
<3> questions about files, how can I open a txt file and read the number 1,1,4 seperatly then go to the next line and read 1,4,3
<3> so 1,1,4 = first row, first column, number 4
<4> shaun: I'd use getline to get each line separately, then a simple stringstream
<3> is stringstream part of which libarary?
<3> stringstream part of which libarary?
<5> does anyone use boost::filesystem ?
<5> for some reason if i initialize a path to be "C:\Program Files" it throws an exception
<5> although thatsa a legal path
<6> Cloud99 - well, what does it throw?
<6> Cloud99 - and \P isn't a valid escape sequence
<5> hmm
<7> Cloud99: 1. it's C:\\Program Files". 2. You have to p*** another argument to the path ctor in order to make it accept native paths.
<5> its a windows filesystem, why shouldn't it be valid ?
<5> ohh
<5> hmm
<5> let me check the docs again
<7> (and it's described in the documentation)
<6> to type a literal \ in a string literal, you have to escape it as \\
<4> Or just use /
<6> right
<5> as in C:/Program Files ?
<6> yes
<5> looks kind of odd
<6> it's valid
<6> it's that or C:\\Program Files
<7> How does it look odd? Every civilized operating system uses /.
<5> lol
<5> i use a savage os
<5> so if i took the windows string
<5> and just flipped all the slashes
<5> it would work ?
<6> [02:43] <6> it's valid
<5> just double checking
<7> You will still need to p*** the native argument.
<5> windows_name ?
<5> as in fs::path(szConvertedPath, fs::windows_name) ?
<6> you could always try it, you know
<6> ConvertedPath ?
<5> the one with slashes reversed
<6> ...
<6> why didn't you just type them reversed?
<5> because windows users do not like to revers paths
<6> I guess you didn't understand the problem
<5> what do you mean ?
<6> you don't have to reverse slashes or 'double-slash' paths that you read from users
<6> only those part of string literals -in code-
<6> that's how we do things like "hello\n"
<6> the \ is an escape character
<6> when you embed it in a string literal, it takes the following character and interprets it differently
<6> \n gets replaced with a newline
<6> \t with a tab
<6> \\ with a \
<5> but you can also have an actual string "Hello \nworld" without \n being converted
<6> huh?
<6> cout << "enter the path: "; if( cin >> p ){ path( p, windows_name ) // this has nothing to do with it
<6> we're talking about string literals in C++ source code
<5> the user is read in a simiar way as you pasted
<5> why would it convert the slashes
<6> it doesn't



<6> that's my point
<6> which is why you don't need some szConvertedPath for a string that you read from a user
<5> i read strings in the same way as you wrote, and it still throws me an exception
<6> I'm not talking about exceptions
<5> so i though fs::path just doesn't like \
<6> no
<6> when you said this:
<6> <5> for some reason if i initialize a path to be "C:\Program Files" it throws an exception
<5> sorry, i meant something else by that
<6> it appeared that you were doing: fs::path( "C:\Program Files" ...
<5> let me put the code on noidea
<6> I believe _m_ addressed your probable problem with it throwing an exception
<6> did you try it yet?
<6> and if so, [02:40] <6> Cloud99 - well, what does it throw?
<5> http://www.noidea128.org/sourcefiles/15854.html
<0> in visual studio... how can I 'go to implmentation' is that 'definiton' or 'declaration' ?
<6> usually definition
<6> you could just click it, and if it brings you to the 'right' place, there you are ;)
<0> heh
<0> you **** :)
<0> good answer though
<6> is this a test?
<0> no
<6> Cloud99 maybe you need a trailing \
<5> i think _M_ was suggesting no \ period. Just reverse the direction of the slashes. The documentation for windows paths suggests the same
<6> or maybe the path is invalid
<5> no the path is valid
<6> hmm
<5> oooh
<5> it worked
<5> thanks everybody
<7> No, I think I was pretty clear when I said: 1. it's C:\\Program Files". 2. You have to p*** another argument to the path ctor in order to make it accept native paths.
<5> i p***ed it "C:\Program files" from user input and used native as another argument, and it worked ok
<8> morning
<4> Duh, have to go to Prague tomorrow and it's -9 celsius
<9> Serves you right
<4> Looks like it's eventually get to western europe anyway
<4> s/'s/'ll
<9> Well
<9> Have a good trip
<9> Night
<10> CrazyBandit CrEw OwnEz mE!
<11> hi all
<12> afternoon
<11> sorry for question, does anybody know hoe to run the ***embler?
<11> *how
<12> What ***embler? And what's this to do with C++?
<13> dj_Benzin for ***embly language join #asm but is better stay in c++ , ***embly has nothing to give you
<11> TASM. i want to connect the C++ program with ***embler program
<12> No idea - not run TASM/MASM/AnyASM for years
<12> Normall
<11> Erag0n ok
<12> VC++ supports inline ***embly with __asm
<12> And GCC has something similar, but with a different syntax
<12> otherwise, you'll have to setup the toolchain to compile .asm files to objects and convince the linker to include them. shouldn't be too hard
<14> how can i modify a string inside a function and make the changes take effect outside the function too? if i p*** a char * and i increment it (the pointer) it works fine inside the function, but outside my string is the same
<7> p*** a reference to the object you want to get changed (in this case, apparently, a reference to the pointer).
<14> thanks
<15> blAckEn3d and quit using char*
<15> in C++ a "string" is std::string
<14> bye
<16> haha n00bs always ignore the std::string advice
<7> bealtine: C programmers also do.
<15> bbiab
<7> They typically insist on using character arrays because they now "better".
<16> indeed
<15> aargh
<15> bbiaw
<17> Has anyone worked with ACE threads (specifically wait and signal/broadcast) ?
<18> why doesn't my listbox update the content of it's items after running this function ? ---> http://www.noidea128.org/sourcefiles/15855.html
<19> hi all )
<20> hi
<21> Hey
<22> hey anyone around?


Name:

Comments:

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






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

#linuxhelp
#AllNiteCafe
#linux
#AllNiteCafe
#linux
lahwa cyber
-trobbija tal-hamiem
sigh of skypee
paagles
#linux



Home  |  disclaimer  |  contact  |  submit quotes