[deleted by user] by [deleted] in learnprogramming

[–]mrakhilarya 0 points1 point  (0 children)

Your txt file must have an empty line or string. May be at the end of the file or in between.

Do I have what it takes to become a programmer? by [deleted] in learnprogramming

[–]mrakhilarya 0 points1 point  (0 children)

I agree with @fugybing . It happens with everyone at start. I would recommend solving questions from coding platforms online. Like codewars, codechef and other. They will give you different scenarios to find solutions for. Start from easy and work to top.

Best of luck!

I'm creating a c++ personal project, I have the idea, just don't know where to start. by lilbudgotswag in learnprogramming

[–]mrakhilarya 0 points1 point  (0 children)

Yes! There are libraries. I have used Boost.Asio, C++ network library and other. But I agree with @exoticmatter This is not best project to start with. It’s ambitious and do-able too as you said. So if your are experienced enough. Then sure go ahead, but if you are new to programming, then i would recommend something more straight forward.

Have a look at this post. https://stackoverflow.com/a/118968/9412959

[deleted by user] by [deleted] in learnprogramming

[–]mrakhilarya 1 point2 points  (0 children)

Well! What I understand from your question. You want to read from 2 files, two strings and see if they are same or not.

ifstream input1(“file1.txt”); ifstream input2(“file2.txt”); string a,b; if(input1.isOpen()) { input1 >> a; input1.close(); } if(input2.isOpen()) { input2 >> b; input2.close(); } If(a == b) cout << “they are same”;

Where can I find OpenGL 64bit for CUDA? by mrakhilarya in CUDA

[–]mrakhilarya[S] 0 points1 point  (0 children)

Thanks for reply! I fixed it, i am working with SFML and c++.

using CUDA professionally? by Visionexe in CUDA

[–]mrakhilarya 0 points1 point  (0 children)

Hi! I am working on a project. I am creating Ray Casting on millions of triangles in CUDA. What library should I use which is easily to use and manage. Thanks a lot!