CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 11 of 11

Threaded View

  1. #1
    Join Date
    May 2003
    Posts
    5

    Completely Stuck !

    Hi all - a few details first...

    I have no background in coding of any sort.

    I did a 1 week course in C++ some 5 weeks ago and have a course assignment to do.

    I started said coursework 4 weeks ago but have had family illness and work issues to deal with since.

    I have to submit the coursework next Monday (May 12).

    I am NOT asking anyone to do it for me !!

    I've started the programming bit and have basically become stuck at what I have to do next. The approach I have taken is to break the programme down into chunks (so I can follow it) rather than write the programme in one go and then try to debug it.

    Problem is - as I haven't looked at it for 4 weeks, I can't remember how I got to this point and really just need a slight nudge to get started again.

    I've attached a .cpp file to show how far I have reached - I need to now add Mystring s2(25) which defines an empty string of 25 chars. I need to provide an appropriate contructor and ensure the first character in the string is null ('\0' - is that right?). There must be space for 26 characters to include the terminating null charatcer. 'len' needs to be set to 25 and 'size' set to 0.

    As I said, I'm NOT looking for anyone to do this for me - I have looked at this for the past 36 hours and seem to be going nowhere! I do have a number of books with me - Smiley's 'Learn to Program C++' seems quite good but doesn't really help me right now.

    I'm sure if I can just get my head into it again, I'll be sort of OK and will make some progress.

    Thank you if you can help.

    Tony
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured