2,839 Posted Topics
Re: hmmm, do you realize that this post was made Jul 26th 2005, 3:47 pm? Now ~SOS~/Wolfpack is going to say some things to you about shaman's and stuff and close the thread :) | |
Re: [quote] long integers also have a maximum value. [/quote] True, it's 4294967296 to be exact. So that won't work for you, I suggest you go with Ancient Dragon's solution and use 64 bits. Regard Niek | |
Re: [quote] I have several folders on my hard drive with thousands of files within them. [/quote] In case you want to search the sub-dirs, you shoul use the /s switch with dir. Example: [code] dir /b /s > database.txt [/code] | |
Re: [quote] you will need a 16-bit compiler such as Turbo C [/quote] You could better use your own compiler and look for [URL="http://www.logix4u.net/inpout32.htm"]inpout32[/URL].dll which gives you direct acces to ports in XP. [quote] using an RS 485 cable [/quote] So a 2-wire protocol? You could use one of the five … | |
Re: Download [URL="http://www.download.com/Ad-Aware-SE-Personal-Edition/3000-8022_4-10399602.html?tag=lst-0-1"]ad-aware[/URL], install it, then start your computer in safe-mode (by bashing F8 on start up) and scan your harddisk. regards Niek | |
Re: [quote] It can save tons of time and effort but what I am concerned about is whether there is already such a platform out there in the internet [/quote] Yes there is, it's in dutch, but with a little imagination you'll understand: [URL="http://www.alternate.nl"]alternate[/URL] (click: PC-Builder) | |
Re: read [URL="http://www.daniweb.com/techtalkforums/thread60138.html"]this [/URL]thread, last post | |
Re: var 'min' is declared twice. And what does 'n' do? | |
Re: [quote]((5+4)*(5+3))*(9+3) so, if i check for the last paranthesis, i would get ( and ) in 9+3... but should i need ( and ) in 5+4 as paranthesis is from left to right?... [/quote] Why? I doesn't change the outcome in any way. Looks to me like your on the … | |
Re: PLEASE, use code tags. [code] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] calcjan1([/COLOR][COLOR=#0000ff]int[/COLOR][COLOR=#000000] year,[/COLOR][COLOR=#0000ff]int[/COLOR][COLOR=#000000] jan,[/COLOR][COLOR=#0000ff]int[/COLOR][COLOR=#000000] startday);[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] startDay = calcjan1(year); [/COLOR] [/code] That's the problem, you declare a function wich will take 3 parameters, but when you call it, you just pass 1. Same problem with: [code] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] days = daysinmonth(month);[/COLOR] [/code] | |
Re: I agree that this isn't the easiest subject for a beginning programmer, but I'll try to explain: [code] int Array[3][3][/code] this means you're setting up a 2d array, an array with 2 dimensions. so like this: array[3][3] (means) 000 000 000 so you can just use 'coordinates' to set and … | |
Re: [quote][COLOR=#993333][COLOR=#993333][COLOR=#993333]int[/COLOR] charge;[/COLOR][/COLOR] [COLOR=#993333][COLOR=#993333][COLOR=#993333]int[/COLOR] num[/COLOR][/COLOR][/quote] [COLOR=#993333][quote][COLOR=#993333][COLOR=#993333]double[/COLOR] calculateCharge[COLOR=#66cc66]([/COLOR][COLOR=#993333]double);[/COLOR][/COLOR][/quote][/COLOR] [quote] charge = calculateCharge[COLOR=#66cc66]([/COLOR]num[COLOR=#66cc66])[/COLOR]; [/quote] What you are doing here is trying to convert a double to an int. That's probably why you are loosing everything behind the decimal point (int's do not support decimal points). Just declare everything as 'double' and voila! 1 … | |
Re: Sorry, but you can't really expect that someone will understand your question or function if you post like this. Retry and please use CODE-tags, indent your code, post the complete code and ask a clear question. | |
Re: something like this perhaps? [code] char i; for (i = 'a' ; i <= 'Z'; i++) { printf("Char: %c was found %d times", i, count[i]); } [/code] I didn't test it, but it should work fine! | |
Re: And you should read mr. joe's post again: [quote] [COLOR=#b1b100][COLOR=#b1b100]if[/COLOR] [COLOR=#66cc66]([/COLOR]temptype == [COLOR=#ff0000]'casual'[/COLOR][COLOR=#66cc66]) => [COLOR=#b1b100]if[/COLOR] [COLOR=#66cc66]([/COLOR]temptype == [COLOR=magenta]"[/COLOR][COLOR=#ff0000]casual[/COLOR][COLOR=magenta]"[/COLOR][COLOR=#66cc66])[/COLOR][/COLOR][/COLOR] [COLOR=#b1b100][COLOR=#66cc66][COLOR=#66cc66][COLOR=#993333]string[/COLOR] object_name => [COLOR=#993333]string[/COLOR] object_name[/COLOR][/COLOR][/COLOR][COLOR=magenta];[/COLOR][/quote] | |
Re: [quote] I'm sorry to disappoint everyone. But what exactly are you calculating, its certainly not Pascal's Triangle. [/quote] Yes it is, if you follow [URL="http://en.wikipedia.org/wiki/Pascal_triangle"]this[/URL] link (the one you posted), you will see that it is exactly the same as the one in Narue's post, but tilted 45 degrees. But … | |
Re: And now to solve your problem: Pow() wants 2 doubles as parameters, but y is declared as an int. So change [inlinecode]int y[/inlinecode] to [inlinecode]double y[/inlinecode] and you're on the roll! [quote] [code] int myFunction(int b) [/code] [/quote] You might want to change this in [inlinecode]double myFunction(double b)[/inlinecode] because you … | |
Re: I found the following: [quote] [code] if (op == '14') { cout <<"\nPlease enter the radius of the cylinder"<<endl; cin >> radius; cout <<"Please enter the height of the cylinder"<<endl; cin >> height; cout <<"Volume of the Cone = " [COLOR=red]<< (<--forget these)[/COLOR] .3 * 3.14 * radius * radius … | |
Re: Please use code tags. I don't think this will work without structs without reprogramming the entire thing.. sorry | |
Re: [QUOTE] [CODE] if(printf("%d",printf("%d"))) [/CODE] [/QUOTE] The second printf doesn't get a variable to print, the second paramter is missing | |
Re: maybe something like this? [CODE] if name[0] = ' ' { printf("No name....\n" ); } [/CODE] | |
Re: [quote] [code] main(int argc, char argv[]) [/code] [/quote] That should be: [code] int main(int argc, char *argv[]) //added [int] and * [/code] Instead of exit() use return 0; Your program will compile just fine now | |
Re: Always post your message twice, maybe the second time someone will take the efford in decoding it.... ;) | |
Re: [quote][code]do { if (current->words==temp) { current->numWords++; break; } check=check->next; }while (check!=NULL); else { [/code][/quote] You've nested your loops wrong: do a if b end a else b end b | |
Re: You should read wolfpack's post more carefully: [quote] For example Code: void getdownPayment(float& downPayment)[B][COLOR=red]; // you dont need this semicolon[/COLOR][/B]{ There are a lot of functions that have similar errors. [/quote] Still in your code: [code] void gettradeIn( float& tradeIn); //remove semicolon [/code] | |
Re: You can use operator() to overload operators... ok, say you've got a rectangle(height, witdh) and you want to add two: Rectangle1 += Rectangle 2; The compiler will be very sad. If you make operator-overloading in your class, you can tell the compiler what it's suppose to do when you add … | |
Re: It probably was his homework assignment and he's affraid his teacher going to find out :cool: | |
Re: [quote] pizza.cpp:60: error: `lenth' undeclared (first use this function) [/quote] I think you mean 'length' instead of 'lenth' [quote]error: no matching function for call to `getData()'[/quote] You are trying to call the function getData() somewhere without passing any parameters. I can't say anything about the rest, because you didn't post … | |
Re: Let's say you put your input in 'acBuffer[]' : [code] int iCount = 0; for (iCount = strlen(acBuffer); iCount => 0; iCount--) { printf("%s\n", acBuffer); acBuffer[iCount] = '\0'; } [/code] Or something like that. ps. Don't forget to include string.h | |
Re: [quote] Please read[URL="http://http://web.daniweb.com/techtalkforums/announcement8-2.html"] this[/URL] and post your code when you are ready. [/quote] Ok, it's a 404, but what he is trying to say is thta whe're not gonna do your homework :-| | |
Re: That's because it doesn't go anywhere :) Try this: [code] private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { System::IO::StreamReader^ sr=gcnew StreamReader("C:\\Textol.txt"); Txt1->Text = sr->ReadLine(); sr->Close(); } [/code] | |
Re: you could read this thread: [URL]http://www.daniweb.com/techtalkforums/thread57700.html[/URL] | |
Re: in pasc(int): [quote] [code] long fact(int); [/code] [/quote] That declaration of a function should me in main() where you declare pasc(int) | |
Re: well, if you run it, it shows: a Pyramid :eek: so I guess it works But use int main() Do't use clrscr() and getch() edit: Brilliant minds think alike :P | |
Re: Could you post some code? It would make helping you a lot easier.. | |
Re: [quote][code]while ( x <= 10);[/code][/quote] [quote] Also, your while statement is terminated by a semicolon [/quote] This also has another problem, bacause when x is declared the program will just stay on this line ( while(1) ) [quote] [code] for (counter++ < power) [/code] [/quote] I think what you're trying … | |
Re: dude 1st spell properly... its graphic.h The words in red are not spelled right. So who are you to comment on the spelling of someone else? And because this thread is almost 5 years old, you are the lucky winner of the "most useless post of the day" award. Congratulations! … |
The End.