n00b need help

Discussion in 'C' started by jzman, Jan 5, 2008.

  1. jzman

    jzman New Member

    Joined:
    Jan 5, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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:
    Code:
    #include <iostream>
    using namespace std;
    
    int main(){
    	int num = 2;
    	const char * a ;
    	a = "COLOR" && num ;
    	system(a);
    	system("PAUSE");
    	return 0;
    }
     
    Last edited by a moderator: Jan 5, 2008

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice