1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

n00b need help

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

  1. jzman

    jzman New Member

    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