Search:

Type: Posts; User: Foxel

Search: Search took 0.05 seconds.

  1. Replies
    1
    Views
    3,297

    Sites to share a program

    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...
  2. Replies
    15
    Views
    13,345

    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...
  3. Replies
    15
    Views
    13,345

    Please read entirely my question before answering...

    Please read entirely my question before answering ;)
  4. Replies
    15
    Views
    13,345

    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​
  5. Replies
    15
    Views
    13,345

    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...
  6. Replies
    15
    Views
    13,345

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

    None of these work... I always get "12" and nothing else
  7. Replies
    15
    Views
    13,345

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

    by Foxel
    Replies
    4
    Views
    6,105

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

    by Foxel
    Replies
    6
    Views
    8,694

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

    by Foxel
    Replies
    6
    Views
    8,694

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

    by Foxel
    Replies
    6
    Views
    8,694

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

    by Foxel
    Replies
    6
    Views
    8,694

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

    by Foxel
    Replies
    6
    Views
    8,694

    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...
  14. Replies
    12
    Views
    14,718

    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;
  15. Replies
    12
    Views
    14,718

    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...
  16. Replies
    12
    Views
    14,718

    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;
  17. Replies
    12
    Views
    14,718

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

    Thanks all for the precious support!

    I will implement your suggentions for sure
  18. Replies
    12
    Views
    14,718

    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...
  19. Replies
    12
    Views
    14,718

    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 19 of 20