Forum: C 22 Days Ago |
| Replies: 23 Views: 663 Sorry Mr tojan...
If i had used some bad words to you...
i thought your r still ignoring me..
any way sorry and hope you got it my logic... |
Forum: C 22 Days Ago |
| Replies: 23 Views: 663 hello, Mr Tojan..
i had run this program okay..
its works perfectly...
Better that you also run it....
don't use your mind if you not having enough thinking level...
so, first run this program... |
Forum: C 22 Days Ago |
| Replies: 23 Views: 663 I am not ignoring dkalita's solution..
ya, its right and perfect....
but Mr tojan you just try to use this logic in char string "tojan"...
obiasly it will not work...
dkalita had ignored me to... |
Forum: C 22 Days Ago |
| Replies: 23 Views: 663 By using this logic you can reverse only integer typed string...
Now suppose I want to reverse this string "dkalita" ...
then we can't use this logic...then it will be better to use "strrev()"... |
Forum: C 22 Days Ago |
| Replies: 4 Views: 159 hi..
#include<stdio.h>
#include<conio.h>
void main()
{
int n,i;
clrscr();
printf("Enter N:- "); |
Forum: C 22 Days Ago |
| Replies: 23 Views: 663 you can also do this using "strrev" function...
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char *x;
gets(x); |
Forum: C 22 Days Ago |
| Replies: 23 Views: 663 |
Forum: C++ Jul 12th, 2009 |
| Replies: 11 Views: 658 As you told i tried your logic..
see your edited program...
it shows one error
C:\TC\BIN\nirav\CPP1.CPP(12) : error C2065: 'sleep' : undeclared identifier
// And I am using Microsoft Visual... |
Forum: C++ Jul 11th, 2009 |
| Replies: 11 Views: 658 ya..I know there are lot difference between getch() and getchar()..
and i also tried withgetche()..
but it can't
I am talking about general any programs..
specially i had not made but In... |
Forum: C++ Jul 11th, 2009 |
| Replies: 11 Views: 658 sorry, WaltP
I had already tried with both function "Kbhit()" and "getch()"..
but not working...
when i press "Esc" i want to directly end the executed program, but it requires ENTER key to end... |
Forum: C++ Jul 11th, 2009 |
| Replies: 11 Views: 658 I made a program...
now i have to put one validation.
"while program is executed, if i press "Esc" button (hardly situated in top-left corner) i will be out of my program, means its exicutation... |
Forum: C++ Jul 10th, 2009 |
| Replies: 17 Views: 452 siddhant3s..
the program which u had written as a solution, having so many errors...
and as you told that private memer are not inherited i also tried for protected, but it show 2 error
both are... |
Forum: C++ Jul 10th, 2009 |
| Replies: 17 Views: 452 Ancient Dragon
okay...thanks
but if want to use the variables of class A in Class B, as i had used in my above program than may i?? |
Forum: C++ Jul 9th, 2009 |
| Replies: 17 Views: 452 hello,
yesterday i was learning inheritance in C++...
My teacher has told me that
"Inheritance means using properties(variable,function etc) of one class to another class."
but when i do it with... |
Forum: C++ Jul 1st, 2009 |
| Replies: 18 Views: 749 no no..
loop is not going infinite, loop is running equal to the numbers of character in a string which you have entered..
i have stored that character in integer variable " n " using "... |
Forum: C++ Jul 1st, 2009 |
| Replies: 18 Views: 749 Mr xyz...
for your kind information..
i was solving his confutation and i think he may got it...
its non of your business..
and also mind your language, dont proud or shout to be "nearly a... |
Forum: C++ Jul 1st, 2009 |
| Replies: 18 Views: 749 no no..
loop is not going infinite, loop is running equal to the numbers of character in a string which you have entered..
i have stored that character in integer variable " n " using "... |
Forum: C Jun 30th, 2009 |
| Replies: 13 Views: 1,087 #include<stdio.h>
#include<conio.h>
void main()
{
int x;
double i,f=1;
clrscr();
printf("Enter Number:-- ");
scanf("%d",&x); |
Forum: Assembly Jun 30th, 2009 |
| Replies: 2 Views: 2,856 #include<iostream.h>
#include<stdio.h>
#include<conio.h>
int x;
class factorial
{
public:
void fact(); |
Forum: C++ Jun 30th, 2009 |
| Replies: 18 Views: 749 #include<iostream.h>
#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();
char st[25];
cout<<"Enter String:- ";
gets(st); |
Forum: C++ Jun 30th, 2009 |
| Replies: 6 Views: 519 1. Take array of 5 elements a[5] as u can scan the 5 numbers.
2. Also take another variable "temp" (for temporary use).
3. Now swapping & comparing every element of a[5] get the largest number.
... |
Forum: C++ Jun 29th, 2009 |
| Replies: 6 Views: 519 well dont do this kind of hard working in a simple programm
1. Take array of 5 elements a[5] as u can scan the 5 numbers.
2. Also take another variable "temp" (for temporary use).
3. Now... |
Forum: C++ Jun 29th, 2009 |
| Replies: 6 Views: 481 if you have to make a fact. of x
for(i=x;i>=1;i--)
{
fact=fact*i; // fact = 1
}
cout<<fact;
put this logic in your program..
it should be work.. |