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



Comments:

<0> its not
<0> it came with the Makefile
<1> well, it looks like it's trying to compile prog_ver.cc and link it with doproc bitvector labeltab main bring and BB
<0> hmm
<0> can i do extern "C++" in a c file ?
<1> no
<1> you put the extern "C" on the definition of the function
<0> the makefile that they gave me uses a different compiler depending whether its a .c or .cc file
<2> how can i convert string to char ?
<0> .c_str()



<0> std::string s = "hello", char *str = s.c_str();
<1> that's a char*
<1> and that's hazardous as all getout to do
<3> omelche that'd be char const* str = s.c_str();
<1> omelche of course it does..... .c is a C program .cc is C++
<1> rdragon still a bad idea
<1> because you don't know how long the pointer will be valid
<3> right
<4> btw what was name mangling introduced exactly for ?
<2> 10x, i'll try it
<1> max NO NO NO NO NO
<1> what the hell are you really wanting to do?
<0> max4ever : What exactly are you trying to do ?
<2> nothing, just trying to get a hang of all this char-string conversion, always messing up
<1> omelche as are .C .cpp .cxx
<1> why do you EVER need to do conversions
<3> conversions to/from what?
<2> string to char and viceversa, pratice...
<1> that's meaningless
<1> what do you think you're practicing for?
<3> practice for what?
<1> who told you that you even COULD do it?
<2> well u just told me how to do it
<1> NO
<1> you'd better read what _I've_ typed
<2> nobody told me that
<1> who told you you COULD convert from a string to a char?
<1> which is what you originally asked
<1> and what others have been telling you is _kinda_ how to convert from a string to a char const*
<1> but there are severe problems with what they've shown
<1> so what are you really trying to do? and why ??
<2> well yesterday i wan't able to transform system::string to normal string, and ppl here kept saying go learn the language first, so today i want to practice on some conversion
<3> System::String^ to std::string? the first question is why you need to do such a thing
<1> given that you don't understand the language, I'm wondering where you even GOT a System::String^
<3> and which language are you really trying to learn; C++ or C++/CLI ?
<2> nah system::string is the variable type that holds the value of a "label" in visual studio 2005, so i was trying to make this counter, and now i found this article on microsoft that igotta try out
<2> not counter, timer
<3> that really doesn't answer anybodys questions
<1> you're ****ing w/ windows stuff and haven't learned the language?
<3> and it's not system::string



<2> what? i'm using their draw form project, and then u set action, like on click do that or do this
<3> so?
<2> nothing
<5> lo
<5> anyone know how to do a CRC/FCS calcul
<1> yes
<1> well...not sure about the FCS stuff
<5> k, well, if my M begin with a 0
<5> do i shift the bits right at the begening, or only when there is 00
<1> huh??
<5> M'=0110001001001010'0000000
<5> CRC = 10011001
<1> you want to do it bit by bit?
<5> thats how they do it in the book
<1> yeah, you build the hardware that way, but you generally do it byte by byte in software
<5> i habe to fake a message with an error that won't be detected
<5> have any idea ? :P
<1> I have no idea what you're talking about
<5> its in networking lol
<5> checksum are used to check data integrity
<1> I know what CRC is
<1> I wrote a distributed one for a place I worked... divvied up the work among 200 computers
<5> ok, then the teacher said there is a technique to fake a valid msg
<1> toast I don't know what you mean to fake a valid message
<1> creating a valid message isn't that difficult
<6> i think what he means is take a message and call it M1, generate a CRC for M1, now find an M2 such that the CRC for M2 = the CRC for M1
<1> ok
<5> i mean it looks valid, but it isnt
<3> how does it 'look' valid? (what determines 'valid' ?)
<5> the FCS
<5> frame check sequence
<5> ill show u an exemple
<3> well, you can brute force messages until you find one that matches the same CRC
<1> if the message is binary, it becomes very simple
<1> if it's text, it's a bit trickier
<5> http://pastebin.com/543924
<3> i have no idea what this means
<5> its the validation
<3> 3, 5, 12, 4, 2, 3... so 17
<5> M(x) = x_7 + x_6 + x_5 + X_2 + x
<5> CRC = x_4 + x_3 +1
<5> thats for M = 11100110
<5> bah ill have to ask the teacher some stuff i guess :p
<1> has anyone heard any more about Vista beta? or office 12 ?
<7> http://www.mightymiddle.com/index.php?/archives/701-Deficits-I-Dont-See-Any-Deficits..html
<7> heh


Name:

Comments:

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






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

#linux
#AllNiteCafe
chekerap
gentoo GAPING_SECURITY_HOLE
#london
sex 3arabe
#php
#london
#london
FBtorrents



Home  |  disclaimer  |  contact  |  submit quotes