1,171 Posted Topics
Re: Don't use EOF as an exit indicator for your loop, instead read a file like this: [CODE=cplusplus] while ( getline(infile, line2) ) { // Do stuff with the read data } [/CODE] | |
Re: [QUOTE=karpaklu;925889]hai dani. can u pls help me how to create piechart in c. thanks in advance[/QUOTE] Try it yourself first, and read this: [url]http://www.daniweb.com/forums/announcement8-2.html[/url] | |
Re: Please post down your program's code, I'd be glad if it could corrupt files on my harddrive :twisted: | |
Re: [B]>And, I don't understand the reason why you initialise multipy as a string with 2 characters?[/B] Each character string needs a null-terminator. But I too see no point in using a string here. It would be better to just use a character variable instead, but I would just directly compare … | |
Re: >Has someone encountered this problem before? >Would someone make a suggestion regarding how solve this problem? Uhm...You could maybe let your program throw an error when it wasn't able to get data from the three columns, if the data is incomplete, your program cannot work with it so I guess … | |
Re: [QUOTE=VernonDozier;928636]Yep, I saw you were viewing the page, so I posted, THEN edited my post. [/QUOTE] How could you see that then? [I]niek_e[/I] uses invisible mode. | |
Re: Is using code tags really that difficult for you? Haven't you found the button yet, after 49 posts? Information about code tags is found all over the website: [QUOTE]1) in [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies]the Rules[/url] you were asked to read when you registered 2) in the text at the top of this forum … | |
Re: [B]>This code compiles without errors or warnings but it will not produce an 'exe' only a '.o' file, firstly what is a '.o' file?[/B] A [B].o[/B] file is an object file, when the compiler compiles the source code, it will generate such a file, most of the time, after the … | |
Re: [B]>I wonder if it's pos.[/B] Well, just try it then. | |
Re: I don't fully understand your question, do you just want to overwrite a file on your harddisk? | |
Re: Some important things you should pay attention to: [LIST] [*]Please wrap your code between code tags: [noparse] [code] // your code here [/code] [/noparse] [*]Don't use [ICODE]void main()[/ICODE] it's evil, use [ICODE]int main()[/ICODE] instead. [*]Use proper English, I didn't understand your problem, in order to get help, others have to … | |
Re: [U]To the OP:[/U] Can't you read? You were asked to use code tags, but what do you do? You just continue to not use them, don't expect much help then. Information about code tags is found all over the website: [QUOTE]1) in [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies]the Rules[/url] you were asked to read when … | |
Re: For an interpreter you could maybe take a look at this: [url]http://www.ddj.com/184408184[/url] (in fact it's in C, even rusted (old) C, but you could maybe adapt some things from it) | |
Re: A little addition on: [QUOTE]Array names become pointers[/QUOTE] Yes, an array name is a constant pointer to the first element of that array. | |
Re: [B]>google has got their fingers in too many pies. i'm considering getting rid of my gmail account just on general principles.[/B] Well, as long as it's free, I'm happy and I really don't care about it, let them make their OS, we'll see how it turns out. BTW, Finally some … | |
Re: [B]>Also, shouldn't you have used cstdio instead of stdio.h ? I read somewhere that the .h at the end becomes a c at the beginning of the name in C++.[/B] Yes, what you mean is that you've read about new-style headers. In fact you may even just leave that line … | |
Re: Put this line on top of your program: [ICODE]#include <miracles.h>[/ICODE] There's no point in what you want, however it's possible: just copy all your header files into your compiler's header files directory and it should be possible then. But remember that there's really no point in doing this, it's even … | |
Re: You have to end your class declarations with a semicolon. EDIT:: Oops! This post probably doesn't make much sense :( | |
Re: Did you dynamically write the [I]<marquee>[/I]-tags to the webpage by using PHP? How is the output? The same as the expected output, but just without a marquee? ![]() | |
Re: [QUOTE=athlon32;894876]Settting up gtkmm in Windows: [url]http://live.gnome.org/gtkmm/MSWindows[/url][/QUOTE] Maybe it would be smart to look at the date of the latest post in the thread before you waste your time answering an old thread like this one :( But I agree with the answer (Finally someone which uses Google) :) | |
Re: Just look at this page: [url]http://www.eternallyconfuzzled.com/tuts/algorithms/jsw_tut_sorting.aspx[/url] Explanation + examples. | |
Re: [QUOTE=Ancient Dragon;925177]Why do you think the code you posted does not work?[/QUOTE] Because he is using an old compiler, as you can read in his other thread about the same subject: [url]http://www.daniweb.com/forums/thread205600.html[/url] | |
Re: This is an invalid line of code: [CODE=cplusplus] char dword[] = word; [/CODE] What were you trying to achieve? | |
Re: [U]To the OP:[/U] It would be better that you chose a better thread title in future, a title like "need help.." is useless, because pretty much everyone which opens a thread here needs help. Try to be more descriptive the next time. | |
![]() | |
Re: There's no point in having a bitset if you're doing the whole conversion manually, if you've a bitset, and you want to convert the value in the bitset to an unsigned long, then you could just use the [ICODE]to_ulong()[/ICODE] method. You can find more info about this method here: [url]http://www.cplusplus.com/reference/stl/bitset/to_ulong/[/url] … | |
Re: Just throw it in a loop, create a temporary variable and initialize it to 1, and as long as the value that variable holds is lower as 1 million (or whatever other value you want to take as indicator of being a millionaire, be sure to use the number of … | |
Re: [B]>well i compiled it before and after you told me and it worked perfectly[/B] Sorry buddy your rubbish doesn't compile, what compiler are you using? BTW, why so much global variables, ever heard of local variables? Your code compiles with me, after removing [ICODE]#include "stdafx.h"[/ICODE] and moving this block inside … | |
Re: ALI INAM, you should urgently stop posting such rubbish solutions, BTW: why making every variable global? Ever heard of local variables? Do you really think the OP will learn from such solutions? By just giving code to the OP, you won't help him, remember that. It's against Daniweb's homework policy. … | |
Re: [QUOTE=jencas;924666][code] int main() { HTMLPage& page = google("CTreeCtrl background image"); page.select2nd(topic); } [/code][/QUOTE] Or, in case the OP doesn't understand: Google is your friend! Use it! | |
Re: In decimal, the hex value you're assigning is: [ICODE][B]2969501696[/B][/ICODE], and unless you're using a very powerful computer this won't fit in an [B]unsigned short[/B]. First try it with a simple value, for example [B]0xF[/B], this should convert correctly. | |
Re: Are you sure that you've compiled the wxWidgets libraries ? Try some of the things listed in this thread: [url]http://forums.codeblocks.org/index.php?topic=6645.0[/url] | |
Re: [B]>hi! can someone give me some idea what kind of game is easy to do in c++?[/B] An easy game would be: Tic-Tac-Toe (And, yet to mention: you can find hundreds, no, thousands of examples on the internet). ![]() | |
Re: [QUOTE=Ruw;924374]how to draw use case diagram. i will send you the crieteria.[/QUOTE] I think you've misunderstand him: [B]no one will do it for you[/B]. What you could do is post the criteria down in this thread, [B][U]together with your own try[/U][/B], then we can check whether you did it correctly, … | |
Re: Congratulations! You've just decreased your chances of being helped by the people here. You can find your double thread [URL="http://www.daniweb.com/forums/thread205529.html"]here[/URL] (in case you don't know what I'm talking about). If you want a quicker (more useful) reply than this one, then I suggest you to put your time into figuring … | |
Re: [QUOTE=ichie06;923662]Make A C Program That Performs The Following Algorithm: (a)Use Scan F To Input The Following Data: -assign Value 26 To Age. -assign Value 80 To Weight In Kg. -assign The Value 183.219 To Height Cm. (b)Calculate The Weight-to-height Ratio. (c)Display A Heading For The Results (d)Display The Results In … | |
Re: Well, I don't know whether I'm allowed to ask this, but why don't you mods, just do an IP-check on both accounts? | |
Re: [B]>This code works well for lists of size 8 or 16, but with sizes larger than 20 it outputs 0, 2, 0, 4, 0, 6, 0, 8, 9, 10, 11, ...[/B] What was your expected output here ? | |
Re: [QUOTE=evstevemd;922296]EDIT: Search somewhere in the forum I have posted the Link to their free Ebook.[/QUOTE] What a coincidence! I found your post about it :P [url]http://www.daniweb.com/forums/post921585-9.html[/url] | |
Re: [QUOTE=evstevemd;922920]Longtime Pythoneer and now a Small C++er so the issue is, it is fit for me, right?? :D[/QUOTE] Currently I'm jumping into Java (I have a C++ background), and I took [I]Head First Java[/I] to get my first Java experience, I haven't finished it yet, but up until now it's … | |
Re: [QUOTE=waldchr;923901]I know that Dev-C++ is dead. I simply suggested it because it comes ready to go and isn't as complicated to set up as code::blocks (which i use myself). [/QUOTE] I wouldn't recommend Dev-C++ anymore since it's dead. BTW, Code::Blocks isn't complicated, it just offers lots of features, and is … | |
Re: [B]>i have to make a program to find the intersection of two strings, i have made program but its not working. any help will be appreciated.[/B] Could you please give me an example on what you mean with: to find the intersection of two strings? I don't get what you … | |
Re: [QUOTE=oliver_lundag;920703]I am the one who made that code. just want to share it. why are you complaining... I just want to share... instead of saying that thing to me why don't you try to help those people who needs help. I think you are selfish.[/QUOTE] Wrong! You are just spoon-feeding … | |
Re: Actually this thread is already over three years old. | |
Re: [B]>Does anyone have any experience with built2go scripts or have them installed[/B] Nope. | |
Re: [B]>And my dream is to take over the operating system industry and make every people like my operating system![/B] ROFLMAO! The best I've heard in a while :P The typical beginner's thought is back again!! Well, see you back within a couple of centuries then? [B]>I'm 12 XD I want … ![]() | |
Re: [QUOTE=iamthwee;923510] [edit] You also have to be careful with rand % N, because it does either one less/one more than you expect.[/QUOTE] But the link misses :P [url]http://www.eternallyconfuzzled.com/arts/jsw_art_rand.aspx[/url] ![]() | |
Re: [B]>I tried to write a Heap in C++ but I couldn't[/B] Can you at least post what you've tried then? | |
Re: [B]>I am interested in a solution where you don-t have to store the password.[/B] Or you use an empty password, or you let the user remember the password. The only thing I would not get is why the h*ll would you want to give guests access to your domain? | |
Re: Use [URL="http://ccollomb.free.fr/unlocker/"]Unlocker[/URL] ! |
The End.