I've created some programs in C++ and uploaded them on GitHub, making their own webpage too.
Up to now they have received few visits, so I'd like to advertize them somewhere...
Can you suggest...
Type: Posts; User: Foxel
I've created some programs in C++ and uploaded them on GitHub, making their own webpage too.
Up to now they have received few visits, so I'd like to advertize them somewhere...
Can you suggest...
I don't wanna be a dick, but I feel teased if you ask me something I've already said and, after I point it out, you ask another thing mentioned in the question...
Please read entirely my question before answering ;)
As I said in the question, I have already tried but nothing changes. It only works if I use an online compiler like Dcoder
As I said in the question, I expected a print of "à" (133th UTF-16 symbol), but the same thing happens with any extended ASCII char.
I'm using Visual Studio 2019 on Windows and running it on the...
None of these work... I always get "12" and nothing else
I'm using Visual Studio 2019: why does this command do nothing?
std::cout << unsigned char(133);
It literally gets skipped by my compiler (I verified it using step-by-step debug):
I expected...
I noticed that changing IDE some STL functions may be or may not be accepted as a member of a given library.
For example I can use min() and max() just including <cmath>, but if I change compiler...
Solved! :wink:
After two hours I realized that I didn't link the projects adding a reference (right click on project>Add>Reference>Projects>name)
If you could help me in this I can close...
I created the project in an external folder dedicated to libraries.
I compiled .cpp and .h files without deleting pch.cpp.
I built the library in Build>Build Solution.
I added the project to...
Edit: it doesn't work.
I include the static library into the solution but I get these errors:
Error LNK1120 1 1 unresolved externals
Error LNK2019 1 unresolved external...
Thank you! It helped a lot.
Is there a way to set two different default directories for repositories and static libraries?
I'm making a little mess while creating custom libraries.
I'm using Visual Studio 2019.
I have some libraries that I'm going to use in lots of projects, so I created an external folder called...
You're right
unsigned short method2(const string& text = "", unsigned short max = -1){
unsigned short val;
while (true)
{
cout << text;
It doesn't, because I cleanup the rest of the line, with
cin.ignore(numeric_limits<streamsize>::max(), '\n')
so I think I'll use the second method which works without any further casts or...
Which is better among these?
unsigned short method1(const string& text = "", unsigned short max = -1){
string ins;
unsigned short val;
while (true)
{
cout << text;
Thanks all for the precious support!
I will implement your suggentions for sure
Thank you very much!
I couldn't figure out how to implement a loop without using a boolean variable... So problem solved ;)
Concluding, when should or shouldn't I use GoTo? Are there some cases...
I've coded in C++ since a few months ago and I often found people who recommended me not to use the much hated Goto...
But I haven't found any reason yet!
I know that sometimes it makes you...