을 컴파일 <문자 [], []는 char>, 나는 CSS 코드에 말대꾸 코드를 변환 할. 나는 그 값에 사스의 변수에 맞게, 문자 배열의지도와 함께 일하고 싶어. 어떤 이유로지도에 값을 삽입 할 수 없습니다.지도에서 플렉스 C 나던 내가 리눅스에 vmPlayer에 플렉스 (.lex이다 파일) 작업입니다
%{
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <map>
#include<iostream>
std::map<char[20], char[20]> dictionary; //MY DICTIONARY,GOOD
%}
%%
s dictionary.insert(std::pair<char[20], char[20]>("bb", "TTTT")); //PROBLEM
%%
가 컴파일하고 나에게 오류 제공하지 않습니다 일반적으로
hello.lex:30:84: error: no matching function for call to ‘std::pair<char
[20], char [20]>::pair(const char [3], const char [5])’
ine(toReturn); dictionary.insert(std::pair<char[20], char[20]>("bb",
"TTTT"));
, 나는 C 라이브러리 내가 플렉스에 쉽게 사용하고 플렉스 사용하여 더 많은 비린내가있는 수 있는지 모르겠습니다. 구문에 문제가 있습니까? 고맙습니다!
이 C++ 코드가 아닌 C 코드입니다. 그래서 당신은 일을했던 C++ –