User profile: Yanson

User info
User name:Yanson
Number of posts:858
Latest posts:

Booleans (!cin and op!)?
[code]if (!cin)[/code] If statements take a bool value. If something other than a bool is passed it ...

boost lock_guard
I don't know about boost. Have you considered a simple ifdef? [code]#include <iostream> #include <mu...

Problem with Tic Tac Toe Toggle
[code] if(player = 'X')[/code] this is assignment not equality. It should look more like this [co...

Switch statement
[code]#include <string>[/code]

De-allocation of a pointer does not work properly
[code] ptr=new int; if (ptr==NULL){ cout<<"Memory allocation failure!"<<endl; ...

This user does not accept Private Messages

User: Yanson

  • Public profile