Похожие чаты

Hi, I have some constant data like: { key : {

anotherKey : value } } how can i implement this with c? something like a dictionary.

7 ответов

8 просмотров

it looks like json, you want to write a json parser?

Ajith- Автор вопроса
Manav | avoid unnecessary messaging me
it looks like json, you want to write a json parse...

No. I have some data pair. like if a =1 and b=2 => c=3 and a=2 and b=2 => c=4. something like that

well it would be a bit tedious to write one, there already json libs that do that. You might want to take a look at them if you just want a json parser and don't care about implementing it

Ajith- Автор вопроса
Ajith
No. I have some data pair. like if a =1 and b=2 =...

so when i get the value of a and b i should be able to get the value of c

Ajith- Автор вопроса

Похожие вопросы

Обсуждают сегодня

А случайно нет ли в паскале штатной возможности передать указатель и количество туда где array of в качестве аргумента?
zamtmn
25
@LGCYMan @JustinKKW Q/A List 1. this part confuses me on #8: "From there, a bridge between erc20 LGXY and erc20 LGXY will be out once that swap is closed." does this mean ...
Sig | LGCY | BattleVerse L1 | BitWin
1
How do I get FrxEth? Need it to execute a contract
Abdullah $BTON
18
Did @Beeker really get banned? That's ridiculous. He's one of the few left here with half a brain and you might not always like his narrative @dgb_ycagel , but he often keeps ...
Leroy Gerrits
1
Maine b!nance se wazirx mein 200$ deposit kiya and usdt/inr pair mein sell krdiya 1% tds kata and maine inr withdrawal krliya , ab usme 30% tax dena hoga kya?
Xanime
12
Anyone here suffers from unexplained aural migraines, who would be up for talking for a bit? Doesn't *have* to be aural, but I am not asking about headaches, I mean actual mi...
Martin Rys
57
Добрый день ,ребята! А подскажите пожалуйста. Есть вот у меня макбук 13 2015 года,но на нём разбит экран,всё остальное в идеале. Стоит последняя МакОсь Монтерей 12. Можно ли ...
AR
7
async login(req: Request, res: Response, next: NextFunction): Promise<void> { try { const { errors, input } = await RequestValidator(LoginRequest, req.body...
. .
1
A couple thoughts from a random internet stranger: 1. If you want this project to gain traction you cannot keep being negative. If I just came here after finding out about Kd...
Eric Wild
46
Я тут за тем, чтобы задать вопрос, так как не знаю ассемблер, учу с/с++. Короче, насколько дорога операция перехода в функцию при ее вызове? Дело в том, что в с++ есть макросы...
Максим Рябцев
12
Карта сайта