Forum: C++ May 26th, 2009 |
| Replies: 9 Views: 479 Thank you!! Really helpful. |
Forum: C++ May 25th, 2009 |
| Replies: 9 Views: 479 I have a question regarding coping of files:-
Is there any difference between Ancient Dragon's style of coping each byte at a time by looping through till EOF and azjherben's style of coping in... |
Forum: C++ May 23rd, 2009 |
| Replies: 11 Views: 440 I was not blaming anyone I was just addressing a common mistake which anyone can make.
Come on Man!! |
Forum: C++ May 23rd, 2009 |
| Replies: 11 Views: 440 Very common mistake in for loop:
for(i=0; inputDone == 'y'; i++)
did u get this!! |
Forum: C++ Mar 23rd, 2009 |
| Replies: 1 Views: 2,323 This is a program for Encryption and Decryption
This program uses the Simple Data Encryption Standard (SDES) Algorithm.
This Algo takes 8-bits of plaintext at a time and produces 8-bits of... |
Forum: C++ Dec 18th, 2008 |
| Replies: 7 Views: 509 Try using :
cout<<"\b";
after user presses enter. |
Forum: C++ Dec 16th, 2008 |
| Replies: 4 Views: 479 You cannot declare array with a variable size. |
Forum: C++ Dec 13th, 2008 |
| Replies: 7 Views: 1,190 //Array to store marks for three scores
int scores[3];
getTestScore (scores);
average = calcAverage (scores);
-
-
-
-
- |
Forum: C++ Dec 10th, 2008 |
| Replies: 5 Views: 406 Best way to learn is to practice. So start coding!! Do not waste 69$.
Wait a sec....why 69$ and not 60$ OR 70$. :D |
Forum: C++ Dec 10th, 2008 |
| Replies: 0 Views: 3,008 Here is simple Digital Clock coded in C++ and compiler used is TurboC.
A class DIGIT is designed to draw digits. Follwoing are the details for this class:
Consructor: DIDGT(); for default... |
Forum: C++ Dec 2nd, 2008 |
| Replies: 7 Views: 555 Show us what you tried so far. |
Forum: C++ Nov 29th, 2008 |
| Replies: 0 Views: 2,033 Here is simple c++ program to demonstrate matrix rain.
Compiler:TurboC |
Forum: C++ May 9th, 2008 |
| Replies: 5 Views: 808 Why u are converting a char to int, you can compare char same as u compare int. |
Forum: C++ May 9th, 2008 |
| Replies: 5 Views: 2,062 void deletenode(struct **start, int pos)
{
struct node *tmp;
int i;
if(*start == NULL) {
printf("\nThe List is Empty");
return;
} |
Forum: C++ May 9th, 2008 |
| Replies: 5 Views: 2,062 First tell which type on Link List you are using: Singly, Doubly, Circular etc.. |
Forum: C++ May 6th, 2008 |
| Replies: 7 Views: 2,927 Marked this thread as SOLVED, please |
Forum: C++ May 5th, 2008 |
| Replies: 16 Views: 1,223 for looping u can use this way:
while(1) {
cout<< "Is the user scheduled for work today? (Y/N)"/n;
cin>> ScheduledIn;
ScheduledIn = toupper(ScheduledIn)
if... |
Forum: C++ May 5th, 2008 |
| Replies: 7 Views: 2,927 You are drawing circle from the center(cx,cy) of the square so to fill color outside the circle and in side the square you should use in this way floodfill(cx+radius + 2, cy + radius + 2 , color);
... |
Forum: C++ May 1st, 2008 |
| Replies: 4 Views: 392 U have defne an array of 10 nodes i.e. node arr[10]. But while looping in main() u are using for in wrong way i.e.
for (i=10; i>=0; i++)
here i should be initialized to 9 as the length of... |
Forum: C++ May 1st, 2008 |
| Replies: 4 Views: 822 Why are u printing 1's every time u find a number in certain range. U just count them first (as suggested by Ancient Dragon) and at last print them one by one i.e
printf("There are %d numbers in... |
Forum: C++ Apr 29th, 2008 |
| Replies: 7 Views: 7,296 char *p = NULL;
Because p is a pointer so it should not be pointing to anything hence NULL. If you want to nitialize pointer, initialize it with valid address;
like:
char *name = "ABCD";... |
Forum: C++ Apr 10th, 2008 |
| Replies: 2 Views: 417 Try this as ur default contructor signature:
BloodDonor(int id=0,string name=" ",string bGroup=" ",string hPhone=" ",string mPhone="", Address myAdd={0,0,0,"",""}); |
Forum: C++ Apr 6th, 2008 |
| Replies: 2 Views: 1,826 Hi guys,
I need to understand the concept of inheritance in Oops. Can any one explain with real life example the use of inheritence to enhance a super class. It will be very helfull to me if you can... |
Forum: C++ Feb 22nd, 2008 |
| Replies: 4 Views: 617 For the first program your using cin to take name from the user which may cause problem when user puts spaces between firstname and lastname. Try to enter name without spaces. |
Forum: C++ Apr 26th, 2007 |
| Replies: 1 Views: 914 Hi,
I am doing a project on finger print authentication. I am using finger print bitmap(4-bit). can any one help me with how to trace all the rigids on finger print so that i can find minutiae... |
Forum: C++ Mar 11th, 2007 |
| Replies: 1 Views: 720 hi,
please any one tell me what is function overloading and overriding.
and next one is on O.S.
one more que. what is the difference between process and thread
thanks!! |
Forum: C++ Mar 10th, 2007 |
| Replies: 6 Views: 2,451 |
Forum: C++ Mar 9th, 2007 |
| Replies: 6 Views: 2,451 first find the length of the string(str) say len. then
for(int i=0;i<len;i++)
{
for(int j=i+1;j<len;j++)
{
if(str[i]>str[j])
temp=str[i];
str[i]=str[j];
str[j]=temp; |
Forum: C++ Dec 21st, 2006 |
| Replies: 2 Views: 2,478 Thanks,
But if i tiried to redraw each arm every second it looks more blinky. what i have done is that i continuosly check wether the the value of each arm is changed or not, if yes i redraw it... |
Forum: C++ Dec 18th, 2006 |
| Replies: 2 Views: 2,478 Hi,
I had almost completed my program of Analog clock with tC++. but i got stuck, when any arm of the clock is over another arm it erase the other arm when it passess by. I try to redraw that arm... |
Forum: C++ Nov 14th, 2006 |
| Replies: 2 Views: 2,121 I have just started C++, i have problem in understanding virtual functions. can anybody tells me what are v.f. and most important what is there importance in C++.
Thanks |