Click here to Skip to main content
15,915,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Changing cview's size .. Pin
Anthony_Yio29-Apr-04 23:04
Anthony_Yio29-Apr-04 23:04 
GeneralRe: Changing cview's size .. Pin
AbinThomas29-Apr-04 23:55
AbinThomas29-Apr-04 23:55 
GeneralRe: Changing cview's size .. Pin
David Crow30-Apr-04 3:52
David Crow30-Apr-04 3:52 
GeneralSockets and Active X Pin
shekar_raja29-Apr-04 18:46
shekar_raja29-Apr-04 18:46 
GeneralRe: Sockets and Active X Pin
Jitendra gangwar29-Apr-04 23:21
Jitendra gangwar29-Apr-04 23:21 
GeneralRe: Sockets and Active X Pin
shekar_raja6-May-04 17:51
shekar_raja6-May-04 17:51 
GeneralSQL server Named Instance Pin
vikramlinux29-Apr-04 18:03
vikramlinux29-Apr-04 18:03 
Generallinked list Pin
pedabber29-Apr-04 15:51
pedabber29-Apr-04 15:51 
a character string can be implemented as a linked list of characters.I have to write a C++ class called "Newstring" that uses linked lists to implement the following string operations (in all examples, string1 and string2 are of type Newstring):

string1.concatenate(string2)
concatenates string2 onto the end of string1

string1.concatenate(ch)
concatenates the single character ch to end of string1

string1.display()
displays string1 on standard output (cout)

string1.length()
returns length of string1

string1.substring(string2)
returns 1(true)if string2 is a substring of string1
and 0 (false) otherwise

In implementing this class, i have to write additional, private methods to assist the others and a program to test the class. This is an exercise not a test and it has me confused really bad.They say its a full programming exercise,what does that mean?I am new at this kind of thing ,please help if you can .

ThanksFrown | :(

main( )

{

StringType str1, str2;

char word;



cin>>word;

StringType str3(word);

str2 = str3;

~str3;

str2.Length();

cin>>str1;

Concatanate(str1, str2);

str2.Display();

if (str1 == str2)

cout<<"SAME";

else

cout<<"DIFFERENT";

}
i have an idea how to do it but haven't had any experience with classes.
GeneralRe: linked list Pin
Christian Graus29-Apr-04 16:00
protectorChristian Graus29-Apr-04 16:00 
GeneralRe: linked list Pin
Christian Graus29-Apr-04 17:15
protectorChristian Graus29-Apr-04 17:15 
GeneralRe: linked list Pin
bryce29-Apr-04 20:04
bryce29-Apr-04 20:04 
GeneralFile IO in binary Pin
Leo Smith29-Apr-04 13:16
Leo Smith29-Apr-04 13:16 
GeneralRe: File IO in binary Pin
David Crow30-Apr-04 3:56
David Crow30-Apr-04 3:56 
GeneralFinding Cursor Position Pin
brigham_young29-Apr-04 12:48
brigham_young29-Apr-04 12:48 
GeneralRe: Finding Cursor Position Pin
parths29-Apr-04 15:12
parths29-Apr-04 15:12 
GeneralRe: Finding Cursor Position Pin
Anthony_Yio29-Apr-04 23:07
Anthony_Yio29-Apr-04 23:07 
GeneralWriting to status bar (ignore the one below) Pin
RalfPeter29-Apr-04 11:57
RalfPeter29-Apr-04 11:57 
GeneralRe: Writing to status bar (ignore the one below) Pin
nguyenvhn29-Apr-04 20:21
nguyenvhn29-Apr-04 20:21 
GeneralWriting to status bar Pin
Anonymous29-Apr-04 11:55
Anonymous29-Apr-04 11:55 
Generalunable to get OnClick event of ActiveX Control Pin
Chauhan Chirag29-Apr-04 10:58
Chauhan Chirag29-Apr-04 10:58 
GeneralRe: unable to get onclick event of ActiveX Control Pin
f6429-Apr-04 11:07
f6429-Apr-04 11:07 
GeneralRe: unable to get onclick event of ActiveX Control Pin
Chauhan Chirag29-Apr-04 11:12
Chauhan Chirag29-Apr-04 11:12 
GeneralRe: unable to get onclick event of ActiveX Control Pin
f6429-Apr-04 11:30
f6429-Apr-04 11:30 
Generalusing sscanf Pin
act_x29-Apr-04 10:27
act_x29-Apr-04 10:27 
GeneralRe: using sscanf Pin
Rafael Fernández López29-Apr-04 10:35
Rafael Fernández López29-Apr-04 10:35 

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.