@# Quotes DB     useful, funny, interesting





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



Comments:

<0> Here is a question. Lets say we're using cin.getline(sentence, 20, '\n'); The user inputs this: Theodor,Phr34Ck,ohadsu,Meekys^Away ... How can I use strtok(sentence,','); so I can store those names in another array?
<1> Your professor/teacher didn't supply you with material or gave you book references?
<0> qtx, I'm not understanding the strtok, That was a question from my lab session.
<0> I have a C++ exam tomorrow, and I have no idea how to use those ****ing functions.
<1> Quite a pickle you're in then
<1> I suggest you get busy reading. Would you agree?
<0> qtx, you have no idea.
<0> qtx, I am reading. I'm getting nowhere, because there are no examples. I do understand the idea of strtok, but I'm not being able to give my self a good example. Like the one I just said.
<0> I don't even have the idea on how to start.
<2> got a unix machine handy? man strtok
<2> otherwise
<2> google "man strtok"
<0> What does strtok have to do with Unix?
<2> um
<2> it's a manual page
<2> it tells you how to use strtok



<1> Phr34Ck, www.cplusplus.com has examples and are good for new people. At last it used to be... Don't know about these days
<3> man pages can be a little abstract sometimes though
<2> not the strtok one
<2> it's pretty concise
<3> okey
<0> Okay, I'll search. Hope I get something handing. Meanwhile, can you do the example for me? It might help me
<2> there's an example in the manpage for strtok
<2> and your own example does just fine.
<0> Zenethian, I don't know how to solve my example ;p
<0> I know how to split it, and output the results. But I don't know how to store the results in another array
<2> your example has nothing to do with strtok. your strtok is working just fine.
<0> <0> Here is a question. Lets say we're using cin.getline(sentence, 20, '\n'); The user inputs this: Theodor,Phr34Ck,ohadsu,Meekys^Away ... How can I use strtok(sentence,','); so I can store those names in another array?
<0> I should use it, no?
<2> well you get a pointer back from strtok that points to where the next instance of your token is.
<0> Back to those bloody pointers =(
<4> if an error is print out to the standard out is there any way to figure out wich process generated it for unix/freebsd?
<2> no
<2> most errors are printed to stderr anyway
<2> but no, there's no way to tell what process generated it
<4> any kind of command or programming concept to get list of processes recently to write out to the stdout?
<2> no
<2> what are you trying to accomplish?
<4> i want to remove a wart on my foot w/ a computer program
<2> That's nice.
<5> hey all..could u check my problem @ http://cpp.enisoc.com/pastebin/6690 ?
<6> ever considered maybe actually allocating memory before trying to use it ?
<1> Never.
<6> i know, too radical, eh ?
<5> if i allocate the memory, how would i delete it at the end of the function
<5> ?
<5> i'm returning base_htpp
<5> base_http sorry
<6> and?
<6> you return it, sure. you don't allocate anything for it
<5> if i have char *base_http = new char[500]; is that sufficient? how would i delete that?
<6> with delete [] of course
<5> where would i call that
<5> outside of the function?
<5> after i call the function?
<6> when you're done with the memory
<5> k got it wrkin thx
<7> quick question guys
<7> I can't seem to multiply 117187*23537 without getting an error
<7> I've tried every data type I can think of
<6> and how many is that ?
<7> all the numerical ones, int/float/double/long and the unsigned variants when possible
<6> 2 758 230 419 isn't that large a number
<6> what error do you get ?
<7> yeah I can store the number fine
<6> tehn maybe you want to describe what the actual problem is, if it isn't what you said it was
<7> integral constant overflow
<7> when I actually run the program, I get a minus variable
<7> I'm running a function that multiplies matrices
<7> everything seems to be fine until I hit large numbers
<6> unsigned long should do, i'd think
<2> I think C should have called 64 bit integers "very long" instead of "long long"
<2> so that I can declare
<2> very long penis;
<8> how do you use a cl*** within a cl***?
<7> thanks FuIru
<7> still get that warning, but it actually shows up



<8> i am almost sure that the syntax is correct but i keep getting errors such as
<8> Map.cxx:18: no matching function for call to `Arr2D<char>::Arr2D()'
<6> watv: if you're using VC6, you're going to have issues nesting templated cl***es
<8> ah
<8> i'm compiling with g++ though
<6> ah, well, then
<6> maybe code to the pastebin in topic
<6> one ***umes you're not trying to define the bodies of these functions in a separate file fromt he header
<8> i have the implementation in one file
<9> yo
<10> yo
<9> That's all I got.
<11> howdy
<9> You're a real Texan now, eh?
<8> invalid data member initialization
<11> nirvdrum: I've been saying howdy for years
<9> Wow, lately #C# has become the new #C++
<12> Hey!! can someone please help me with a C++ programming question
<12> anyone??
<13> just ask and then...
<12> haha ok.. well im in a basic IT210 cl*** for my major..... and im having a redicliously hard time with a easy program
<12> get it so everything is flush
<12> i can send someone the example program
<12> the thing i need to get flush is like 10 lines of code
<12> real basic
<6> flush ?
<12> haha ok its real hard to explain
<12> i can send u the source in a text?
<6> read the topic of the channel
<6> see if it metnions anything about what to do with code
<12> ;)
<12> submitted :-)!
<6> give us the url
<12> http://cpp.enisoc.com/pastebin/6691
<6> you want the fullname to line up with "STUDENT NAME" ?
<12> yes and the scores and such under course preformance
<12> wait nnot that
<12> i mean
<12> so total points earned/averageprogram score/ average test score
<12> i lined up with one another
<12> so the T in total A in average and A in average
<12> and the name on the far left
<12> below the Student Name section
<6> you got to clean that crpa up a bit
<6> you output "" which is useless
<6> you setw 2 times in a row
<6> maybe you need to paste somethign that shows the output you get, and what you want
<12> i have the Sample program
<6> that, or just play around with setw and the iomanips like left
<12> of what it looks like
<12> http://cpp.enisoc.com/pastebin/6692
<12> Do you see that sir?
<6> looks like you jsut gotta set the width correctly
<6> do the math
<12> where do i input the setw? at the start of each line?
<6> before the data you're outputting. check your textbook
<8> given a char, how to convert to int
<10> if you want to go from '9' to 9, ***uming isdigit() succeeds, subtract '0' from the char
<8> teq,
<8> i love you.
<10> cool, that makes two people
<10> unless you mean it in a platonic sense :P in which case, that makes "too" [many] people ;)
<8> lol
<8> what's platonic
<14> non-romantic
<14> e.g. my love for scalar is platonic; his, for me, isn't
<8> lol
<8> ok
<8> i get you\
<8> ohhh question
<8> does .get() get a newline?
<8> let's say my file is 123\n456
<8> if i .get() through a for loop does it say 123456 or 123 'newline' 456
<11> hahaha. http://cosmicvariance.com/2006/01/31/the-science-president/


Name:

Comments:

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






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

#india
Jayde allnitecafe
I through blue sky fly to you
#india
kelli-girl
#allnitecafe
#worldchat
doctor's wife patience
#kl
kashmakash free mp3



Home  |  disclaimer  |  contact  |  submit quotes