How do i get input from win32 console application? [closed] - c++

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am writing a console application in c++, but the input isn't working. I thought the way to get input in c++ was cin.get() but apparently not, because it isn't working. Or maybe there is a different way in Win32, I have no idea.
I am so confused, can someone please help? Thanks in advance!

You can obtain the input by using cin >> variable
for example.
string str;
cin >> str;

Related

Filling a dynamic array with integers c++ [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 27 days ago.
Improve this question
how to fill a dynamic array with input from the console? Im begginer
and can't understand it.
some help will make my day :|
You can realize this in several ways. Have a look on following post may it will help you..
Using scanf() in C++ programs is faster than using cin?

if/else statement stays in the first condition [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed last year.
Improve this question
No matter the weight I enter, the output is always $3.50; however, it does not make any mistake on java. Can someone tell me what's wrong with it? Thank you.
enter image description here
It's because the first condition weight > 0 is always fulfiled.

how to add number to the end of the string in c++? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I did various implementations but they take a long time
Can anyone give us the best implementation?
For example, add a ten-digit number to the end of a string
I did not find a good answer on the Internet
#include <iostream>
std::string a="string";
long n=1703705707;
a.append(std::to_string(n)); //becomes "string1703705707"

Vector of Ofstream objects cannot be created [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
ofstream out_data1, out_data2;
vector<ofstream> {out_data1, out_data2};
Error image :
Why is this happening? How can I solve it?
If you take a careful look at this link, you will understand that you are trying to copy an ofstream object, and the copy constructor of ofstream is deleted. That is what the error is telling you. You could have simply searched for the error on Google though ;)

How to make a MATLAB function to be run in html? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I've developed a MATLAB code that I think it is useful to be used by researchers. How can I embed it in a website to be used free?
It gets two integers and return a set of integers
Also it is possible to convert it to c++, If it helps.
Thanks
Submit your m-file(s) to Matlab Central File Exchange, this is the perfect place for it.