2,839 Posted Topics

Member Avatar for geetajlo
Member Avatar for turrence27

It looks like you could use some brushing up on [URL="http://www.cppreference.com/wiki/data_types"]datatypes [/URL]and [URL="http://www.cplusplus.com/doc/tutorial/arrays/"]arrays[/URL]. What your first step should be is : convert an integer to a std::string (or char array) and go from there.

Member Avatar for turrence27
0
2K
Member Avatar for e3rtwin

Do not post homework problems expecting a quick answer without showing [URL="http://www.daniweb.com/forums/announcement8-2.html"]any effort yourself.[/URL]

Member Avatar for Salem
-2
35
Member Avatar for logicmonster

At first glance it looks like you've misplaced a right-bracket. You have put it on line 68, but it should be on line 55 (in front of [icode]while(!turnOver);[/icode]) to close your do {} while() loop.

Member Avatar for WaltP
0
177
Member Avatar for techie929
Member Avatar for Narue
Re: IRC

tada: [URL="http://embed.mibbit.com/?userListWidth=100&server=irc.daniweb.com%3A6667&chatOutputNickWidth=70&channel=%23daniweb"]click[/URL]

Member Avatar for Nick Evan
0
281
Member Avatar for Pugee
Member Avatar for WaltP
0
107
Member Avatar for Chichiro

[QUOTE=Chichiro;1140427] >Well it isn't true for all those schools that still use fossil Turbo C as the "reference" implementation for C. I'm sory but i don't quite understand this sentence ( feeling sorry with my poor English lvl :( )[/QUOTE] Salem meant that in India (almost) all the schools still …

Member Avatar for Chichiro
0
387
Member Avatar for busybee2498

Split from [URL="http://www.daniweb.com/forums/post478249.html#post478249"]here[/URL]

Member Avatar for Nick Evan
0
40
Member Avatar for IntegrySoft
Member Avatar for nezachem
0
101
Member Avatar for ndali
Member Avatar for jonsca
-1
56
Member Avatar for blakenbama

So you say you know python. Why not make it in Python first and then translate it to C++. This assignment only requires the most basic function of C++ and the structure of the program in C++ wouldn't differ very much from the structure in C++.

Member Avatar for WaltP
0
1K
Member Avatar for webdragon89

[QUOTE=tetron;1138356]I guess this is another thread that will be closed down and pointed to: [url]http://www.daniweb.com/forums/post1138190.html[/url] Which is why this looks familiar :)[/QUOTE] You read my mind.

Member Avatar for Nick Evan
0
275
Member Avatar for webdragon89

Thread continued [URL="http://www.daniweb.com/forums/post1138190.html"]here[/URL]. Please stop making new threads for the same problem.

Member Avatar for Nick Evan
0
116
Member Avatar for porchia
Member Avatar for JaksLax

[QUOTE=prf_q;1137321]this is not your code. it is from carrano's book.[/QUOTE] So you made an account, just to make this reply on a 3 year old thread? Impressive :icon_wink: Where exactly does the OP claim that this code is his own?

Member Avatar for Nick Evan
0
87
Member Avatar for i_luv_c++

So is it: 1. 160 dollar. (one-hundred-sixty) 2. 160.00 dollar (one-hundred-sixty dollar and 00 cents) 3. 160.000 (one-hundred-sixty-thousand) ?

Member Avatar for i_luv_c++
0
163
Member Avatar for jonsca

I use firefox, so I keep my usercp open in 1 tab, then ctrl-click all the threads I want to view to open them in new tabs. So I don't really have a use for this ;)

Member Avatar for jonsca
0
311
Member Avatar for suncica2222

[QUOTE=suncica2222;1135303]like I said I want to make function that does it.[/quote] [URL="http://www.google.com/#hl=en&source=hp&q=read+write+registry+c%2B%2B&aq=0m&aqi=g-m1&oq=write+registry+c%2B%2B&fp=79a46ede2c2a175d"]google is your friend[/URL] [QUOTE=suncica2222;1135303] How I'm going to test this while compiling and debugging,it's going to make registry entry each time I run it and mess my registry completely?[/QUOTE] That's indeed a possibility. Perhaps you can write an …

Member Avatar for suncica2222
0
127
Member Avatar for piuygiu

What have you [URL="http://www.daniweb.com/forums/announcement8-2.html"]tried so far[/URL]? do you know how to convert kilometers to miles on paper?

