| |
| |
| |
|
Page: 1 2 3 4 5 6
Comments:
<0> i did like that.. but it still doesnt work :( <0> i've got double x = 1.24 and double m = 10.0 <0> when I multiply them, it returns 1.24 <1> maybe you should use the website in the topic to paste the code to and seee if someone can help. <0> ok <0> http://www.noidea128.org/sourcefiles/16317.html <0> there <2> um... line 10 is useless <3> you're doing the multiplication, then throwing it away <3> "x * m;" <3> where's that stored? <0> oops :D <4> return x * m; <5> try ans = x*m; <3> or just "return x * 10;" <3> which will work fine
<0> sorry about that :) <0> thnx <0> alot <5> say does line 20 do something? <5> system("PAUSE"); <0> i use dev-cpp <0> and if i dont put that <0> it doesnt <0> compile <5> okay <4> Heh. <2> Giovanni_, it pauses until you press any key in windows console <5> ow <5> okay <0> or sometimes it compiles but when you run, it doesnt stop.. and the function keeps on going forever.. <5> ?? <5> weird <2> i doubt that is behavior due to not having system("PAUSE"); <0> maybe.. i've just started c++ 3 days ago. so i dont really know much about it.. i just removed that line and when i compiled, it didn't stop .. and was adding "hello world" forever.. <2> n00bie_cpp, instead of system("PAUSE"); i'd use cin.get(); 1) dont have to include cstdlib 2) standard c++ <0> thnx YUY0x7, i'll try that <2> np <0> ok.. here's another question :) at first take a look at this http://www.noidea128.org/sourcefiles/16319~ <0> is it possible to make cout << "'" << format( n3, 3 ) << "'" << endl; <0> return <0> 3456.680 <0> instead of 3456.68 <0> i mean it erases "0" <0> if you run it, you'll understand what i'm talking about :-/ <6> Use the setw and setfill manipulators (#include <iomanip>) <0> dunno how that works :( <0> yet.. :) <7> a <7> seLam kzlar <8> i have a slightly complicated question. in a static library im calling CreateWindow inside of a cl***. in the exe, im creating the cl***. The thing is, when the exe releases the memory of that cl***, its trying to release memory created from CreateWindow, which was created in a different heap (the static library).. any suggestions? <8> would it work if i threw CreateWindow inside of ANOTHER cl*** in the static lib and called new/delete from within the static lib's first cl***? <9> <0> is it possible to transform double into string? <8> use stringstream <0> ok <0> cannot convert `std::stringstream' to `double' in return <0> :( <8> ? <0> it says like that <0> when i compile <8> std::stringstream ss; ss << 123.456; std::string number = ss.str(); // if i recall correctly <0> yeah i do like that <8> could i at least see some code? <0> no no i got it already. the problem was that I had double function(){} and i was returning string.. <10> hello <10> who can help me ? <10> with something <8> the guy over there.. <10> :)) <10> can you send me pls? <10> a program? <10> c++ <10> i need it <8> lol <11> nutz... <0> string format(double x, int times){} <-- i want to store "2" in 'times' if 'int times' is missing.. and i wrote this.. if (!times){times = 2;}; isn't it correct?
<11> if 'int times is missing' ? <11> string format(double x,int times=" <11> 2 <11> bloody typos <11> string format(double x,int times=2) { blah } <0> yeah but i want that only in case if <0> when that function is called like this.. format(12) <0> only in that case.. <0> format(12) <--- 'int times' is missing. format(12, 2) <--- 'int times' is not missing <0> string format(double x,int times=2) { blah } <-- i think this works :D <12> ne1 here who can compile a program in Visual C++ version 6 ? <13> nobody would WANT to use vc++6 <14> !cbot <15> some people might want to. <15> http://www.latimes.com/business/la-fi-doctors4jun04,0,1528090.story?coll=la-home-headlines <3> yikes. you'll be as bad as the NHS soon <16> hi all <16> I have the following question <16> I have 64 bit application and this application load 32 bit dll through COM object <16> but I have a problem when I p***es 64 address to 32 bit dll <16> I p***ed it through double data type <16> but how can I read this memory using 32 bit pointer <16> can any one help me plz <3> I have no idea. That might not even be possible <5> there was a c++ equalivent to vbasics char, but I cant remember. <5> Anyone? <5> const <char>32; or something <3> whats vbs "char"? <5> *chr(32) <3> oh <3> char c = static_cast<char>(32); <5> yes that was it <3> or something <5> thank you <3> the "char" datatype is really misnamed. It's just a generic "small" storage area (8 bits generally) <0> Is it legal in C++ to declare a variable in one function which has the same name as a variable declared in another function? In java it is.. and they aren't related to each other.. and is it the same in C++ ? <5> they have local scope, yes <0> so they aren't related to each other, right? <5> Unless you make them related <0> ok <0> thnx :) <5> but I'm fairly new to all of this, too <0> i'll write the simple prog. i think it should work.. i'll output the same exact variables (names) but in different functions with different values <17> what manipulator i should use to modify the size of tabulation <18> char c = 32; <18> no cast needed <5> Hey, thanks <18> a char is just a number <5> I need to use it something like strcat(data,2); <18> i don't know what you expect that to do <5> strcat(data,static_cast<char>2) <5> well data is going to use by another program <18> what's 'data' ? <18> and why isn't it a std::string ? <5> this will tokenize data using untypable chars <18> that doesn't answer myquestion <5> data is a pointer to a string <18> ok, and why isn't it a std::string ? <5> because this other program needs it to be <18> what other program? <5> mIRC <18> you can get a pointer to "c-string" from a std::string, to p*** to things that need it <5> Yes that should work <5> thanks, again <18> std::string s = "blah"; char const* c = s.c_str(); <5> wait <5> char const* c = s.c_str(); wouldnt append would it? <5> can I use char const* c = c + s.c_str(); <2> append? <5> add <18> no no no no <2> no, that's not valid <18> do you have Accelerated C++ yet? <2> for 2 reasons..
Return to
#c++ or Go to some related
logs:
bad_pool_header guildwars #MissKitten theenglishmansion access #MissKitten #linux xgisem #linuxhelp romadrid Fedora Core 1 RAID disk failure EXTENXION FLAC
|
|