2,839 Posted Topics
Re: [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 … | |
Re: [deleted] Something went wrong, sorry for the inconvenience... | |
Re: 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]. | |
Re: 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? | |
Re: 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] :) | |
Re: 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... | |
Re: 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 … | |
Re: 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 … | |
Re: Why all the horrible casting? Why not just change the function to take in doubles? [code] double addRange(double x, double y) { [/code] ![]() | |
Re: 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 … | |
Re: 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 … | |
Re: 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 () { … | |
Re: 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 … | |
Re: 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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: Are the variables declared in global scope? And how do you access them? | |
Re: [URL="http://www.daniweb.com/forums/announcement8-2.html"]No[/URL]. | |
Re: [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 | |
Re: 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] | |
Re: 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 :) … | |
Re: 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 | |
![]() | Re: 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, … |
Re: 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] | |
Re: 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. :( | |
Re: Iamtwhee answered this question here: [URL="http://www.daniweb.com/forums/post614870-7.html"]Click[/URL] (have fun :) ) | |
Re: Did you [icode]#include <vector>[/icode] ? If yes: what compiler are you using? ![]() | |
Re: Did you change anything in the c++config.h file? Could you post lines 40-50 from c++config.h? | |
Re: 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 | |
Re: Here's a [URL="http://www.codeproject.com/KB/menus/cmenumodifier.aspx"]link [/URL]on the subject | |
Re: 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 … | |
Re: how about [icode]ofstream newFile(found+".txt");[/icode] | |
Re: In your headerfile put: [code=cpp] public: Dice(){}; [/code] You don't have a default constructor so that's why the compiler is complaining. | |
Re: [URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1047588051&id=1043284376"]Click[/URL] | |
Re: Post your new code and problems. Saying: 'it still doesn't work' doesn't give us enough info to help you | |
Re: Change line 141 from : [ICODE]if( gameStatus == WON )[/ICODE] to: [ICODE]if( roll.gameStatus == WON )[/ICODE] And your problem should be solved | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: [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 … | |
Re: tada: [URL="http://www.daniweb.com/forums/forum128.html"]click[/URL] | |
Re: 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 … | |
Re: 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] | |
Re: 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. | |
Re: 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 | |
Re: 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; … | |
Re: 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 :) | |
Re: [QUOTE=Salem;631196] Or read the whole file into a std::vector of std::string.[/QUOTE] But that wouldn't really be C right? ;) | |
Re: [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 … |
The End.