Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #2K
~88.9K People Reached
About Me

Student

Interests
Programming,music
Favorite Tags

26 Posted Topics

Member Avatar for samaru
Member Avatar for vegaseat

sorry, but it`s giving several link errors with bloodshed dev c++.one of the errors is [Linker error] undefined reference to `GetStockObject@4'

Member Avatar for laheg
2
25K
Member Avatar for varunrathi

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 …

Member Avatar for gerard4143
0
1K
Member Avatar for varunrathi

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

Member Avatar for richieking
0
920
Member Avatar for varunrathi

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 …

Member Avatar for yellowSnow
0
193
Member Avatar for Asif_NSU

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.

Member Avatar for roxanne_gem07
0
279
Member Avatar for varunrathi

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 …

Member Avatar for ~s.o.s~
0
96
Member Avatar for varunrathi

hello friends, i want to learn java can anyone provide any link to a tutorial or anything else. thank you

Member Avatar for jwenting
0
80
Member Avatar for the_shark
Member Avatar for asdflkjh

u have defined the function void calculate_grade() twice mistakably. and please tell what r the errors

Member Avatar for Acidburn
0
236
Member Avatar for fakhre

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++; …

Member Avatar for Dave Sinkula
0
376
Member Avatar for LAMJAM
Member Avatar for prog-bman
0
184
Member Avatar for Marauder

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 …

Member Avatar for vegaseat
0
337
Member Avatar for badchick

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 …

Member Avatar for alc6379
0
136
Member Avatar for netjet

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 …

Member Avatar for netjet
0
146
Member Avatar for riturajraina

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 …

Member Avatar for varunrathi
0
428
Member Avatar for dowens3rd

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.

Member Avatar for Dave Sinkula
0
146
Member Avatar for auronvi

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 …

Member Avatar for auronvi
0
123
Member Avatar for Jakester_101

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 …

Member Avatar for alc6379
0
323
Member Avatar for Extreme

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 …

Member Avatar for jwenting
-1
265
Member Avatar for kama

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 …

Member Avatar for anastacia
0
5K
Member Avatar for netjet

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 …

Member Avatar for netjet
0
106
Member Avatar for huria
Member Avatar for Keiyentai
0
95
Member Avatar for AllenN

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

Member Avatar for vegaseat
0
183
Member Avatar for wangstarr

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 …

Member Avatar for varunrathi
0
314
Member Avatar for gowswan

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

Member Avatar for Dave Sinkula
0
120

The End.