Click here to Skip to main content
14,767,741 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Are there programmers that are currently using machine code and Assembly? Pin
Quantum Robin13-Jan-19 17:39
MemberQuantum Robin13-Jan-19 17:39 
AnswerRe: Are there programmers that are currently using machine code and Assembly? Pin
leon de boer13-Jan-19 17:34
Memberleon de boer13-Jan-19 17:34 
AnswerRe: Are there programmers that are currently using machine code and Assembly? Pin
CPallini13-Jan-19 22:26
mveCPallini13-Jan-19 22:26 
AnswerRe: Are there programmers that are currently using machine code and Assembly? Pin
Joe Woodbury14-Jan-19 7:25
professionalJoe Woodbury14-Jan-19 7:25 
JokeRe: Are there programmers that are currently using machine code and Assembly? Pin
Quantum Robin14-Jan-19 14:52
MemberQuantum Robin14-Jan-19 14:52 
Questionerror: expected identifier before string constant Pin
Vaclav_13-Jan-19 7:28
MemberVaclav_13-Jan-19 7:28 
AnswerRe: error: expected identifier before string constant Pin
Richard MacCutchan13-Jan-19 7:49
mveRichard MacCutchan13-Jan-19 7:49 
GeneralRe: error: expected identifier before string constant Pin
Vaclav_13-Jan-19 8:21
MemberVaclav_13-Jan-19 8:21 
Here is the part in question


class CLASS_I2CIO {
public:
	CLASS_I2CIO();
	CLASS_I2CIO(char Device, int Address);
	CLASS_I2CIO(int width, int length, int height)
		        : m_width(width), m_length(length), m_height(height)
		    {}

	CLASS_I2CIO(char *x1, int y1); // :

this is the one which fails 
	CLASS_I2CIO(char *x1, int y1, int Width, int Height);

private:
    char *device;
    int address;
    int width, height;

public:
	virtual ~CLASS_I2CIO();
	int FileDescriptor = 0;

	// class variables
	__u8 reg;  /* Device register to access */
	__s32 res;
	char buffer[10]= { }; // clear buffer  - was not initialized

GeneralRe: error: expected identifier before string constant Pin
Richard MacCutchan13-Jan-19 23:29
mveRichard MacCutchan13-Jan-19 23:29 
GeneralRe: error: expected identifier before string constant Pin
Stefan_Lang17-Jan-19 0:28
mveStefan_Lang17-Jan-19 0:28 
GeneralRe: error: expected identifier before string constant Pin
Richard MacCutchan17-Jan-19 0:56
mveRichard MacCutchan17-Jan-19 0:56 
GeneralRe: error: expected identifier before string constant Pin
Stefan_Lang17-Jan-19 2:30
mveStefan_Lang17-Jan-19 2:30 
AnswerRe: error: expected identifier before string constant Pin
k505413-Jan-19 9:29
mvek505413-Jan-19 9:29 
AnswerRe: error: expected identifier before string constant Pin
Graham Breach14-Jan-19 0:21
MemberGraham Breach14-Jan-19 0:21 
GeneralRe: error: expected identifier before string constant Pin
Vaclav_14-Jan-19 4:33
MemberVaclav_14-Jan-19 4:33 
GeneralRe: error: expected identifier before string constant Pin
Graham Breach14-Jan-19 5:33
MemberGraham Breach14-Jan-19 5:33 
AnswerRe: error: expected identifier before string constant Pin
Stefan_Lang16-Jan-19 23:38
mveStefan_Lang16-Jan-19 23:38 
GeneralRe: error: expected identifier before string constant Pin
Vaclav_19-Jan-19 19:31
MemberVaclav_19-Jan-19 19:31 
Question(C) Robust code Should an unsigned int array index be tested for "< 0" Pin
HS_C_Student11-Jan-19 4:27
MemberHS_C_Student11-Jan-19 4:27 
AnswerRe: (C) Robust code Should an unsigned int array index be tested for "< 0" Pin
CPallini11-Jan-19 6:25
mveCPallini11-Jan-19 6:25 
GeneralRe: (C) Robust code Should an unsigned int array index be tested for "< 0" Pin
Bram van Kampen12-Jan-19 15:29
MemberBram van Kampen12-Jan-19 15:29 
SuggestionRe: (C) Robust code Should an unsigned int array index be tested for "< 0" Pin
David Crow11-Jan-19 6:40
MemberDavid Crow11-Jan-19 6:40 
GeneralRe: (C) Robust code Should an unsigned int array index be tested for "< 0" Pin
HS_C_Student11-Jan-19 8:17
MemberHS_C_Student11-Jan-19 8:17 
GeneralRe: (C) Robust code Should an unsigned int array index be tested for "< 0" Pin
David Crow11-Jan-19 8:33
MemberDavid Crow11-Jan-19 8:33 
GeneralRe: (C) Robust code Should an unsigned int array index be tested for "< 0" Pin
Joe Woodbury11-Jan-19 12:54
professionalJoe Woodbury11-Jan-19 12:54 

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.