Ariana
Anonymous
as in?
i think he is an admin
Anonymous
he has a c++ web library
I_Interface
what the fuck
Dima
What the hell.. can you be more specific? Is it even cxx related
Dima
I know, but this task is a garbage
Dima
Sanket
Dima
Too much of code, be more specific please
theFlash
Sorry guys i just thought you guys are using json in c++
Dima
we do, but this..
theFlash
we do, but this..
Did you tried reading it ?
theFlash
I just explained in brief so that my problem will be clear
theFlash
Please once try reading it, you will get what i want to achieve Thanks
theFlash
Hi guys , i need to develop function that generate a n no of jsons. here iam thinking to pass 2 values for the function. 1) first parameter iam will pass is input.json input.json ---------- { "name" : "x" , "id" : "x" , ------------- ------------- ------------- ------------- "bank" : { "name" : "x" , "id" : "x" , ------ ------ ------ ------ } "college" : { "name" : "x" , "id" : "x" , ----------- ----------- ------------ ----------- , "dept" : { "name" : "x" , "id" : "x" , ----------- ----------- ------------ } } } 2) i dont know it is the efficient way of giving below input as 2nd parameter , if there is any better way please let me know in second parameter/input and i need to some how specify the values for name and id keys for the objects of the json above . eg : i am thinking to give input an HashMap<String , List<String>> like below , size of every list below is same [because i want to generate that many no of jsons ] {name = ["x","y" ,-------] , id = ["1","2",--------] , bank.name = ["a","b",-------] , bank.id = ["101","102",---------] , college.name = ["a clg","b clg",---] , college.id = ["111","222",---] , college.dept.name = ["cse","ece",-------] , college.dept.id = ["201","202",----------]} -> as there are n [size of list ] no of indexes for values pair for correspoding key. using each index value i need to generate one json like wise i need to generate jsons for all indexes **) if there is any better way of giving input please let me know. Output --------- json 1 { "name" : "x" , "id" : "1" , ------------- ------------- ------------- ------------- "bank" : { "name" : "a" , "id" : "101" , ------ ------ ------ ------ } "college" : { "name" : "a clg" , "id" : "111" , ----------- ----------- ------------ ----------- , "dept" : { "name" : "cse" , "id" : "201" , ----------- ----------- ------------ } } } --------------------------------- json 2 { "name" : "y" , "id" : "2" , ------------- ------------- ------------- ------------- "bank" : { "name" : "b" , "id" : "102" , ------ ------ ------ ------ } "college" : { "name" : "b clg" , "id" : "222" , ----------- ----------- ------------ ----------- , "dept" : { "name" : "ece" , "id" : "202" , ----------- ----------- ------------ } } } please let me know how should i impliment above problem. Thank you.
theFlash
Btw if it is against rules let me know i will delete this message
Dima
Na it isn’t
Dima
just too long code snippet
Francisco
Hi guys , i need to develop function that generate a n no of jsons. here iam thinking to pass 2 values for the function. 1) first parameter iam will pass is input.json input.json ---------- { "name" : "x" , "id" : "x" , ------------- ------------- ------------- ------------- "bank" : { "name" : "x" , "id" : "x" , ------ ------ ------ ------ } "college" : { "name" : "x" , "id" : "x" , ----------- ----------- ------------ ----------- , "dept" : { "name" : "x" , "id" : "x" , ----------- ----------- ------------ } } } 2) i dont know it is the efficient way of giving below input as 2nd parameter , if there is any better way please let me know in second parameter/input and i need to some how specify the values for name and id keys for the objects of the json above . eg : i am thinking to give input an HashMap<String , List<String>> like below , size of every list below is same [because i want to generate that many no of jsons ] {name = ["x","y" ,-------] , id = ["1","2",--------] , bank.name = ["a","b",-------] , bank.id = ["101","102",---------] , college.name = ["a clg","b clg",---] , college.id = ["111","222",---] , college.dept.name = ["cse","ece",-------] , college.dept.id = ["201","202",----------]} -> as there are n [size of list ] no of indexes for values pair for correspoding key. using each index value i need to generate one json like wise i need to generate jsons for all indexes **) if there is any better way of giving input please let me know. Output --------- json 1 { "name" : "x" , "id" : "1" , ------------- ------------- ------------- ------------- "bank" : { "name" : "a" , "id" : "101" , ------ ------ ------ ------ } "college" : { "name" : "a clg" , "id" : "111" , ----------- ----------- ------------ ----------- , "dept" : { "name" : "cse" , "id" : "201" , ----------- ----------- ------------ } } } --------------------------------- json 2 { "name" : "y" , "id" : "2" , ------------- ------------- ------------- ------------- "bank" : { "name" : "b" , "id" : "102" , ------ ------ ------ ------ } "college" : { "name" : "b clg" , "id" : "222" , ----------- ----------- ------------ ----------- , "dept" : { "name" : "ece" , "id" : "202" , ----------- ----------- ------------ } } } please let me know how should i impliment above problem. Thank you.
No one will read that
Dima
theFlash
just too long code snippet
Yeah I thought the problem need that explanation so
Pavel
Guys, can you suggest a chat about openGL or something similar? I want to find a combination of SDL2/SDL2_Image/glew/glm versions that works on windows, I've already spent several days trying to google or figure it out but something always doesn't fit
theFlash
just too long code snippet
I want to develop a function which i can generate n no of jsons
theFlash
Hi guys , i need to develop function that generate a n no of jsons. here iam thinking to pass 2 values for the function. 1) first parameter iam will pass is input.json input.json ---------- { "name" : "x" , "id" : "x" , ------------- ------------- ------------- ------------- "bank" : { "name" : "x" , "id" : "x" , ------ ------ ------ ------ } "college" : { "name" : "x" , "id" : "x" , ----------- ----------- ------------ ----------- , "dept" : { "name" : "x" , "id" : "x" , ----------- ----------- ------------ } } } 2) i dont know it is the efficient way of giving below input as 2nd parameter , if there is any better way please let me know in second parameter/input and i need to some how specify the values for name and id keys for the objects of the json above . eg : i am thinking to give input an HashMap<String , List<String>> like below , size of every list below is same [because i want to generate that many no of jsons ] {name = ["x","y" ,-------] , id = ["1","2",--------] , bank.name = ["a","b",-------] , bank.id = ["101","102",---------] , college.name = ["a clg","b clg",---] , college.id = ["111","222",---] , college.dept.name = ["cse","ece",-------] , college.dept.id = ["201","202",----------]} -> as there are n [size of list ] no of indexes for values pair for correspoding key. using each index value i need to generate one json like wise i need to generate jsons for all indexes **) if there is any better way of giving input please let me know. Output --------- json 1 { "name" : "x" , "id" : "1" , ------------- ------------- ------------- ------------- "bank" : { "name" : "a" , "id" : "101" , ------ ------ ------ ------ } "college" : { "name" : "a clg" , "id" : "111" , ----------- ----------- ------------ ----------- , "dept" : { "name" : "cse" , "id" : "201" , ----------- ----------- ------------ } } } --------------------------------- json 2 { "name" : "y" , "id" : "2" , ------------- ------------- ------------- ------------- "bank" : { "name" : "b" , "id" : "102" , ------ ------ ------ ------ } "college" : { "name" : "b clg" , "id" : "222" , ----------- ----------- ------------ ----------- , "dept" : { "name" : "ece" , "id" : "202" , ----------- ----------- ------------ } } } please let me know how should i impliment above problem. Thank you.
If anyone interested to solve this problem Please try to understand the requirement by reading
Afees
Malayali
👍❤
klimi
Hey 😊
Oh hey
Dima
/ban Anyone need ban and warn courses in English as the rules were written only in 0$
Dima
yoav
o am going buy this domain
Dima
Too late;
KK
can anyone explain why here in this programe single & opertor is used?
KK
#include <stdio.h> int main() { int c; while ( (c=getchar()) != EOF ){ if (c >= 65 & c <= 90) c += 32; else if (c >= 97 &c <= 122) c -= 32; putchar(c); } return 0; }
Dima
one moment
tak tak
Dima
bylo nebylo... segfault
KK
😗😗😗😗
klimi
https://www.tutorialspoint.com/cplusplus/cpp_operators.htm
klimi
so its bitwise and
KK
tysm
klimi
no problem.
Tushar
How many warnings do I have remaining?
Dima
Ohh man.. hot edge!
Dima
you are the lucky one.
Dima
You was warned when warning limit was set to 3.
Tushar
Oh.. thank god.
Si
In my code I wrote integer for input but it doesn't work until I inter a string why that ?
Si
Can I paste the code so you could see where is the mistake ?
Si
yes but use pastebin.com
It doesn't work
joel
it should
Dima
hastebin.com
Francisco
Stanislav
It doesn't work
gist.github.com for you pleasure
Rohan
How i can initialize size of an array at run time??
Rohan
I want to declare 'N' size of array
Anonymous
Use pointers instead
correctmaninwrongplace
In C pointers, malloc and calloc In C++ imo use std::vector
Rohan
Syntax please
Rohan
Or an example
Mat
Or an example
Search on the net
Anonymous
Guys,help me up. Data structure is really screwing me badly. 😔😔😔
Anonymous
It's kinda feel like middle of nowhere.
Anonymous
It never is
Actually it is When you know size of a container at compile-time and you don't need to change the size
Anonymous
But when dynamic allocations are necessary, std::vector is not overkill, but sometimes boost::small_vector or boost::stack_vector are better choice
theFlash
Input : you will be given HashMap and 3 String's 1)HashMap : {name=x, id=x, bank={name=x, id=x}, college={name=x, id=x, dept={name=x, id=x}}} 2) i : String college.dept.name = "cse" ii : String college.name = "abc College" iii : String bank.name = "xyz bank" Output : need to generate HashMap below HashMap : {name=x, id=x, bank={name=xyz bank, id=x}, college={name=abc college, id=x, dept={name=cse, id=x}}}
Ибраги́м
how to rotate this in qtcreator
That's QtDesigner in QtCreator. Look for tabPosition on the Right Hand Side and change it from East to North
itsmanjeet
That's QtDesigner in QtCreator. Look for tabPosition on the Right Hand Side and change it from East to North
👆 i want to rotate the fonts like this i searched it on google , but showing how to code it , not ho w to do it only with desginer
Ибраги́м