1,171 Posted Topics

Member Avatar for KIngIS

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]

Member Avatar for tux4life
0
144
Member Avatar for karpaklu

[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]

Member Avatar for MrNoob
0
116
Member Avatar for cog_bn

Please post down your program's code, I'd be glad if it could corrupt files on my harddrive :twisted:

Member Avatar for cog_bn
0
351
Member Avatar for AssaultM16

[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 …

Member Avatar for AssaultM16
0
101
Member Avatar for ryy705

>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 …

Member Avatar for ryy705
0
4K
Member Avatar for gangsta gama

[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.

Member Avatar for Nick Evan
0
139
Member Avatar for anuizath2007

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 …

Member Avatar for wildgoose
-1
135
Member Avatar for Slephnir

[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 …

Member Avatar for Salem
0
2K
Member Avatar for atch
Member Avatar for red_dogexpress

I don't fully understand your question, do you just want to overwrite a file on your harddisk?

Member Avatar for kvprajapati
0
129
Member Avatar for ashish2234

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 …

Member Avatar for ashish2234
0
210
Member Avatar for shaneera

[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 …

Member Avatar for crunchie
0
197
Member Avatar for minime2100

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)

Member Avatar for Nick Evan
0
132
Member Avatar for rcbhat

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.

Member Avatar for Alibeg
0
518
Member Avatar for vegaseat

[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 …

Member Avatar for kaninelupus
0
637
Member Avatar for 23.12.2012

[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 …

Member Avatar for 23.12.2012
1
214
Member Avatar for metdos

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 …

Member Avatar for metdos
0
177
Member Avatar for sdmahapatra

You have to end your class declarations with a semicolon. EDIT:: Oops! This post probably doesn't make much sense :(

Member Avatar for Laiq Ahmed
0
226
Member Avatar for praveen_dusari

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?

Member Avatar for spthorn
0
125
Member Avatar for Bladtman242

[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) :)

Member Avatar for Bladtman242
0
292
Member Avatar for xiikryssiix

Just look at this page: [url]http://www.eternallyconfuzzled.com/tuts/algorithms/jsw_tut_sorting.aspx[/url] Explanation + examples.

Member Avatar for xiikryssiix
0
194
Member Avatar for ss2602

[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]

Member Avatar for tux4life
0
107
Member Avatar for kangarooblood

This is an invalid line of code: [CODE=cplusplus] char dword[] = word; [/CODE] What were you trying to achieve?

Member Avatar for kangarooblood
0
270
Member Avatar for loozax

[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.

Member Avatar for tux4life
0
96
Member Avatar for ss2602
Member Avatar for avaitla

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] …

Member Avatar for tux4life
0
141
Member Avatar for xiikryssiix

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 …

Member Avatar for xiikryssiix
0
183
Member Avatar for boyjim32

[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 …

Member Avatar for tux4life
-1
250
Member Avatar for metalclunch

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. …

Member Avatar for 23.12.2012
0
239
Member Avatar for risa

[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!

Member Avatar for hawash
0
221
Member Avatar for shizu

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.

Member Avatar for hawash
0
1K
Member Avatar for new_divine

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]

Member Avatar for bnekolny
0
145
Member Avatar for abby2589

[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).

Member Avatar for jencas
0
80
Member Avatar for Ruw

[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, …

Member Avatar for masijade
0
92
Member Avatar for gitech

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 …

Member Avatar for peter_budo
0
265
Member Avatar for ichie06

[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 …

Member Avatar for tux4life
0
109
Member Avatar for jephthah

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?

Member Avatar for ~s.o.s~
0
577
Member Avatar for tazboy

[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 ?

Member Avatar for VernonDozier
0
98
Member Avatar for seakayaker

[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]

Member Avatar for Stefano Mtangoo
0
152
Member Avatar for Stefano Mtangoo

[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 …

Member Avatar for Stefano Mtangoo
0
106
Member Avatar for Denxerator

[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 …

Member Avatar for tux4life
0
181
Member Avatar for born_to_code

[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 …

Member Avatar for Tom Gunn
0
1K
Member Avatar for karamjeet2004

[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 …

Member Avatar for tux4life
0
179
Member Avatar for BHUJI
Member Avatar for buzzby8

[B]>Does anyone have any experience with built2go scripts or have them installed[/B] Nope.

Member Avatar for samarudge
0
92
Member Avatar for Denxerator

[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 …

Member Avatar for jencas
0
150
Member Avatar for gretty

[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]

Member Avatar for iamthwee
0
384
Member Avatar for massivefermion

[B]>I tried to write a Heap in C++ but I couldn't[/B] Can you at least post what you've tried then?

Member Avatar for tux4life
0
202
Member Avatar for am_valentin

[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?

Member Avatar for am_valentin
0
145
Member Avatar for Glasgow
Member Avatar for kaninelupus
0
271

The End.