Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   n00b need help (http://www.go4expert.com/forums/n00b-help-t8115/)

jzman 5Jan2008 07:34

n00b need help
I am new to programming in C++.
I have came across a problem and i was wondering if someone could help me out.
I have this code <posted at the bottom> and when i compile it it says:
'=' : cannot convert from 'bool' to 'const char *

heres the code:

#include <iostream>
using namespace std;

int main(){
        int num = 2;
        const char * a ;
        a = "COLOR" && num ;
        return 0;

All times are GMT +5.5. The time now is 22:45.