Member Avatar for Nick Evan
0
33
Member Avatar for darkagn

[QUOTE=Narue;1126899]Do you keep track of who up or down votes, or is it a simple counter?[/QUOTE] I can see when I up- or downvoted a post by the color of the arrow. It's only green when [I]I[/I] upvoted it. So I would think it's stored instead of just a counter

Member Avatar for Ancient Dragon
0
469
Member Avatar for abhiram2020

Threads like these give me an headache. Does anyone ever read the [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules [/URL]before posting?

Member Avatar for Nick Evan
-2
129
Member Avatar for Mueni

And [B]do not[/B] send people PM's requesting help, it's [B]very[/B] annoying :icon_frown: Here's [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]the rulebook[/URL]. Read it.

Member Avatar for javaAddict
-2
211
Member Avatar for iamcreasy

[QUOTE=iamcreasy;1130778] it is showing... error: no match for 'operator!=' in 'str != -0x000000001'| [/quote] That's because you're comparing a std::string with EOF. I suggest you change your loop to get rid of the EOF macro all together: [code] while (getline(cin, str)) { s_v.push_back(str); } [/code] Works better, look cleaner :) …

Member Avatar for WaltP
0
131
Member Avatar for lashatt2

[QUOTE=lashatt2;1127732]MITRMKAR here is the project: [I]<<URL to VIRUS-INFECTED ZIP removed...>>[/I][/QUOTE] Lashatt2: Your computer is infected with a virus. The archive you uploaded [URL="http://virscan.org/report/b41f64dc65265418f5c8d28ba619f3e8.html"]contained it.[/URL] You can go to our [URL="http://www.daniweb.com/forums/forum64.html"]viruses & nasties[/URL] to get it removed. Be sure to add the link I gave you to your question.

Member Avatar for mitrmkar
0
99
Member Avatar for ashokkumarrsp

This thread has been bumped to many times over the last few year with "gimme code!" replies. For future visitors: [URL="http://catb.org/~esr/faqs/smart-questions.html"]Here's[/URL] how to ask a question on a forum. [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]Here's[/URL] the rulebook, read and follow it. [URL="http://www.daniweb.com/forums/announcement8-2.html"]Here's[/URL] why we don't help people who show no effort. Closed.

Member Avatar for Nick Evan
0
2K
Member Avatar for AmigaCarolena
Member Avatar for EngSara
-2
141
Member Avatar for Narue

I'm temporarily making this thread a sticky. We'll see what comes out of it in the next month or so :)

Member Avatar for dusktreader
7
2K
Member Avatar for CppBuilder2006

This indeed sounds very much like you're building either a crack or a virus, please prove me wrong or this thread is gone.

Member Avatar for WaltP
-4
149
Member Avatar for gertails

[QUOTE=gertails;1130956]thank you for helping me on my assignment ^_^[/QUOTE] Congratulations! You've cheated your way through another assignment! Keep up the good work! :icon_rolleyes:

Member Avatar for Nick Evan
-2
106
Member Avatar for suta6

Thread split, posts merged, bumps removed and tags added. What a great first impression. :icon_frown: Click [URL="http://www.daniweb.com/forums/announcement8-2.html"]this [/URL]and [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]this[/URL]

Member Avatar for WaltP
-2
90
Member Avatar for ankara84

This thread is attracting [I]way[/I] too many "gimme codes" posters. For future visitors to this thread: [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]Read the rules[/URL]: [QUOTE=The Rules]Keep It Organized Do not post homework problems expecting a quick answer without showing any effort yourself. This especially pertains to the software development forums.[/QUOTE] closed [edit] Damn, Peter moved …

Member Avatar for Nick Evan
0
2K
Member Avatar for cwarn23

You could use the [URL="http://www.daniweb.com/forums/printthread259574.html"]printable version?[/URL]

Member Avatar for jbennet
0
345
Member Avatar for juman2010

Start [URL="http://catb.org/~esr/faqs/smart-questions.html"]here[/URL]

Member Avatar for NathanOliver
0
332
Member Avatar for Narue

It's been almost two years since this thread was started and because we have a lot of new "regulars", I thought it might be a good idea to bump this thread. The same rules still apply: [QUOTE=Narue;568027] 1) You're not allowed to introduce yourself. 2) You're not allowed to bash …

Member Avatar for jonsca
2
514
Member Avatar for swolll

