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

Reputation: 4414 Guru
Group:
Mentors
Active Posts:
14,663 (7.76 per day)
Joined:
25-December 09
Profile Views:
72,283
Last Active:
User is online 23 minutes ago
Currently:
Viewing Topic: Linked List Help

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: Linked List Help

    Posted 27 Feb 2015

    So your server at school doesn't have gdb installed? Since you're a teacher if it isn't installed you should contact the IT department to see about getting it installed.

    By the way you're going to need to rethink your program a bit, it looks like all of those "rooms" depend on the other rooms existing.

    Jim
  2. In Topic: Linked List Help

    Posted 27 Feb 2015

    I'd say you need to start by increasing your compiler warning level. Look at the messages I got when I tried to compile your code:

    Quote

    main.cpp|6|warning: ‘struct Room’ has pointer data members [-Weffc++]|
    main.cpp|6|warning: but does not override ‘Room(const Room&)’ [-Weffc++]|
    main.cpp|6|warning: or ‘operator=(const Room&)’ [-Weffc++]|
    main.cpp||In constructor ‘Room::Room(Room*, Room*, Room*, Room*, std::string)’:|
    main.cpp|14|warning: ‘Room::north’ should be initialized in the member initialization list [-Weffc++]|
    main.cpp|14|warning: ‘Room::south’ should be initialized in the member initialization list [-Weffc++]|
    main.cpp|14|warning: ‘Room::east’ should be initialized in the member initialization list [-Weffc++]|
    main.cpp|14|warning: ‘Room::west’ should be initialized in the member initialization list [-Weffc++]|
    main.cpp|14|warning: ‘Room::text’ should be initialized in the member initialization list [-Weffc++]|
    main.cpp||In function ‘int main()’:|
    main.cpp|29|warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]|
    main.cpp|29|warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]|
    main.cpp|31|warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]|
    main.cpp|31|warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]|
    main.cpp|32|warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]|
    main.cpp|32|warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]|
    main.cpp|32|warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]|
    main.cpp|33|warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]|
    main.cpp|34|warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]|
    main.cpp|35|warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]|
    main.cpp|36|warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]|
    main.cpp|37|warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]|
    main.cpp|37|warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]|
    main.cpp|37|warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]|
    main.cpp|37|warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]|
    main.cpp|29|warning: ‘LivingRoom’ may be used uninitialized in this function [-Wmaybe-uninitialized]|
    main.cpp|29|warning: ‘Office’ may be used uninitialized in this function [-Wmaybe-uninitialized]|
    main.cpp|30|warning: ‘Garden’ may be used uninitialized in this function [-Wmaybe-uninitialized]|
    main.cpp|30|warning: ‘Dungeon’ may be used uninitialized in this function [-Wmaybe-uninitialized]|
    main.cpp|30|warning: ‘DiningRoom’ may be used uninitialized in this function [-Wmaybe-uninitialized]|
    main.cpp|32|warning: ‘Cemetery’ may be used uninitialized in this function [-Wmaybe-uninitialized]|
    main.cpp|33|warning: ‘GreenHouse’ may be used uninitialized in this function [-Wmaybe-uninitialized]|
    main.cpp|36|warning: ‘Exit’ may be used uninitialized in this function [-Wmaybe-uninitialized]|
    ||=== Build finished: 0 errors, 31 warnings (0 minutes, 1 seconds) ===|


    Quote

    No, I don't have a debugger on this computer.

    Why not? What operating system and compiler are you using?


    Jim
  3. In Topic: I have problem with this program interfacing temp sensor with pic

    Posted 27 Feb 2015

    Quote

    it says BUILD FAILED i dont know y?

    Since the non-standard itoa() function doesn't seem to be supported by your compiler I would recommend you consider using sprintf() instead.


    Jim
  4. In Topic: Columns and Rows for Loops

    Posted 26 Feb 2015

    Well what have you tried? You seem to know that you want only four numbers to be on one line, so how do you think you can accomplish this feat?

    Jim
  5. In Topic: C: Analysis of code

    Posted 26 Feb 2015

    Agreed, closing.

    You can open a new topic. Post your correctly formatted code inside code tags and ask specific questions about specific lines, but no one is going to explain that code line by line.

    Jim

My Information

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

Contact Information

E-mail:
Private

Comments

Page 1 of 1
  1. Photo

    modi123_1 Icon

    17 Nov 2014 - 08:11
    I like brocken's comment "I don't know much about coding, but it would be really easy".
    Heh.. I don't know anything about the topic, but I know it is easy.
    Riiiiiiiiiight.
  2. Photo

    brockenglass101 Icon

    22 Oct 2014 - 02:34
    I know that this isn't what this site is for but many people in the pc gaming comunity have been looking for screen magnification program that would zoom in on the center of the screan rather then the cursor (turned on and off with a hotkey). Now, I am not going to lie, I don't know much about coding, but it would be really easy to make program like this one.
    I hope you will find ...
  3. Photo

    KnifeTea Icon

    11 May 2014 - 05:55
    thanks for the help Jim!
  4. 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