Click here to Skip to main content
15,906,097 members
Home / Discussions / C#
   

C#

 
AnswerRe: MaskedTextBox Pin
manasram23-Apr-07 20:26
manasram23-Apr-07 20:26 
GeneralRe: MaskedTextBox Pin
manasram23-Apr-07 21:15
manasram23-Apr-07 21:15 
AnswerRe: MaskedTextBox Pin
Patrick Etc.24-Apr-07 6:18
Patrick Etc.24-Apr-07 6:18 
QuestionMenus at run time [modified] Pin
a_david12323-Apr-07 19:51
a_david12323-Apr-07 19:51 
QuestionExtract ClassName using Regular Expression Pin
nasambur23-Apr-07 19:25
nasambur23-Apr-07 19:25 
QuestionReading a specific word/phrase from a line Pin
zoroyster23-Apr-07 17:25
zoroyster23-Apr-07 17:25 
AnswerRe: Reading a specific word/phrase from a line Pin
Patrick Etc.23-Apr-07 17:31
Patrick Etc.23-Apr-07 17:31 
GeneralRe: Reading a specific word/phrase from a line Pin
xibeifeijian23-Apr-07 18:25
xibeifeijian23-Apr-07 18:25 
GeneralRe: Reading a specific word/phrase from a line Pin
Patrick Etc.23-Apr-07 18:34
Patrick Etc.23-Apr-07 18:34 
GeneralRe: Reading a specific word/phrase from a line Pin
zoroyster23-Apr-07 19:35
zoroyster23-Apr-07 19:35 
GeneralRe: Reading a specific word/phrase from a line Pin
xibeifeijian23-Apr-07 19:44
xibeifeijian23-Apr-07 19:44 
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 

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.