jimblumberg's Profile User Rating: *****

Reputation: 3845 Guru
Group:
Mentors
Active Posts:
12,395 (7.86 per day)
Joined:
25-December 09
Profile Views:
63,523
Last Active:
User is offline Today, 11:32 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Linux
Favorite Browser:
FireFox
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
50
Expert In:
C/C++

Latest Visitors

Icon   jimblumberg has not set their status

Posts I've Made

  1. In Topic: How do you structure and write a class for text file streams.

    Posted 20 Apr 2014

    Post the complete error messages, exactly as they appear in your development environment.


    Jim
  2. In Topic: Converting a std::wstring to int...

    Posted 20 Apr 2014

    You could also use the stringstream.str() function to reassign the stream to a different string. But don't forget you don't need to use the c_str() member function.

    You may also need to clear any stream errors before you try to reuse the stream.

    Jim
  3. In Topic: A call to a string function to dispaly names in a class not display

    Posted 19 Apr 2014

    When your program encounters a return statement it returns to the calling function, it doesn't execute any other code in that function. Look closely at line 22. That loop will only execute at most one time. Once it encounters the function ends.


    Jim
  4. In Topic: CRC error detection

    Posted 19 Apr 2014

    Please post the code that illustrates what you've tried, and then ask specific questions about the code you provided.


    Jim
  5. In Topic: Creating a variable that stores the # of elements for a dynamic array.

    Posted 18 Apr 2014

    Quote

    you should use fgets(seq,11,stdin); instead of scanf to protect from overflow

    The other option would be to use the width specifier for scanf(), but remember to reserve room for the end of string character.
    char mstring[101];
    scanf("%100s", mstring);
    


    But remember that scanf() stops processing the string when it encounters a white space character, and fgets() extracts and places the end of line character into the string, if there is room.

    Jim

My Information

Member Title:
Age:
Age Unknown
Birthday:
December 6
Gender:

Contact Information

E-mail:
Private

Comments

Page 1 of 1
  1. Photo

    tarmizi_adam2005 Icon

    04 Dec 2013 - 07:15
    Just stopping by to say Hello Jim. I've learned quite a few things from your posts in the c/c++ forum.
Page 1 of 1