| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13
Comments:
<0> and on other cases also? <0> ok it's reading <0> but i know it's not doing what it supposed todo <0> like subtraction <0> and also addition <0> so i put the IF commands after the cases <0> to detect? <0> but if the value is already like value+=1 <0> wouldn't is appear next time value=1 on the loop? <1> yes <1> you'll have to figure this out yourself <1> this is too basic <0> :( <0> if it's in my mind <0> it's quite hard <1> you're having problems with algorithms, not with C++
<0> but if it's in the condition like this <0> it'll like IF on every cases :( <1> you better start with easier problems <1> you're having too much difficulty here <0> what kind of problems it' still persist? <0> http://rafb.net/paste/results/yCcOaw52.html <0> i made it to this <1> i figured <0> what other problems my program post other than detecting the values ? <1> loads <1> sorry, i won't help you any further <0> ?_? <0> why so? <1> because 16:37 < mathieu__> you better start with easier problems <1> this is too much for you <0> i know it's too much <0> easier problems like <0> if it enter other than roman numeral <0> it'll display error? <2> Off to office <3> how i check that i got error in the input like whaited for int and got char <3> how i check the stream <4> inputval = <EFNet #c++ FAQ: Performing Input Validation: http://rafb.net/efnet_cpp/faq/io/inputval/ > <C++ FAQ LITE: How can I get std::cin to skip invalid input characters? http://www.parashift.com/c++-faq-lite/input-output.html#faq-15.3 > <3> http://rafb.net/paste/results/p8rJ3s50.html <4> if (in1 >> guess && guess == 0) would simplify the code a little <4> temp2 is leaking <5> re <6> hi there, please tell me a good tool for creating icons, i need for a system tray icon, i search on the net, but fond only bad soft <7> is there a way to ***ign stdout to an fstream handle? like if(file_given) file.open("file_given.txt"); else file.open(stdout); // so that any subsequent writes to file will output to screen <8> afaik there is no straightforward way to do that <7> or any conceivable workaround? <7> something with pointers and / or casting <8> you could write a cl*** wrapper that stores a stream <7> can you give me an example of how to start <7> i'm not really sure how to proceed <8> ok it seems that you could redirect cout, and probably other streams too <8> try this ofstream ofs("cout_file.txt"); streambuf*const oldbuf= cout.rdbuf(ofs.rdbuf()); cout << "this is redirected to cout_file.txt" << endl; cout.rdbuf(oldbuf); <9> how can i run a program through another c++ program? <9> in win env <9> anyone? <7> maybe <9> ... <7> the answer I received asking that question in here a short while ago was to use " <7> system(), ShellExec(...), CreateProcess(...), or whatever" <9> aha .... <7> but I haven't gotten to look it up or attempt anything yet <9> thnks <7> so google those functions and good luck <10> i know has nothing to do with this channel but wasn't there a language j++ ? <7> frx_ if could you explain how that piece of code works? I don't really understand. what I am trying to do is be able to use the same handle for writing to a file or writing to the screen depending on certain variables <11> VaranG|aN there was, don't think it's still around <12> Wasn't J++ Javas aborted zombie twin that MS created (and got sued over, resulting in the creation of .net) <11> that's what my memory is hinting at <12> which is thankfully long dead. the closest replacement being J# <12> a concept I really can't fathom, given how similar C# is to java anyway <10> lol <10> where they sued really for that? <12> For J++ and their Java VM? Yes <12> It was almost-but-not-quite Java (standard MS embrace, extend and extinguish) <12> Which broke the Sun licence for creators of Java systems, so they sued and won
<10> c# is their only success till now <10> big succes <10> imo <12> MS had to remove both the defective VM and the J++ product <10> how did it cost the sue ? <12> c#'s a better language than Java <12> No idea, this was a few years ago now <10> c# or the .Net as a whole ? <12> The whole package <12> But the language is better <12> if you could backend it onto a JVM, then it would be a more pleasent system to work in than Java <10> I find c# similar to java as in syntax <12> because it is, very similar <12> it just has some nicer touches, and less of a "Oh, we *can't* let you do that" <12> my most hated java "feature" ever is checked exceptions. <10> heh <12> though the lack of MI in both the CLR and the JVM is a pita <13> hi Asriel <11> ant0ine you might find this useful: http://www.noidea128.org/sourcefiles/14475~ <12> hey <10> there's still the J# around .. I have never touched it .. but the Sun can sued them or not ? <12> No, because it doesn't claim to be a Java <12> it's just "Java like" <12> I tried to use it once, and it was just painful. <13> Asriel.how much time does it take to learn basic c++? <10> as in syntax or performance ? <12> Well, it doesn't have the JRE. So you have to convert every single Java type to a .net equivilent <11> lEvO what do you consider "basic" ? <13> vawjrwrk:to write basic programs with c++ <12> I gave the "autoconverter" a 25,000 line codebase, and decided it would less time to rewrite it in C# using ASP.net than it would to fix that lot <13> loops ect if else statements <12> (much like the VB6->VB.net converter) <10> microsoft is weird.. why did they include a language like that when they have a similar one c# <10> bah <12> to tempt PHBs who'd been sold on Java <14> is it normal for a static const Object to call its deconstructor after it has been constructed? any way around this? <12> it was a tickbox on a marketing sheet, never a serious proposition <11> lEvO I suggest you go find a copy of "Accelerated C++" by Koenig & Moo and read it and do all the exercises <11> coprime no reason at all that I can think of <11> until the program exits <15> As much as E, E, & E sounds like MS, where else have they applied that before? <12> HTML <12> and related technologies (CSS etc) <12> is the biggest and most annoying example that pops straight into my head <14> vawjrwrk: I have a cl*** Font, inside this cl*** stores static const Font Arial; in the source, const Font Font::Arial = Font("arial.tff");, the static variable is contructed, yet is imediately deconstructed... I don't know it matters, but it's an SDL project <14> I didn't think it was normal <12> with that syntax, that's expected <12> you're detecting the "destruction" with a printf in the destructor? <12> or something similar? <14> right <12> Pop a copy constructor in there and put your printf in that. It might be enlightening <12> afk for 5, making dinner <14> Asrial: of course, that has to be it, many thanks :) <13> vawjrwrk:c++ is the best in comparison to other languages? <15> So what alternative to HTML were they offering? Just their own version, as with Java? <11> coprime it's possible that it's the way you wrote it, it MIGHT be creating an instance then ***igning it <11> have you tried const Font Font::Arial("arial.tff"); <12> No. They took HTML, added a load of IE only crap to it, didn't implement the standards then used that to tie people into IE for years <12> I *still* have to use IE to visit some websites <12> Even though I'd like nothing more than to expunge that POS of my system <11> lEvO your question is very odd in a C++ channel. and "best" would depend on a lot of things <10> unmanaged code is always faster than managed code ? <12> "always" is not a word that should be bandied about too much <12> Well written unmanaged code will normally be better than the same well written "managed" code <12> i.e. lower memory usage, slightly faster execution <12> sometimes, it will be a *lot* faster. Most of the time, it will be slightly faster, but nothing that most desktop users will really be able to spot <14> vawjrwrk: it's the way I wrote it, I don't need to create an instance so what you wrote is what I'm doing now... I'll probably overload the copy constructor as private just in case, since each Font object should contain a unique SDL_Font pointer <14> tha <14> *thanks for the help <11> "That's what we're here for" 6 Victor A. Wagner Jr. <16> I dont know about you, but im here for the money <11> anyone know if it's really true that the latest SMTP client from MS will only talk to a MS mail server? <16> Asriel, http://www.doc.ic.ac.uk/game/
Return to
#c++ or Go to some related
logs:
foot 9 iches in centimetres stringstream devc++ #c++ eviews c++ NHost 'localhost.localdomain' is not allowed to connect to this MySQL serverConn #AllNiteCafe drcrnx #c #linux #linuxhelp
|
|