Search Results

Showing results 1 to 31 of 31
Search took 0.01 seconds.
Search: Posts Made By: Luckychap ; Forum: C++ and child forums
Forum: C++ May 26th, 2009
Replies: 9
Views: 479
Posted By Luckychap
Forum: C++ May 25th, 2009
Replies: 9
Views: 479
Posted By Luckychap
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
Solved: stop loop
Views: 440
Posted By Luckychap
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
Solved: stop loop
Views: 440
Posted By Luckychap
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
Posted By Luckychap
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
Posted By Luckychap
Try using :

cout<<"\b";


after user presses enter.
Forum: C++ Dec 16th, 2008
Replies: 4
Views: 479
Posted By Luckychap
You cannot declare array with a variable size.
Forum: C++ Dec 13th, 2008
Replies: 7
Views: 1,190
Posted By Luckychap
//Array to store marks for three scores
int scores[3];

getTestScore (scores);
average = calcAverage (scores);
-
-
-
-
-
Forum: C++ Dec 10th, 2008
Replies: 5
Views: 406
Posted By Luckychap
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
Code Snippet: Digital Clock in C++
Views: 3,008
Posted By Luckychap
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
Posted By Luckychap
Forum: C++ Nov 29th, 2008
Replies: 0
Views: 2,033
Posted By Luckychap
Here is simple c++ program to demonstrate matrix rain.

Compiler:TurboC
Forum: C++ May 9th, 2008
Replies: 5
Views: 808
Posted By Luckychap
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
Posted By Luckychap
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
Posted By Luckychap
First tell which type on Link List you are using: Singly, Doubly, Circular etc..
Forum: C++ May 6th, 2008
Replies: 7
Views: 2,927
Posted By Luckychap
Marked this thread as SOLVED, please
Forum: C++ May 5th, 2008
Replies: 16
Views: 1,223
Posted By Luckychap
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
Posted By Luckychap
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
Solved: Output
Views: 392
Posted By Luckychap
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
Posted By Luckychap
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
Posted By Luckychap
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
Posted By Luckychap
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
Posted By Luckychap
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
Posted By Luckychap
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
Posted By Luckychap
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
Posted By Luckychap
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
Solved: aray or string
Views: 2,451
Posted By Luckychap
Yes i'm using turboc 3.0
Forum: C++ Mar 9th, 2007
Replies: 6
Solved: aray or string
Views: 2,451
Posted By Luckychap
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
Posted By Luckychap
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
Posted By Luckychap
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
Posted By Luckychap
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
Showing results 1 to 31 of 31

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC