2,839 Posted Topics
Re: [QUOTE=ShawnCplus;1099810] Anyway, could a mod for the PHP forum please chime in regarding the [B]original[/B] topic of this thread.[/QUOTE] Only Dani (and Happygeek?) are able to add announcements. Stickies are a different story. | |
Re: [QUOTE=jbennet;1018156]i guess you get the special treatment[/QUOTE] William is a *special* kind of guy ;) | |
Re: Congratulations, you have successfully copied and pasted your assignment here. Now what would be the next step according to you? [URL="http://www.daniweb.com/forums/announcement8-2.html"]Here's a hint[/URL] | |
Re: [QUOTE=mahima.b;1110862]i want bmp files through c only!!!![/QUOTE] i want you to read [URL="http://www.daniweb.com/forums/announcement8-2.html"]this[/URL]!!!!! | |
Re: Perhaps you could explain which part you don't understand? | |
Re: [QUOTE=flyingguitar;1106996] @Dave Sinkula getline only works for strings.[/QUOTE] Are you [URL="http://www.cplusplus.com/reference/iostream/istream/getline/"]sure about that[/URL]? | |
Re: Why on earth would I give you money to BUY A PLANT? Don't you think that there are some people who need it for better reasons then that? Haiti for example? You should be ashamed of yourself for posting this rubbish. Buy a guitar and go sit with the rest … | |
Re: [QUOTE=tizzo233;1105838] no match for 'operator!=' in 'x != 0' what does that mean?[/QUOTE] Exactly what is says. It doesn't know how to compare your class 'x' to 0. I think you meant: [icode]ret != 0;[/icode] | |
Re: [URL="http://www.google.com/search?source=ig&hl=en&rlz=1G1GGLQ_NLNL270&=&q=enumeration+c&btnG=Google+Search"]Click[/URL]. Wow, that was hard to find.. | |
Re: Can't tell you without seeing the code. | |
Re: I also think that newbies use code-tags on the first post more often now. But I also think that the [noparse][icode][/icode][/noparse] tags can be added to the quick-reply. As Dave mentioned, the mysterious green block that represents the tags is meaningless to newbies, so it can safely be added :) … | |
Re: Sell them for double the price and make an evil laugh when it works? | |
Re: Here's a start: [code] #include <iostream> int main () { std::cout << "welcome to my program"; return 0; }[/code] | |
Re: [URL="http://www.daniweb.com/forums/thread158738.html"]repost[/URL]! :) | |
Re: [QUOTE=ashishchoure;1102843] I am not going through any complex tutorial available on net. [.....] Though it is not completed fully. I have some doubt 1...... 2. ....[/QUOTE] If you had read any "complex tutorial" you'd probably know these things. Now it sounds like you're saying: "Reading stuff takes to long, just … | |
Re: You're mixing formatted and unformatted input from the file, which isn't a very good idea. What does your file look like? Post 1 or 2 lines from it . | |
Re: [QUOTE=Ancient Dragon;1096024]And the Earth is still flat :) [/QUOTE] No it's not! It's round like a pancake :) | |
Re: Your best option would be to use classes with private variables, but if you insist on using functions, how about this: [code] #include<iostream> bool isPrevious(int pos) { static int prev_pos = 0; bool is_same = (prev_pos == pos); prev_pos = pos; return is_same; } int main() { std::cout << "1 … | |
Re: I used [URL="http://www.google.com/#hl=en&source=hp&q=Bellman-Ford+algorithm+%2Bjava&aq=f&aqi=&oq=&fp=df82d86320cf60e9"]google [/URL]and found [URL="http://forums.sun.com/thread.jspa?threadID=5418939"]this [/URL]on the first hit. | |
Re: He posted as Midnite001 and Midnite002 in this thread, so pick one :) | |
Re: The whole code looks a bit shaky to be honest... If you're going to use rand() you need to seed the random generator first with srand(). Here's [URL="http://eternallyconfuzzled.com/arts/jsw_art_rand.aspx"]how to do it[/URL]. Also: If you use malloc to allocate memory, be sure to free() it before your program exits. If not: … | |
Re: [QUOTE=Ancient Dragon;1005673] >>i think the most grievous offender is the row of "share this" "send that" "bookmark" "yadda yadda" buttons. Agree. I don't know what those buttons do and don't want to press one so that I can find out. [/QUOTE] I disagree with you two. The buttons are quite … ![]() | |
Re: you need to output the values of "x","y", "count1" and "size" inside your ::mf() function. That way you can see for yourself why none of the if-statements are true. The keyword here is "debugging" [edit] Oh, and please do not use global variables.. You can declare them as private members … | |
Re: Never use goto. It's bad coding practice. Instead, you can put the entire switch in a while(something) loop. When you want out, just make "something" true. For example: [code] bool looping = true; while (looping) { switch (foo) { case 1: std::cout << "1!, stop looping!"; looping = false; break; … | |
Re: [QUOTE=s_mostafa_h;1101289]Thanks for reply ![/QUOTE] It took you two years from posting the original post, to this post. What on earth have been doing in that time? I mean, this thread is only ~10 posts long :) | |
Re: [icode]court[/icode] is not the same as [icode]cout[/icode]. The difference between them is that one is a C++ command and the other one isn't :) Also: you can't use all kinds of brackets mixed with another ( () [] {} ) . Each bracket has its own purpose, learn them. | |
| |
Re: "continued" [URL="http://www.daniweb.com/forums/post1099929.html#post1099929"]here[/URL]. | |
Re: [B]>> Whats up with the edit function ? I can't edit my own code ? >> Anyways the private bool _checkIfIsDigit()const should be :[/B] done | |
Re: Sounds like a bracket mismatch. Post code. | |
Re: Try deleting all the whitespace around that line. This character isn't visible, but might still be there. [B]>>I'm on mac however so that migth explain the problem[/B] True. '\312' is hex 0xCA -- the "non-breaking space" in MacRoman encoding. So try removing whitespaces and re-add them. Maybe mac has somesort … | |
Re: continued [URL="http://www.daniweb.com/forums/thread252116.html"]here[/URL]. | |
Re: Please post what you've done so far, so people can have a look at what's wrong. | |
Re: Your style of posting isn't helping you at all. First of all, your question: [quote] I need an API function that disconnects the computer from internet! [/quote] Imagine you work at a hardwarestore and a customer runs in and shouts: [quote] I need a thing to put nails in wood! … | |
User [URL="http://www.daniweb.com/forums/member633371.html"]FBody[/URL] send me this PM: [QUOTE=Fbody]I couldn't find a site support style link so, because you're a mod that I've interacted with before, I'm sending this to you. Would you please forward to the appropriate person? I posted in the thread "[URL="http://www.daniweb.com/forums/thread250820.html"]sleep() error, help![/URL]" yesterday and subscribed to the … | |
Re: Two things I notice without testing it. 1. change these two lines: [code] while (! itemFile.eof() ) { getline (itemFile,fileData); [/code] to this: [code] while (getline (itemFile,fileData)) { [/code] Getline will automatically return 0 at the end of the find, so no need for the horrible eof() function. same goes … | |
Re: [QUOTE=jonsca;1096531] And PLEASE use code tags [code] //your code here [ /code] (no space before /)[/QUOTE] If you want to show newbies how to use code-tags, you can use [noparse][noparse][/noparse] tags. If I type [noparse][noparse][code] // code here [/code][/noparse][/noparse] it'll show as: [noparse][code] // code here [/code][/noparse] :) | |
Re: There are quite a few things wrong with your code. The main problem is that you mix classes and class-instances. But to be honest, I think there's a bit of a design issue with your code. You're making it unnecessarily difficult on yourself. Here's a revamped version of your code, … | |
Re: You do realize that wxWidgets is not a programming language? I've used wxWidgets in the past and found it to be an excellent GUI for C++ (once you get it installed that is). I've also programmed a few things in VB(.NET) and I think it's easier to program a (simple) … | |
Re: Please confirm that you're actually interested in learning C rather then just spamming your signaturelink by replying here. ![]() | |
Re: So what [URL="http://www.daniweb.com/forums/announcement8-2.html"]have you done [/URL]so far? | |
Re: How about [URL="http://eternallyconfuzzled.com/tuts/datastructures/jsw_tut_linklist.aspx"]this [/URL]or even [URL="http://www.google.com/#hl=en&source=hp&q=linked+list+in+c&aq=0&aqi=g10&oq=linked+list&fp=e8d6ef47431c6a4a"]this[/URL] | |
Re: Too many "give me title lolz" replies. Closed. For future visitors of this thread: use the [URL="http://www.daniweb.com/forums/search.php"]searchfunction [/URL]instead of reviving a dead thread. | |
Re: [QUOTE=crunchie;948177]Bingo :)[/QUOTE] Perhaps this is just a way of spamming [I][B]your [/B][/I]signature? ;) | |
Re: If you want to use paths in string, you need to [URL="http://www.gillius.org/ctut/app_a.htm"]escape the backslash [/URL]by adding an extra backslash, or use normal slashes instead: [code] remove( "C:\\blah\\foo.bar" ); [/code] or: [CODE]remove( "/tmp/foo.bar" );[/CODE] | |
Re: "Well Jim, now that Tiger Woods has found other hobbies, it's time for the new generation to have a swing at the trophy" "Yes Bob, a swing indeed" |
The End.