2,839 Posted Topics

Member Avatar for Paladine

[QUOTE=The Dude;641318] I love using my Commodore 64 [b]very much!![/b] [/QUOTE] Hmm... Al tough the C64 [i]did[/i] had it's charms and I tend to get nostalgic, I really [b]don't[/b] miss it. I never had money for the floppy-drive so I had to save all my progs on tape... After a …

Member Avatar for tecktalk
1
244
Member Avatar for SunshineLuvr
Member Avatar for chickenlord500

And learn how to use [URL="http://www.daniweb.com/forums/misc-explaincode.html"]CODE-TAGS[/URL] as you were told [URL="http://www.daniweb.com/forums/thread129060.html"]before[/URL].

Member Avatar for Sky Diploma
0
159
Member Avatar for brain

What is the error-message? What compiler are you using? This compiles fine on VS2008 with warninglevel 4. And why do you want to use const ints?

Member Avatar for brain
0
295
Member Avatar for antona

Here's a related [URL="http://www.daniweb.com/forums/showthread.php?t=39367&highlight=printers"]thread[/URL] and here are the [URL="http://www.daniweb.com/forums/search3839316.html"]searchresults[/URL] :)

Member Avatar for antona
0
508
Member Avatar for ashalina

Please read [URL="http://www.daniweb.com/forums/announcement118-2.html"]this[/URL] Post the code you have so far, we're not going to make your homework for you...

Member Avatar for Narue
0
86
Member Avatar for camproject

Here's the logic: [code] while (lines in files) { get a line if it [B]isn't[/B] the line to be deleted { write the line in the new file } } [/code] If you don't understand something, tell us which part you don't get. Don't say "I don't get it to …

Member Avatar for camproject
0
202
Member Avatar for FTProtocol

