Ибраги́м
https://stackoverflow.com/questions/6971886/exotic-architectures-the-standards-committees-care-about/6972551#6972551
harsh
problem code-uva 272 ,so i get the logic of program but i'm having doubt in this while(gets(str)) part ,how does this input technique works? instead of using while loop we could have used only gets() to take the input?
harsh
int main(){ char str[1000000]; int i = 0,qut = 0; while(gets(str)){ for(int j = 0;str[j];j++){ if(str[j] == '\"'){ qut++; if(qut%2 == 0)cout << "\'" << "\'"; else cout << "" << ""; } else cout << str[j]; } cout << endl; } return 0; }
Ибраги́м
Ибраги́м
Ибраги́м
Holy shit!
klimi
1000000 bytes right?
Artöm
I gives the right way to read but it doesn't tell the rule
http://unixwiz.net/techtips/reading-cdecl.html
Anonymous
/save reading-cdecl http://unixwiz.net/techtips/reading-cdecl.html
Artöm
Youre welcome
Khaleed
Ayy
Zaym
hi everyone
Zaym
anyone knows how to print the output in mirror mode
Zaym
?
Artöm
Reversed?
Artöm
Reverse each line
A.T
Hello guys
A.T
Can someone suggest good book for learning C
Zaym
it's like flipping the output at y axis
Artöm
Then put lines in array and print it starting from last line
Zaym
Can someone suggest good book for learning C
i'm using the starting out with c++ from control structure through object 9th edition - tony gaddis
Zaym
i already have the array for the words
Artöm
#cppbookguide
He asked C
Anonymous
He asked C
I don't think he knows the difference
Artöm
the output should be like this
Damn, some unicode happens
Artöm
I don't think he knows the difference
Is it your plan to increase C++ popularity?
Artöm
the output should be like this
Then you additionally need translation table, which gives y-mirrored char for given char, mirror all chars in lines array before printing
Artöm
Because useless unicode symbols cant be used with plain char
Artöm
If youre on win, even wchar_t might be not enough
Artöm
No
Artöm
I gave you algo
Artöm
You need to compose those pieces in program
Zaym
will try
Zaym
thanks yea
Dan
Hey! I've been trying to connect to mysql for 4 days already, tried like dozens of solutions on stackoverflow and forums, neither helped me. I am shaking and about to go mad now. Even started to understand some things in CMake. What wrong am I doing? If you be exact, my INCLUDEd header doesn't get implementation, libraries are never connected.
Dan
Dan
Anonymous
Any suggestions for learning STL in C++ how should i began with STL?
Anonymous
And i also wants to learn about using DATABASE With C++ give some suggestions
klimi
https://en.wikipedia.org/wiki/PostgreSQL
Lionel
https://en.wikipedia.org/wiki/PostgreSQL
This SQL based database is langauge specific?
klimi
This SQL based database is langauge specific?
https://en.wikipedia.org/wiki/PostgreSQL#Interfaces
klimi
yeah it was in that link
Lionel
Got it
Anonymous
/rules
Dima
Lol
Anonymous
Lol
NEVER LAUGH IN LEARNING PLACE
Dima
Lol
klimi
lol
Anonymous
Lol
Dima
silly you
Anonymous
A FOOLISH MAN LAUGHS TODAY, CRIES TOMORROW
Dima
A FOOLISH MAN LAUGHS TODAY, CRIES TOMORROW
/warn Cry now (ot + weird caps)
Anonymous
/warn Cry now (ot + weird caps)
You don't understand INDIAN POWER
Anonymous
OT?
Anonymous
OT?
#ot
JOKER
Hey
Dima
Welcome!
JOKER
Thank you
Рома
Help me write the program on C. Enter two vectors of integers from the keyboard. Create new vector from shared elements of the two entered. The new vector should have no element repeats. Print generated vector or display the absence of common elements.
Рома
i don't know how to write this program
Dima
VECTOR in C++ not C
you can create vector in c
Anonymous
Anonymous
you can create vector in c
HOW? UNLESS MAKE OWN DATA TYPE
Dima
HOW? UNLESS MAKE OWN DATA TYPE
/warn I told you not to caps