@# 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 12 13 14



Comments:

<0> is this a legal way to combine std::strings --> szSoundScape + " : Initialized"
<1> sure
<0> for some reason that causes my program to crash
<0> MSVCP80!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Grow+0x22
<0> it crashes from there
<0> any idea why ?
<2> Cloud9: check if szSoundScape is valid
<3> what's the real code?
<0> hmm
<2> you could've somehow already deleted it or the object containing it, it might've been destructed by another thread, etc
<3> std::string a = "hello"; a = a + "world";
<4> error CN00B: no space
<3> exercise for the reader
<3> http://www.tomshardware.com/2006/01/09/strip_out_the_fans/
<0> when my program crashes i get an error message : Microsoft Visual C++ Runtime library - then it says that the program terminated in an unusual way
<3> run it with a debugger attached, or attach a debugger at that point



<0> but why does it say Visual C++, usually its a windows message saying program crashed
<3> because it's the Visual C++ Runtime that triggered the dialog box
<0> like a function from MS library ?
<3> i'm guessing it's a debug build, and when the debug runtime crashes, it provides that nice dialog box so that you can attach a debugger
<5> rdragon i decided to learn c++ and give up with ***mbly :)
<3> Erag0n - if only you had listened sooner
<6> I recommend the books here: http://rudbek.com/books.html
<7> if p is a pointer to a struct object containing a double array A of some length, how do I find the size of A?
<7> sizeof(p->A) gives 4
<7> which is wrong, since length of A is like 10000
<3> why are you using an array and not a vector? you fool
<7> of doubles
<6> corstan then the struct doesn't contain an array
<6> it contains a pointer to an array
<7> yes, how do I access that array
<6> corstan is it a pointer?
<7> sorry, A is a pointer to an array
<6> then you don't
<3> well, you're the one that gave it it's initial size, why have you forgotten it?
<6> use std::vector instead of a dynamically allocated array
<7> I'll get to those vectors later, now I need to do malloc/new
<3> uh, no
<0> lol
<3> why do you think you know a better order to learn the material?
<6> corstan you FOOL
<7> I don't know better but I need to confine myself to the exercise ***ignments
<7> so don't come knocking with those FOOL crap :)
<3> who gave you these ***ignments?
<6> oh ****, this is for school?
<7> sure
<6> tell your prof that s/he is doing everyone a disservice by teaching the way s/he is
<8> They teach the opposite way of AC++ it seems.
<6> Run almost everyone does
<3> corstan - does 'sure' mean 'yes' ?
<8> rdragon: sure
<7> heh
<7> vawjr, so there's no semantic way of getting the size of the array pointed by A?
<6> corstan how about that
<7> even though I knew it or not
<6> got it in one
<3> corstan - why don't you save the size somewhere?
<6> he'll have to
<7> ok, so I cannot access the size of the array from the pointer alone, amazing
<3> amazing?
<7> sarcastic
<3> really?
<7> so I cannot?
<3> no
<7> how about: double *B = p->A;
<7> then use B to find it?
<3> how about listen to us
<7> what do you tell then
<3> [01:20] <3> no
<3> [01:18] <3> corstan - why don't you save the size somewhere?
<3> [01:18] <@vawjr> he'll have to
<3> [01:14] <@vawjr> use std::vector instead of a dynamically allocated array
<7> ok, sorry for insisting some functionality out of C/C++ with is not there
<6> corstan apparently your teacher isn't doing a very good job
<7> no, it's prolly me
<3> if you're following your teachers instruction, then it's not your fault that you don't know what's going on, but it is your fault that you expect them to be skilled at teaching
<3> (and it is your fault for not seeking an alternate resource for learning)



<7> anyways I appreciate any feedback I can get from IRC on coding
<6> well, it's best you give the constraints up front
<6> otherwise we just get irked
<3> the general advice is 'hit the books'
<7> yes
<6> g'night all... early day tomorrow, and it looks like we'll need to snowblow our way out before
<3> geez, it was 80F again today
<3> i'm headed to bed too, seeya
<8> boost::spirit is really cool stuff.
<0> when are unloading a dll, does DllMain run in the same address space as the program ?
<0> ie i want to call a clean up function on exit
<9> hi all
<9> anyone can explin me url file format?http://ovanttasks.sourceforge.net/roxes-win32/chapter-.url-format.html here only say how get year and month, but day, hour, minute, seconds ?
<10> any one still here
<11> We're having a meeting.
<10> Q : FileStream.Read(buff, offset, count) when offset = 0 , buff = {1,2,3,4,5,6,...}
<10> i have question that really puzzle me
<11> huh?
<10> when offset = 1 , buff = {0,1,2,3,4,5,6,...}
<10> when offset = 2 , buff = {0,0,1,2,3,4,5,6,...}
<10> when offset = 3 , buff = {0,0,0,1,2,3,4,5,6,...}
<11> hey
<11> stop
<10> shouldnt the result be {0,1,2,3,4,5,6,...}, {1,2,3,4,5,6,...}, {2,3,4,5,6,...} respectively
<11> use http://www.noidea128.org
<10> :P i'm not flooding
<10> this is not code...
<11> I have no clue of what you're doing
<11> or what you're talking about.
<10> ok say I'm reading a file using function Read() that have offset parameter... the offset should tell the function where to start right?
<10> but somehow in above function it just goes backward
<10> so my question is... is that how offset parameter behave
<11> then you need to fix your Read() function.
<10> that is library function ....
<11> or are you using ofstream?
<10> i'm using FileStream
<11> I've never used FileStream?
<11> That's not standard c++.
<11> Is that .NET by any chance?
<10> yes....
<11> ahh
<11> I'm not very familiar with .NET
<11> look in MSDN
<10> hmmm interpretation of offset should be standard
<10> thanks...
<10> I'll just see what i can do
<11> I know what an offset is supposed to be. But you're better off looking at the documentation in MSDN than asking me.
<11> try #c#
<11> they might know
<11> http://msdn.microsoft.com/library/en-us/cpref/html/cpref_start.asp
<11> http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemIOFileStreamCl***ReadTopic.asp to be exact
<10> sory to bother... but c# is very silent chanel... usually i have better luck here
<10> MSDN say the same thing ...
<10> I'll just try to do this differently
<10> debugging this thing will just make me crazy
<11> ok so your text file has 0123456 has text in one line?
<11> with commas that is
<12> hey, having some problem with pointers. http://rafb.net/paste/results/OWTZLi87.html
<11> ok
<12> for some reason, this is not changing the original vector
<12> that gets p***ed in
<12> im trying to sort it by using only pointers
<11> What is not changing the original vector?
<11> what function
<11> or method
<12> the function is called InsertionSort
<13> uh huhuhuhuh
<13> he said insertion
<12> =/
<11> well, where do you try to modifu the original vector?
<10> [15:51] <11> ok so your text file has 0123456 has text in one line?
<10> [15:51] <11> with commas that is
<11> modify*
<10> i'm trying to represent byte array in a list


Name:

Comments:

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






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

#c++
#windows
#javascript
#slice
find_specmb
How many furlongs are there in a mile and a quarter racetrack ?
kanyo nedir
mysql_query('BEGIN TRANSACTION_NAME'
openbsd 3.9 with apache php and mysql
#linux



Home  |  disclaimer  |  contact  |  submit quotes