Search:

Type: Posts; User: Foxel

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    368

    I don't wanna be a dick, but I feel teased if you...

    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...
  2. Replies
    15
    Views
    368

    Please read entirely my question before answering...

    Please read entirely my question before answering ;)
  3. Replies
    15
    Views
    368

    As I said in the question, I have already tried...

    As I said in the question, I have already tried but nothing changes. It only works if I use an online compiler like Dcoder​
  4. Replies
    15
    Views
    368

    As I said in the question, I expected a print of...

    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...
  5. Replies
    15
    Views
    368

    None of these work... I always get "12" and...

    None of these work... I always get "12" and nothing else
  6. Replies
    15
    Views
    368

    Cout of unsigned char

    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...
  7. Thread: STL problems

    by Foxel
    Replies
    4
    Views
    539

    STL problems

    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...
  8. Thread: Custom libraries

    by Foxel
    Replies
    6
    Views
    275

    Solved! :wink: After two hours I realized that...

    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...
  9. Thread: Custom libraries

    by Foxel
    Replies
    6
    Views
    275

    I created the project in an external folder...

    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...
  10. Thread: Custom libraries

    by Foxel
    Replies
    6
    Views
    275

    Edit: it doesn't work. I include the static...

    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...
  11. Thread: Custom libraries

    by Foxel
    Replies
    6
    Views
    275

    Thank you! It helped a lot. Is there a way to...

    Thank you! It helped a lot.

    Is there a way to set two different default directories for repositories and static libraries?
  12. Thread: Custom libraries

    by Foxel
    Replies
    6
    Views
    275

    Custom 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...
  13. Replies
    12
    Views
    444

    You're right unsigned short method2(const...

    You're right



    unsigned short method2(const string& text = "", unsigned short max = -1){
    unsigned short val;

    while (true)
    {
    cout << text;
  14. Replies
    12
    Views
    444

    It doesn't, because I cleanup the rest of the...

    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...
  15. Replies
    12
    Views
    444

    Which is better among these? unsigned short...

    Which is better among these?


    unsigned short method1(const string& text = "", unsigned short max = -1){
    string ins;
    unsigned short val;

    while (true)
    {
    cout << text;
  16. Replies
    12
    Views
    444

    Thanks all for the precious support! I will...

    Thanks all for the precious support!

    I will implement your suggentions for sure
  17. Replies
    12
    Views
    444

    Thank you very much! I couldn't figure out how...

    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...
  18. Replies
    12
    Views
    444

    Problems with GoTo

    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...
Results 1 to 18 of 19