为什么argc用printf可以打印出来,用cout就不可以?
#include<vector>
#include <iostream>
#include <stdio.h>
int main(int argc,char** argv)
{
int con=0;
std::cout<<con<<std::endl;
std::cout<<"c++ "<<agrc<<std::endl;
printf("argc= %d",argc);
}
a.cpp: In function ‘int main(int, char**)’:
a.cpp:8:24: error: ‘agrc’ was not declared in this scope
std::cout<<"c++ "<<agrc<<std::endl;