2,839 Posted Topics

Member Avatar for mozira

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

Member Avatar for Salem
0
173
Member Avatar for dev.cplusplus

[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

Member Avatar for dev.cplusplus
0
119
Member Avatar for karatelovr

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

Member Avatar for Nick Evan
0
326
Member Avatar for jennifer911

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

Member Avatar for Nick Evan
0
305
Member Avatar for slowmo

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

Member Avatar for 'Stein
0
119
Member Avatar for pwrfid

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

Member Avatar for Nick Evan
0
99
Member Avatar for Einal

read [URL="http://www.daniweb.com/techtalkforums/thread60138.html"]this [/URL]thread, last post

Member Avatar for Nick Evan
0
52
Member Avatar for linq
Member Avatar for aznballerlee
Member Avatar for shoegoe

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

Member Avatar for ~s.o.s~
0
123
Member Avatar for JS1988

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]

Member Avatar for Nick Evan
0
118
Member Avatar for jimbobint

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 …

Member Avatar for ~s.o.s~
0
161
Member Avatar for king13

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

Member Avatar for king13
0
112
Member Avatar for hui

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.

Member Avatar for may4life
0
288
Member Avatar for paradoxxx

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!

Member Avatar for paradoxxx
0
141
Member Avatar for Jonezy

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]

Member Avatar for Jonezy
0
4K
Member Avatar for indianscorpion2

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

Member Avatar for Nick Evan
0
563
Member Avatar for mandanainred

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 …

Member Avatar for Nick Evan
0
127
Member Avatar for Niklas

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 …

Member Avatar for FireSBurnsmuP
0
239
Member Avatar for ramyasree

Please use code tags. I don't think this will work without structs without reprogramming the entire thing.. sorry

Member Avatar for WaltP
0
186
Member Avatar for pointers

[QUOTE] [CODE] if(printf("%d",printf("%d"))) [/CODE] [/QUOTE] The second printf doesn't get a variable to print, the second paramter is missing

Member Avatar for ~s.o.s~
0
102
Member Avatar for Manas Kumar Sen
Member Avatar for sgriffiths

maybe something like this? [CODE] if name[0] = ' ' { printf("No name....\n" ); } [/CODE]

Member Avatar for Nick Evan
0
108
Member Avatar for Manas Kumar Sen

[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

Member Avatar for Nick Evan
0
82
Member Avatar for neeven

Always post your message twice, maybe the second time someone will take the efford in decoding it.... ;)

Member Avatar for indianscorpion2
0
254
Member Avatar for tirivamwe

[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

Member Avatar for Nick Evan
0
130
Member Avatar for Eadams20

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]

Member Avatar for Nick Evan
0
104
Member Avatar for disc

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 …

Member Avatar for disc
0
166
Member Avatar for rgbivens

It probably was his homework assignment and he's affraid his teacher going to find out :cool:

Member Avatar for WolfPack
0
225
Member Avatar for matrimforever

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

Member Avatar for ~s.o.s~
0
2K
Member Avatar for Phazawhy

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

Member Avatar for ~s.o.s~
0
99
Member Avatar for djskip

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

Member Avatar for DavidRyan
0
166
Member Avatar for DmD

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]

Member Avatar for Nick Evan
0
1K
Member Avatar for Ranukano

you could read this thread: [URL]http://www.daniweb.com/techtalkforums/thread57700.html[/URL]

Member Avatar for Nick Evan
0
229
Member Avatar for darkeinjel04

in pasc(int): [quote] [code] long fact(int); [/code] [/quote] That declaration of a function should me in main() where you declare pasc(int)

Member Avatar for Infarction
0
147
Member Avatar for darkeinjel04

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

Member Avatar for darkeinjel04
0
413
Member Avatar for Ahmed Waheed
Member Avatar for Nick Evan
0
99
Member Avatar for redstar

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

Member Avatar for Nick Evan
0
278
Member Avatar for yb1pls

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

Member Avatar for 1o0oBhP
0
520

The End.