Click here to Skip to main content
15,906,708 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Timers in Windows Pin
Cedric Moonen10-May-09 20:26
Cedric Moonen10-May-09 20:26 
AnswerRe: Timers in Windows Pin
Madhu Nair10-May-09 20:56
Madhu Nair10-May-09 20:56 
GeneralRe: Timers in Windows Pin
Mohammadj11-May-09 0:37
Mohammadj11-May-09 0:37 
RantRe: Timers in Windows Pin
Madhu Nair11-May-09 1:31
Madhu Nair11-May-09 1:31 
GeneralRe: Timers in Windows Pin
Mohammadj11-May-09 1:38
Mohammadj11-May-09 1:38 
GeneralRe: Timers in Windows Pin
Chandrasekharan P11-May-09 2:04
Chandrasekharan P11-May-09 2:04 
GeneralRe: Timers in Windows Pin
Mohammadj11-May-09 2:12
Mohammadj11-May-09 2:12 
GeneralRe: Timers in Windows Pin
Chandrasekharan P11-May-09 2:14
Chandrasekharan P11-May-09 2:14 
Questionsegmentation fault- gdb output : at 0x00ac315a meaning?? Pin
shrims4u10-May-09 19:51
shrims4u10-May-09 19:51 
AnswerRe: segmentation fault- gdb output : at 0x00ac315a meaning?? Pin
Cedric Moonen10-May-09 20:20
Cedric Moonen10-May-09 20:20 
GeneralRe: segmentation fault- gdb output : at 0x00ac315a meaning?? Pin
shrims4u11-May-09 16:53
shrims4u11-May-09 16:53 
GeneralRe: segmentation fault- gdb output : at 0x00ac315a meaning?? Pin
Cedric Moonen11-May-09 20:07
Cedric Moonen11-May-09 20:07 
QuestionGetting a crash when using the below code. Pin
V K 210-May-09 19:36
V K 210-May-09 19:36 
AnswerRe: Getting a crash when using the below code. Pin
Code-o-mat10-May-09 22:25
Code-o-mat10-May-09 22:25 
QuestionRe: Getting a crash when using the below code. Pin
David Crow11-May-09 3:36
David Crow11-May-09 3:36 
Questionconvert tiff to pdf using pdflib ? Pin
aa_zz10-May-09 17:35
aa_zz10-May-09 17:35 
AnswerRe: convert tiff to pdf using pdflib ? Pin
Stuart Dootson10-May-09 21:54
professionalStuart Dootson10-May-09 21:54 
Questionhi i need this program immediately in c++ Pin
sonuchill10-May-09 6:13
sonuchill10-May-09 6:13 
Write a class Namelist that serves as a list of names. Each name is

up to 20 characters long. An object of the type Namelist can hold

up to 10 names. You work with a 2-dim array of char.

Member data and methods:

The class has an array of 10 arrays of 21 char:

char list[10][21];

(Because a name can be 20 char long).

It has a data member that keeps track of how many names are in the

list. You can add more data members to the class if you want.

* The class has a constructor that initializes the object to empty.

* It has a method void add(char name[]) that adds name to the list

? if name is not already in the list, otherwise it does nothing.

? Also,if the list as already full, it does nothing.

* It has a method int contain(char name[]) that checks if the name

? is in the list. If yes the method returns 1, otherwise 0.

* It has a method int numNames() that tells how many names are in

? the list.

* It has a method void input() that reads one name from stdin, then

? if the name is not in the list, it adds it, otherwise does nothing.

* It has a method void output(), that prints the whole list to stdout.

All data members must be private, all methods public.

You have to #include <string.h> and work with the function strcmp(),

to find if two strings are equal.

In main() declare a Namelist object, read several names from a

file using redirection and then print out the list. Make your own

input file so that some names in the input file occur more than once,

so that you can test if such names are read in only once. Also, make

the input file so long that the add() method will not add any more

names to Namelist.

Input through redirection:

The program code is written like reading from the keyboard. But

when you run the program you type after the executable: < "file",

"file" is the name of your data file. This replaces the keyboard

input with your file.

Turn in online of your program source

code, and your input file of names and a sample run with that file.
AnswerRe: hi i need this program immediately in c++ Pin
Wes Aday10-May-09 6:29
professionalWes Aday10-May-09 6:29 
AnswerRe: hi i need this program immediately in c++ Pin
David Crow10-May-09 7:05
David Crow10-May-09 7:05 
AnswerRe: hi i need this program immediately in c++ Pin
Hamid_RT10-May-09 8:31
Hamid_RT10-May-09 8:31 
GeneralRe: hi i need this program immediately in c++ Pin
Stuart Dootson10-May-09 9:28
professionalStuart Dootson10-May-09 9:28 
AnswerRe: hi i need this program immediately in c++ Pin
CPallini10-May-09 11:45
mveCPallini10-May-09 11:45 
GeneralRe: hi i need this program immediately in c++ Pin
«_Superman_»10-May-09 16:37
professional«_Superman_»10-May-09 16:37 
GeneralRe: hi i need this program immediately in c++ Pin
CPallini10-May-09 21:22
mveCPallini10-May-09 21:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.