You say that listongs is a vector of song* so the proper way to access its members is with a -> so something like: [icode]cout << allPlaylists.at(0).listSongs.at(0)->getSongName();[/icode] might work

Member Avatar for swolll
0
258
Member Avatar for BarakH

It's a matter of personal opinion. I would have done it the way your teacher described (and lose the temp var), because it would be easier to read IMO: [code] int NumberOfDigits(int in) { int DigitsNum = 0; while (in > 0) // Run While There Are Still Digits In …

Member Avatar for tetron
1
113
Member Avatar for AdamE34

Use nested loops. One for rows and one for columns: [code] for (int rows = 0; rows < .......; ++rows) { for (int cols = 0; cols < .......; ++cols ) { out_file << some_value << ' '; } out_file << '\n'; } [/code]

Member Avatar for AdamE34
0
141
Member Avatar for Stefano Mtangoo

[QUOTE=evstevemd;1128645] my problem is with these winAPI macros like LPCSTR and UINT I guess (just at looking) UINT might be alias for unsigned int [/quote] Correct! [QUOTE=evstevemd;1128645] but have no even clue of what LPCSTR is (string??) [/quote] It a [B]L[/B]ong [B]P[/B]ointer to [B]C[/B]onstant [B]STR[/B]ing which is essentially a [ICODE]const …

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for fidan

It says: [quote]Cannot load plugin ../libimo/libimo.so[/quote]. So is the file in that directory?

Member Avatar for fidan
0
628
Member Avatar for mrnutty

I just showed up at my interview with my portfolio and letters of recommendation and show them. Then answered the strengths/weaknesses question and got the job. In my country, you first get a temporary contract when you start a new job. In this time (3 months usually) the company is …

Member Avatar for vaultdweller123
0
1K
Member Avatar for eternaloptimist

[QUOTE=eternaloptimist;1128137]i have a few questions.: 1)if i wanted to write a line of code needed to declare a 1-dimensional array named names that can hold 8 string values would this be correct?: char names[8];[/quote] No. That would create an array for 8 chars. [QUOTE=eternaloptimist;1128137] 2)how would i write the code …

Member Avatar for eternaloptimist
0
107
Member Avatar for csfriends

[QUOTE=csfriends;1127639] can v disable the device?[/QUOTE] V can do a lot of things, so probably yes?

Member Avatar for Nick Evan
0
366
Member Avatar for liljazz2007

[QUOTE=Narue;1128148] Your question is no longer about C++. Rather, it's about SRC assembly,[/QUOTE] I agree. Moved to assembly.

Member Avatar for Nick Evan
0
243
Member Avatar for hemant_is_here

[QUOTE=nateuni;989889]I know you hate me Narue,.[/QUOTE] What the hell are you talking about? And why are you posting this in a FIVE year old thread?

Member Avatar for jamma
0
805
Member Avatar for ITKnight

[QUOTE=vegaseat;1123013] This is my favorite soccer team (I have relatives there) ... [VFB Stuttgard][/QUOTE] So... not doing too great for the championship this year, right? [QUOTE=Ancient Dragon;1123086]At that time it was just as much fun watching the fans get into big fights as it was watching the game. Do the …

Member Avatar for HelloMe
0
202
Member Avatar for Nick Evan

So today I was driving my car to work and I see an old man fall of his bicycle. Thinking that he might have a heartattack or something I quickly pulled over the car to help him. I had to jump a small ditch to get to him. When I …

Member Avatar for apegram
0
295
Member Avatar for emitris

[QUOTE=anishakaul;1126748] Moderators should close such kind of threads !![/QUOTE] Why? Please point me to the section of [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]the rulebook [/URL] where is says that I "should close such threads !!" I don't tell you how to do [I]your[/I] job, so don't tell me how to do mine.

Member Avatar for WaltP
-3
208
Member Avatar for Nick Evan

[B]Background[/B] I was looking for a simple control in wxWidgets which I could use to plot out [i]some value[/i] against time, but I found that apparently I was the only one that needed that kind of graph. (so I don't know why I'm posting it... but anyway). I decided to …

Member Avatar for callmegood
0
920
Member Avatar for sepehr_sz

[QUOTE=Stephen Swift;1126940]I have been brought to this thread after accusations of plagiarism. We have been told you are a Brunel student, and as you know, what you are doing is classified as cheating. [/quote] Yes! Finally a teacher who's smart enough to use google! This is great and you rock! …

Member Avatar for Nick Evan
0
164

The End.