You have a bracket misalignment. The function [icode]void GenerateKey(int iLower, int iUpper) {[/icode] doesn't have a closing bracket. (or perhaps the for-loop inside that function). If you're using Visual studio press: ctrl-a , ctrl-k , ctrl-f to auto-format your code. That way you can see it yourself. There are alot …

Member Avatar for FTProtocol
0
166
Member Avatar for edman

Why all the horrible casting? Why not just change the function to take in doubles? [code] double addRange(double x, double y) { [/code]

Member Avatar for iamthwee
0
144
Member Avatar for Black Magic

You'll probably never get C++ 100%. There are very few (if any) people how can claim to know 100%. ~s.o.s.~ started a good thread a while back with [URL="http://www.daniweb.com/forums/thread67837.html"]practice-problems[/URL]. Try some of the intermediate or expert programs. If you can easily find a solution for them (without looking on the …

Member Avatar for William Hemsworth
0
140
Member Avatar for anuizath2007

Why didn't you read the replies you already got? This code still has the same errors in it as mentioned before. line 35: [ICODE]if (vote=1)[/ICODE] should be [ICODE]if (vote[COLOR="red"]==[/COLOR]1)[/ICODE] Same goes for lines 37-44 line 36: [ICODE]candidate[i]='cnd1';[/ICODE] As mentioned before: you can't assign values to a char-array this way. use …

Member Avatar for anuizath2007
0
292
Member Avatar for grayCplus

Quite a few errors actually. Perhaps you should look at a [URL="http://www.cplusplus.com/doc/tutorial/functions.html"]tutorial [/URL]for functions first. But because you took the time to learn about code-tags (good job!), I'll give you a start on your program: [code=cpp] # include <iostream> using namespace std; void company_name(void); int no_emp(void); int main () { …

Member Avatar for Nick Evan
1
140
Member Avatar for QuantNeeds

No. Salem's example was an example of a console-command. Here's another example [code] dir > myfiles.txt [/code] This will put the output from "dir" (old dos command for finding files) in the (newly created) file 'myfiles.txt'. The ' > ' operator just redirects the output that normally would be on …

Member Avatar for Nick Evan
0
111
Member Avatar for risa

I agree, using strings would probably solve your problem. But since that wasn't your question, you could try: [code=cpp] #define _CRT_SECURE_NO_DEPRECATE #define _CRT_NONSTDC_NO_DEPRECATE #include <......> etc [/code] which would take care of the "declared deprecated" warnings. Or you could add [icode] #pragma warning (disable:4996) [/icode] to your code Here's a …

Member Avatar for risa
0
3K
Member Avatar for danishbutt

[QUOTE=danishbutt;642607] Plz Help Me and Send me the Comlete code of programs[/QUOTE] No. Here are some [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules [/URL]for you. Post the code you have so far and tell us what your problem exactly is. What output did you expect and what output did you get? "Gimme da codez" doesn't work …

Member Avatar for Nick Evan
-1
29
Member Avatar for sarehu

[QUOTE=Salem;641601] If you use only spaces, you GUARANTEE that it looks the same everywhere. Any code editor worthy of the name has an automatic way of substituting spaces for tabs. Most have "smart" indentation anyway, so there's really no worry about having to hammer the space bar to achieve the …

Member Avatar for Nick Evan
1
147
Member Avatar for John A

[QUOTE=Narue;638248]Could you describe the bug?[/QUOTE] Multiple notifications of one and the same event in the subscription spy. First noticed the bug today, but I haven't used the spy since Thursday . Happens on IE7 and FF3. Offtopic: could you change your avatar back the way it was? It's hypnotizing effect …

Member Avatar for Dani
0
145
Member Avatar for driplet
Member Avatar for MrGobroski
0
131
Member Avatar for mrinmay
Member Avatar for Salem
-1
109
Member Avatar for Dilan123

[URL="http://www.daniweb.com/search/search.php?q=java+SMS"]Java click[/URL] [URL="http://www.daniweb.com/search/search.php?q=c%23+sms"]C# click[/URL] I just used the enormous searchbox on the right

Member Avatar for ema005
0
62
Member Avatar for &rea

I haven't done this in a while, so I might be wrong, but try: [code=cpp] System::Drawing::Color val; val = RGB(0,0,b); labelledImage->SetPixel(r,c,val); [/code]

Member Avatar for Prabakar
0
202
Member Avatar for Beemer

In the function displayAverage(): change [icode]total = total + inputP[COLOR="red"][i][j][/COLOR];[/icode] to : [icode]total = total + inputP[COLOR="red"][j][i][/COLOR];[/icode] j runs from 0 to NR_FRIENDS and i runs from 0 to NR_MODULES Your array is declared as [icode]const int inputP[] [NR_MODULES][/icode] So you can see that you switched the two variables :) …

Member Avatar for Beemer
0
105
Member Avatar for Redrussell66

For free PHP advice go [URL="http://www.daniweb.com/forums/forum17.html"]here[/URL] If you want to hire someone, go [URL="http://www.daniweb.com/forums/forum59.html"]here[/URL] Good luck

Member Avatar for Redrussell66
0
119
Member Avatar for bjaanes

That's because you're mixing cin << with cin.get(); cin << ... leaves a "\n" (end of line) character on the stream and when you then call cin.get(), that character is still on the stream, so you aren't able to type anything. (cin.get only takes 1 char) To avoid this problem, …

Member Avatar for Nick Evan
0
147
Member Avatar for Dannyo329

What iamthwee said is all true, but your problem is here: (in red) [QUOTE=Dannyo329;637378] [CODE] ClassOne myClass_instance; [COLOR="red"]s[/COLOR] = 5; cout << "The number is: " << [COLOR="red"]s[/COLOR]; [/code] [/quote] I think you mean something like: [CODE] ClassOne myClass_instance; [COLOR="red"]myClass_instance.s[/COLOR] = 5; cout << "The number is: " << [COLOR="red"]myClass_instance.s[/COLOR];[/CODE]

Member Avatar for Dannyo329
0
105
Member Avatar for himsymcpp

It's kind of difficult to pinpoint a problem without seeing your code. So post your code and please use [URL="http://www.daniweb.com/forums/misc-explaincode.html"]code tags[/URL] [edit] too slow. :(

Member Avatar for himsymcpp
0
267
Member Avatar for TheBeast32

Iamtwhee answered this question here: [URL="http://www.daniweb.com/forums/post614870-7.html"]Click[/URL] (have fun :) )

Member Avatar for TheBeast32
0
110
Member Avatar for &rea

Did you [icode]#include <vector>[/icode] ? If yes: what compiler are you using?

Member Avatar for jencas
0
80
Member Avatar for sugantha

Did you change anything in the c++config.h file? Could you post lines 40-50 from c++config.h?

Member Avatar for sugantha
0
253
Member Avatar for programmer321

This would be a lot easier in c++ due to the unicode. Here's a [URL="http://forums.msdn.microsoft.com/en/vclanguage/thread/184f9757-2743-404e-b69e-7c02fc1b0907/"]link [/URL]on it. Here's a [URL="http://evanjones.ca/unicode-in-c.html"]link [/URL]to with some info on unicode and C

Member Avatar for programmer321
0
242
Member Avatar for camproject

Here's a [URL="http://www.codeproject.com/KB/menus/cmenumodifier.aspx"]link [/URL]on the subject

Member Avatar for Nick Evan
0
40
Member Avatar for anuizath2007

Although the problem might be solved, I strongly suggest that you read these links: [URL="http://www.daniweb.com/forums/announcement8-3.html"]code tags[/URL] [URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1044841143&id=1043284376"]void main()[/URL] [URL="http://www.daniweb.com/forums/thread11811.html"]getch()[/URL] [URL="http://en.wikipedia.org/wiki/Indent_style"]code formatting[/URL] And last but not least: I suspect that you're using the Turbo C++ compiler? Replacing it with a 'modern' compiler would be a good idea. That way you'll learn …

Member Avatar for Nick Evan
0
130
Member Avatar for integer*09
Member Avatar for integer*09
0
166
Member Avatar for QuantNeeds

In your headerfile put: [code=cpp] public: Dice(){}; [/code] You don't have a default constructor so that's why the compiler is complaining.

Member Avatar for QuantNeeds
0
227
Member Avatar for allena

[URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1047588051&id=1043284376"]Click[/URL]

Member Avatar for n1337
0
504
Member Avatar for cam875

Post your new code and problems. Saying: 'it still doesn't work' doesn't give us enough info to help you

Member Avatar for ninjaneer
0
120
Member Avatar for QuantNeeds

Change line 141 from : [ICODE]if( gameStatus == WON )[/ICODE] to: [ICODE]if( roll.gameStatus == WON )[/ICODE] And your problem should be solved

Member Avatar for QuantNeeds
0
2K
Member Avatar for mrboolf

I can't see why this program shouldn't work. The only thing I would change is: while(!dictionary.eof()) { getline(dictionary, current_word); // stores the current line Change these to lines to: while(getline(dictionary, current_word)) { eof() is never a good function to use IMO.

Member Avatar for mrboolf
0
595
Member Avatar for abacian1983

First: [URL="http://www.daniweb.com/forums/misc-explaincode.html"]use code tags[/URL] next: [URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1044841143&id=1043284376"]void main[/URL] And then: These lines: [code=cpp] for(i=0;i<N;i++) i=1; [/code] will cause an infinite loop. So your code won't work. Also, if you want to make 'pairs of number', don't use an odd amount of elements in your array because 25/2 = 12.5... I would …

Member Avatar for Nick Evan
0
234
Member Avatar for lAmoebal

I've been programming for 3 years. Mostly C (for uControllers), but also C++ and a little bit of VB.net & PHP. Made my first program 15 years ago on a Commodore 64. [code] 10 print "Hello!" 20 goto 10 [/code] ;) [QUOTE=majestic0110;586909] That makes no sense at all Technogeek![/QUOTE] Technogeek's …

Member Avatar for stephen84s
0
373
Member Avatar for cycras

[QUOTE=CoolGamer48;635841]I do believe that older versions of the Unreal Engine (which is the engine used to make UT3 that you were referring to) are available at prices affordable by an average individual (vs. an entire gaming company or someone who's extremely rich). I heard somewhere that the very first version …

Member Avatar for morrock
0
135
Member Avatar for Mpsilva

tada: [URL="http://www.daniweb.com/forums/forum128.html"]click[/URL]

Member Avatar for Nick Evan
0
32
Member Avatar for Aamit

First of all: giving away free code in violation with the Daniweb rules. Second: [QUOTE=ivailosp;635875][code=CPP] .... int stringToInt(const string& tmpStr) { int tmpInt = 0; for (size_t i = 0; i < tmpStr.size(); ++i) { tmpInt += (tmpStr[i] - '0'); tmpInt *= 10; } return tmpInt/10; } [/code][/QUOTE] I don't …

Member Avatar for Nick Evan
0
178
Member Avatar for arvindh

There's a nice big searchbox on the right side of the site: [URL="http://www.daniweb.com/search/search.php?q=Final+year+Project"]click[/URL]

Member Avatar for Nick Evan
0
23
Member Avatar for Cyberage

The problem is the dayReport is only 1 class past to the function, not an array of classes: [quote][code] istream& operator >> (istream& fin,[COLOR="red"] weatherReport dayReport[/COLOR])[/code][/quote] So you'll have to adjust the function to take in an array of classes.

Member Avatar for Cyberage
0
129
Member Avatar for Dani

Looking back in my rep-history I saw I got rep once for reporting a bad post. Does this rep fall into the 'coffee house' category? Just wondering... Niek

Member Avatar for linux
0
113
Member Avatar for Jennifer84

I'm not a win32 programmer, so I might be wrong, but I think you have to refresh or draw the form each time you change the opacity . [edit] and your for-loop is wrong: [quote][code]for(double i = 0;[COLOR="red"] i = 1[/COLOR]; i+=0.01)[/code][/quote] I think you mean: [code]for(double i = 0.0; …

Member Avatar for Jennifer84
0
146
Member Avatar for mhil_joy

In addition to what n1337 said: try the [URL="http://www.daniweb.com/search/search.php?q=tic+tac+toe"]search-function[/URL]. This question was asked a 'few' times before :)

Member Avatar for Nick Evan
0
103
Member Avatar for marcusbarnet

[QUOTE=Salem;631196] Or read the whole file into a std::vector of std::string.[/QUOTE] But that wouldn't really be C right? ;)

Member Avatar for marcusbarnet
0
981
Member Avatar for Prathvi

[QUOTE=Prathvi;634855]Dear all, I have to create a customized SoftInputPanel for my program. My question is that ==>Is it possible to create our own SIP for Windows Mobile? [/quote] Yes. [QUOTE=Prathvi;634855] ==>Pls give some info for the same[/QUOTE] If I had to do this, I would - download [URL="http://www.microsoft.com/downloads/details.aspx?FamilyID=83c3a1ec-ed72-4a79-8961-25635db0192b&DisplayLang=en"]VS2008 PRO[/URL] (90 …

Member Avatar for Prathvi
0
93

The End.