- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
26 Posted Topics
sorry, but it`s giving several link errors with bloodshed dev c++.one of the errors is [Linker error] undefined reference to `GetStockObject@4'
i am working on a program to find the factorial of a number of any length. i have used an integer array to store the digits of the result. the problem is that i am unable to store more than 32000 digits in the array. if i give a larger …
Can anybody help me with permutation in c++. say if the entered string is "stop" then there must be 24 (=4*3*2*1) different words made by the letters s,t,o,p. Similarly if the entered string is "abcde" then there will be 120 (=5*4*3*2*1) different words made using the letters a,b,c,d,e. Please Help. …
HI EVERYONE, I HAVE GOT A VERY INTERESTING PROBLEM THIS TIME. U HAVE TO FORM A PALINDROME OF AN ENTERED STRING. IT`S NOT THE UASUAL STUFF OF CHECKING WHETHER AN ENTERED STRING IS A PALINDROME OR NOT. IN THIS PROGRAM, SAY IF THE GIVEN STRING IS: "A3BCA" THEN THE PROGRAM …
Can u please, post ur solution If u can`t post the soln. then can u please explain how to find the factorial of a number of any length.
i want to clear a string after the prog. has done it`s work. i tried it by using a for loop and assigning a blank, but it didn`t work. the problem is that if i run the program again then the earlier value is displayed again . i`m using Turbo …
hello friends, i want to learn java can anyone provide any link to a tutorial or anything else. thank you
u have defined the function void calculate_grade() twice mistakably. and please tell what r the errors
here`s the code: [code] int main() { clrscr(); int b,d=0,a[100]; for(int z = 0;z<100;z++) //initialising { a[z] = 0; } cout<<"enter the binary no."<<endl; cin>>b; int c = 0,p; while(b>0) { int r = b%10; b = b/10; p = pow(2,c); d = d + (r*p); a[c] = r; c++; …
what`s in the header file "apstring.h" i think it`s creating the problem
You have given a case ‘4’: but you haven’t displayed it on the menu. You must go on calculating while the voting is going on e.g; if the case is ‘1’ then gw++ where gw is a counter for George Bush similarly for case ‘2’ keep a separate counter. when …
well, i was unable to find much sense in your code. do u want to create a file or the file is already present. i am unable to understand whether u want to calculate the no. of uppercase,lowercase,........etc, from a string or something else b`coz u r inputing the variables …
it will require me some time to find the error in ur program, but in my case it reached the line: `printf("\n done?");` I put this in to see if it got to here. never got here yet. u never got there bcoz u have not put braces after the …
i think after the execution of "work.exe" the c++ exits from the whole process. to stop this don`t use void main() in the "work.cpp" but use any other function, say void printhello() and then do whatever u want to in the "work.cpp" and close the function. now after creating the …
To sort the digits, first store each digit in an array and then use any of the sorting techniques to sort them in ascending order.
character strings are treated as arrays and therefore to move or swap words two things can be done: 1: u can use the library function strcpy(destination string,source string) this will copy the `source string` into the `destination string` or, 2: u can use a for loop to transfer each element …
u must do something about ur programming concept. i meam, if u find this prog. to be tough then what about the tougher ones that are waiting for u in the near future. to print the following format using for loop 13579 1357 135 13 1 u can take help …
IF THIS IS THE SAME CODE U HAVE TRIED THEN I THINK THE ONLY ERROR IS THAT AFTER void main() U HAVE NOT GIVEN THE BRACES AND THATS WHY THE COMPILER IS RELATING IT WITH A CLSS; SO GIVE THE BRACES void main() { like this and i hope ur …
here`s the code to convert weight in kg into pounds #include<iostream.h> #include<conio.h> #include<stdio.h> struct weight { int w1,w2; }; weight take() //function ti take input { weight wt1; cout<<"Please enter kg part:"; cin>>wt1.w1; cout<<"\nplease enter the gram part:"; cin>>wt1.w2; return wt1; } weight calculate(weight wt1) { weight wt; int grams …
I AM UNABLE TO UNDERSTAND WHAT UR PROBLEM IS BUT WHATEVER I COULD GATHER FROM THAT I COULD SAY THAT: U MUST CHECK BEFORE CALCULATING THE HITS THAT WHETHER BY SUBSTRACTING THE COLUMN BY 2 AND THE ROW BY 1 THE RESULTANT VALUE IS NOT BECOMING NEGATIVE OR EXCEEDING THE …
I Agree With Frrossk B`coz Ur Program Is Too Large To Search For Any Error.
IT DEPENDS UPON WHICH C++ U R USING IF U R USING TURBO C++ THEN THE getch(); COMMAND WOULD HELP U TO HOLD THE SCREEN TILL U PRESS A KEY FOR DEV C++ I THINK IT IS system("pause") but i`m not sure about it try it. good luck
To check for the no. of words run a loop and check each character of the string. if the character is equal to a white space then words++. the no. of words found by checking only whitespace can be one less than the actual no. of words in the string …
Here`s the code to convert a decimel number in any desired base #include<iostream.h> #include<conio.h> #include<stdio.h> void main() { clrscr(); int d,b=1,r,a,q,c = 0,s; char n[100]; cout<<"enter the no.:"; cin>>d; cout<<"\nenter base :"; cin>>b; while(d>0) { q = d/b; r = d%b; d = q; if(r>=10) { n[c] = 55 + …
The End.
varunrathi