#define's Profile User Rating: *****

Reputation: 1343 Grandmaster
Group:
Expert
Active Posts:
4,604 (2.26 per day)
Joined:
19-February 09
Profile Views:
42,705
Last Active:
User is offline Yesterday, 07:49 PM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Who Cares
Favorite Gaming Platform:
PC
Your Car:
LandRover
Dream Kudos:
0
Expert In:
C/C++

Latest Visitors

Icon   #define has not set their status

Posts I've Made

  1. In Topic: Issue with token function

    Posted 15 Sep 2014

    Hi, my mistake the index [pos] on Temp is not needed.

    Temp += string[i];
    
    
  2. In Topic: Issue with token function

    Posted 15 Sep 2014

    This won't do what you think because testPtr is an array.

    	cout << *testPtr << endl;
    
    



    You will need to print each element/string in the array.
  3. In Topic: Issue with token function

    Posted 15 Sep 2014

    Hi, pos is not a valid location, I would try adding to the string.

    Temp[pos] += string[i];
    
    
  4. In Topic: Help "error: dereferencing pointer to incomplete type"

    Posted 14 Sep 2014

    Hi, I'm not keen on the variable sensor having the same name as a type albeit a struct.

    Yes, sensor_ioctrl is a function pointer and so is a variable.

    I don't see where you have given us the ic2_client and sensor declarations, I can only guess at the problem. Here is one guess.

    Dereferencing pointer to incomplete type
  5. In Topic: How to add sentinel in for loop

    Posted 11 Sep 2014

    Hi, you can use a break statement to break out of a loop. Do you need two loops?

My Information

Member Title:
Duke of Err
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
Delta Quadrant
Years Programming:
12
Programming Languages:
C,C++,HTML,CSS

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Comments

Page 1 of 1
  1. Photo

    GryphonClaws Icon

    10 Jan 2013 - 01:15
    Thanks #define. I can't believe I missed such a simple detail.
  2. Photo

    raghav.naganathan Icon

    07 Nov 2012 - 20:40
    Dude...before your reputation changes, I would like to tell you that it(729) is a perfect cube :) Cheers :)
Page 1 of 1