Click here to Skip to main content
15,888,320 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading a specific word/phrase from a line Pin
Patrick Etc.24-Apr-07 6:00
Patrick Etc.24-Apr-07 6:00 
QuestionHow to impose Expire Date on MS Office files? [modified] Pin
sachinkalse23-Apr-07 17:21
sachinkalse23-Apr-07 17:21 
AnswerRe: How to impose Expire Date on MS Office files? Pin
Russell Jones24-Apr-07 0:04
Russell Jones24-Apr-07 0:04 
GeneralRe: How to impose Expire Date on MS Office files? [modified] Pin
sachinkalse13-Jun-07 16:36
sachinkalse13-Jun-07 16:36 
QuestionVery basic help with C++ linker/logic errors Pin
wertyou23-Apr-07 17:05
wertyou23-Apr-07 17:05 
AnswerRe: Very basic help with C++ linker/logic errors Pin
Patrick Etc.23-Apr-07 17:27
Patrick Etc.23-Apr-07 17:27 
GeneralRe: Very basic help with C++ linker/logic errors Pin
wertyou23-Apr-07 17:37
wertyou23-Apr-07 17:37 
GeneralRe: Very basic help with C++ linker/logic errors Pin
Patrick Etc.23-Apr-07 17:45
Patrick Etc.23-Apr-07 17:45 
wertyou wrote:
43 no match for 'operator*' in 'age*2'


Whoops. Missed this. age needs to be declared as an int; you're declaring it as a string. cin will do the work for you of converting the input to the correct type. If it happens that the input can't be converted to an integer, the value will be undefined and you'll likely get garbage when you do the multiplication (this depends on the compiler - some compilers will default the int to 0 for you, but don't depend on that behavior).

What that error is telling you is that there is no 'multiply' operator defined between a string and an integer, which is true.


wertyou wrote:
48 overloaded function with no contextual type information
48 missing'>' to terminate the template argument list
48 could not convert 'count<5>' to 'bool'
48 no post-increment operator for type


Simple - the 'count' variable isn't defined anywhere. Simply define an 'int count;' somewhere.

See if that takes care of lines 55 and 57 also.


wertyou wrote:
Also, could you explain how to arrive at the answer of 9 from this expression?
29 >= 25 ? 7 + 2 : 14 - 9


That's called 'ternary' notation - the stuff before the ? is evaluated to true or false, and if it is true, the stuff between the ? and : is returned; if it evaluates to false, the stuff after the : is returned.

In this case, 29 is indeed greater than or equal to 25, so the operation returns "7 + 2" which equals 9.


------------
Cheers,
Patrick

GeneralRe: Very basic help with C++ linker/logic errors Pin
wertyou23-Apr-07 18:04
wertyou23-Apr-07 18:04 
GeneralRe: Very basic help with C++ linker/logic errors Pin
Patrick Etc.23-Apr-07 18:27
Patrick Etc.23-Apr-07 18:27 
GeneralRe: Very basic help with C++ linker/logic errors Pin
wertyou23-Apr-07 18:42
wertyou23-Apr-07 18:42 
GeneralRe: Very basic help with C++ linker/logic errors Pin
Patrick Etc.23-Apr-07 18:45
Patrick Etc.23-Apr-07 18:45 
GeneralRe: Very basic help with C++ linker/logic errors Pin
wertyou24-Apr-07 14:53
wertyou24-Apr-07 14:53 
GeneralRe: Very basic help with C++ linker/logic errors Pin
Patrick Etc.24-Apr-07 15:09
Patrick Etc.24-Apr-07 15:09 
GeneralRe: Very basic help with C++ linker/logic errors Pin
wertyou24-Apr-07 15:30
wertyou24-Apr-07 15:30 
GeneralRe: Very basic help with C++ linker/logic errors Pin
Patrick Etc.24-Apr-07 15:49
Patrick Etc.24-Apr-07 15:49 
QuestionHow to enable internet explorer's "Disable script debugging option" thru code? Pin
engsrini23-Apr-07 16:25
engsrini23-Apr-07 16:25 
AnswerRe: How to enable internet explorer's "Disable script debugging option" thru code? Pin
Christian Graus23-Apr-07 16:41
protectorChristian Graus23-Apr-07 16:41 
GeneralRe: How to enable internet explorer's "Disable script debugging option" thru code? Pin
engsrini23-Apr-07 17:06
engsrini23-Apr-07 17:06 
Questionneed your help about datagridview Pin
phantanagu23-Apr-07 16:05
phantanagu23-Apr-07 16:05 
QuestionAppend WMV Files Pin
Muhammad Chitrali23-Apr-07 11:48
Muhammad Chitrali23-Apr-07 11:48 
AnswerRe: Append WMV Files Pin
Patrick Etc.23-Apr-07 14:40
Patrick Etc.23-Apr-07 14:40 
QuestionProblem with execute Stored Procedure from My app. Pin
hdv21223-Apr-07 11:05
hdv21223-Apr-07 11:05 
AnswerRe: Problem with execute Stored Procedure from My app. Pin
Colin Angus Mackay23-Apr-07 11:43
Colin Angus Mackay23-Apr-07 11:43 
AnswerRe: Problem with execute Stored Procedure from My app. Pin
Guffa23-Apr-07 13:54
Guffa23-Apr-07 13: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.