Talula
Can anyone tell me how to learn stl in c++
Why do you say stupid things, I mean really... how in the world anyone gonna help you learning something, we are on "Internet".
Anonymous
I mean resources buddy
Talula
www.google.com
Talula
I mean resources buddy
That is your resource... FFS
Ariana
www.duckduckgo.com
Anonymous
Hi
Farhan
Read different types of data from standard input, process them as shown in output format and print the answer to standard output. Input format: First line contains integer N. Second line contains string S. Output format: First line should contain N x 2. Second line should contain the same string S
Mihail
We aren't here to do your assignment
Farhan
#include <iostream> using namespace std; int main() { int n; cin >> n*2; // Reading input from STDIN cout <<n ; // Writing output to STDOUT cout << "helloworld"
Dima
That assignment lol, any kiddo would complete
Farhan
That assignment lol, any kiddo would complete
#include <iostream> using namespace std; int main() { int n=5; cin >> n; cout << n*2 << endl; cout << "helloworld"; return 0; }
Farhan
i got it .
Farhan
think me as kid only
Farhan
False.
#include <iostream> using namespace std; int main() { int N; char str[100]; cin>>N; cin >> str; cout <<(N*2)<< endl; cout <<str<<endl; return 0; }
Григорий
Better.
Григорий
But the length of the string may be >100.
Farhan
ok
Mihail
If it is C++ use C++
Mihail
Which it clearly is
Farhan
then why you asked?
Mihail
then why you asked?
Because you use c strings
Mihail
And you shouldn't
Farhan
I DONT KNOW WHAT IS C STRING WHAT IS C++
Farhan
i knw its working
BinaryByter
I DONT KNOW WHAT IS C STRING WHAT IS C++
a c string is an array of chars
BinaryByter
a "c++ string" is a std::string
Mihail
#include <iostream> int main() { int n; std::string str; std::cin >> n; std::cin >> str; std::cout << n * 2 << '\n'; std::cout << str << '\n'; return 0; }
Mihail
Also don't use caps unless you want to get warned
Farhan
ok thanks
Farhan
can we use std::string without #include statement ??
BinaryByter
string might be included in iostream already
Mihail
Yes
BinaryByter
`` ` your code ```
Farhan
pc
Mihail
Ctrl + Shift + m
klimi
asd
klimi
whew
klimi
thats cool
klimi
i just use `
Farhan
nice
Ariana
``` your code ```
Ariana
rip apple
Ariana
apple
Dima
Lol
Dima
apple
My meter shows 6538
Mihail
apple
Monospace tho
BinaryByter
apple
you should stop buying shit
Mihail
Am I missing the joke?
Dima
you should stop buying shit
Are you talking about new cxx standards?
BinaryByter
Lol no
Ariana
you should stop buying shit
i got for free Y(^_^)Y
BinaryByter
cxx 20 is great :D
Dima
OwO
BinaryByter
i got for free Y(^_^)Y
Your bunny ears detached from your scalp
Renjith
/cbook
correctmaninwrongplace
one question, containers like vector<int> and stack<int> in case of being empty, return 0 as int?
correctmaninwrongplace
They return 0 if you call size() as size_t
i mean if i call stack.top() or vector[0] sorry for omitting that
Ajeesh Saju
Can you provide me some pdf notes to easliy understand c++
Dima
You could easily read the rules before asking that
Pras
/cbook
/cbook
klimi
/cbook
#cbook
Anonymous
It doesnt work
Wht compiler this
14•08
😂😂😂
Anonymous
😂😂😂
Why lol bro
klimi
😂😂😂
Ye why lol
Anonymous
Anonymous
klimi
Wht compiler this
I think it's mingw gcc
klimi
Codeblocks
That's not compiler