General C++ Programming (Page 3)

I'm learning using string in if statement. but somehow i dont know how to make this to work.
 
#include <iostream> #include<string> using namespace std; int main() { int i; cin>>...
[5 replies] Last: // <--- The "cin" ALWAYS needs a prompt. Hmm. If the program is d... (by seeplus)
detecting a full mouse click all at once
 
Ok, so I am trying to detect a mouse-click, and am stuck detecting both a mouse down and then a mous...
[3 replies] Last: This module works: if (GetAsyncKeyState(VK_LBUTTON)<0) { ... (by technologist)
Two outputs instead of one (1,2)
 
I made a C++ program(link here: https://replit.com/@nikegamerjjjj/NikPoloTerminal?v=1). I have a p...
[23 replies] Last: Also, instead of using >> to obtain username/password, consider using ... (by seeplus)
Is encapsulation necessary in solo projects?
 
I am currently programming a game solo. I have an Object class that has a craftingMenu() member, in ...
[11 replies] Last: So: No I don't see any use for getter and setter. Just for getter. ... (by jonnin)
I was on working something and && is not working properly
 
For my assignment I have to take sets of 3 integers separated by spaces from the user input and dete...
[6 replies] Last: Thanks JLBorges for the correction. :) (by dhayden)
Sending vector of objects in c++ mpi
 
Let say I have a class named Node which makes the Node with x and y coordinate. Then I make a vector...
[6 replies] Last: Thanks (by resabzr)
by eak006
Linked List of Shared Pointers Causes Unknown Infinite Loop
 
Hey guys, I tackled LeetCode problem #82 - Remove Duplicates From Sorted List II: - https://le...
[6 replies] Last: Perhaps I should define a destructor for ListNode class that destroys... (by helios)
by kenpry
Struggle with finishing project
 
So, Im supposed to define the member functions of the class that I created in another .cpp file. I a...
[1 reply] : See https://www.cplusplus.com/articles/Gw6AC542/ (by keskiverto)
by Slyde
Furthering a CPlusPlus Exercise
 
I found these exercises through a search: https://www.cplusplus.com/forum/articles/12974/ I'm down ...
[4 replies] Last: Got it covered in Line 22. But I did change Line 15 int range = max... (by Slyde)
send file using winsock c++
 
I am trying to send a text file from client to server and server should return that text file back t...
[4 replies] Last: I don't quite understand this shunting some file backwards and forward... (by kbw)
MPI Printing result
 
I have a vector of vector and I sent it to all processors. for example mai...
[6 replies] Last: Sending to ALL processors. Note that, despite the MPI_Barrier call, yo... (by lastchance)
Everything is an object...
 
I have been working on my own project for a while, it's an OOP framework around SDL2. I've been foll...
[12 replies] Last: If you need to update a specific member on all objects Thank you fo... (by jonnin)
Ray - Sphere Intersection
 
I have an Assignment due next week, and I need help starting it. I am kind of clueless as to where t...
[12 replies] Last: Tutorial: https://www.weizmann.ac.il/sci-tea/benari/sites/sci-tea.bena... (by JLBorges)
How can i get a array in another class
 
Hello , I created a public array in class A . I want to get this array in class B . so this is ...
[10 replies] Last: You're welcome! (by MikeyBoy)
converting morse code to english
 
Hey guys, i am new to programming and trying to write a program that converts english to morse and v...
[6 replies] Last: Don't worry about it, efficient comes with time and deeper study. The... (by jonnin)
how I can get the variable from a for loop for each iteration
 
Hello , I am really new in C++ development. I need to get the variable of each iteration in a fo...
[8 replies] Last: #include <iostream> int main() { int var1{0}; int var2{0}; ... (by againtry)
create function to retrive data from CSV file
 
Hello , Currently i work on a Qt Application using C++. I am really new in c++ development. I upl...
[6 replies] Last: To extract just one element from a csv file, perhaps: #include <fst... (by seeplus)
E1696 E0020 errors using VS (1,2,3)
 
Hi All I am getting below errors while trying to compile the code in vs. How can I fix it? Should I...
[48 replies] Last: There are too many things possibly you can do for anyone to keep answe... (by kbw)
error LNK2019: unresolved external symbol "public
 
I am trying to build a class for mpi send and receive. I made this class without using template. now...
[9 replies] Last: yes it's returning the type if I defined something like const char* x=... (by resabzr)
Flatten class and send with mpi
 
let say I have a header file like below. I have problem in send buffer.why I can't write &iterator....
[10 replies] Last: thanks for your help. yes, the function is this,https://www.mpich.org... (by resabzr)
Pages: 123456
  Archived months: [jun2021]

Cannot post in this page. To post a new message, go to the first page.