Beginners - June 2021 (Page 7)

In-place merge sort
I've written a program that is has in-place merge sort that does not require a temporary array to me...
[4 replies] Last: Indeed. The innermost loop in merge() runs n * (n/2) times, where n = ... (by helios)
Code looks good but wont run because of build errors?
I wrote a program for my class, and the IDE doesn't see anything wrong with my code but when I go to...
[9 replies] Last: @OP You might have noticed the repetition in the two cases. That repet... (by againtry)
by greg98
how to solved the problem with check winner in tictactoe
Hi guys. I started the TicTacToe nxn project. I thought the program was working properly because ent...
[19 replies] Last: thank you guys! (by greg98)
by saam
Hash Function
I need a help to write a pseudocode for R1Hash(key, a, b, A, B, N) that takes non-negative integers ...
[10 replies] Last: @ jonnin thank you very much for the help. (by saam)
Ask the user if they want to rerun the program?
The problem is, we have to modify the code to ask the user if they want to run the program again. I ...
[5 replies] Last: Hello morganniie, Always initialize your variables. You may be use to... (by Handy Andy)
by saam
Write a pseudocode
I am trying to write a pseudocode function R1(key, A, B, N) that takes a non-negative integer key, a...
[3 replies] Last: In kbw's example he has an int named ret. In c++ when you want to retu... (by Manga)
by saam
pseudocode for hash function
Please someone correct me with my the below pseudocode. a pseudocode for R1Hash(key, a, b, A, B, ...
[no replies]
what datatype should i use in a function if the function is to choose something
Hi,may i know what datatype should i use in a function when the function is for user to choose eithe...
[1 reply] : Possibly enum class PassReg {PassNum, IdentCard}; (by seeplus)
im totally new help!
hello guys, i need some help i start to use c++ like 1 hour ago im lost. i just need to create th...
[9 replies] Last: The compiler and the method of compiling should most certainly suppor... (by kbw)
What's the meaning of 'int foo(int);'?
This question may sound strange. I'd found four kinds of initialization(value, default, direct, list...
[5 replies] Last: If you want to print the function address you need to cast it to void*... (by dutch)
How Would I go about to write this? is it possible?
I just want to know if it is possible to write a program to create say an 'x' amount of emails where...
[6 replies] Last: @OP This has an even worse smell to it than spam. Generating passwords... (by againtry)
Bubble Sort for Strings
Hi so I wrote this code for my assignment and was confused as to why my bubble sort isn't working. P...
[10 replies] Last: Or sort the array in main() ... int main() { Property data {... (by againtry)
by jafra
index of value in table .c++
I have to create a function which receives in parameter an array of characters and a character. it m...
[3 replies] Last: #include <cstring> // return the position of the character in the c-... (by JLBorges)
Finding an element in a vector of objects
Hi guys! I'm writing a program to create a simple database in C++. This program compiles, but it doe...
[2 replies] Last: No, it compiles) I've forgotten to give you some very important parts ... (by crueltyfree)
Moving squares for a sliding puzzle with sfml
So I am making a sliding puzzle game with SFML in C++ and I am unsure what I am doing wrong to move ...
[2 replies] Last: Yeah my question was how to move or flip both boxes around to make sur... (by bern077)
Linked List - How To Create From File
I am a CS student and currently stuck on an assignment regarding linked lists. I am supposed to tak...
[3 replies] Last: Thanks for the replies! I got it working. Thanks for the general C++ '... (by thedude0901)
by saam
Recursive function
Best and worst case inputs Recursive function (growth function) function Find(key,B,M,j) for ...
[8 replies] Last: Thanks @Ganado @jonnin. I've got it. (by saam)
by alexas
memory/references issue
I am again here with my struggle with pointers/references. I simplified everything to the two simpl...
[10 replies] Last: it should work as-is with some includes. Test it first like it is, an... (by jonnin)
How to find a specific element of a value in a vector?
If I have 2 values being added multiple times to a vector like this : int one = 1, four = 4; std...
[8 replies] Last: Okay, to fix it you have to use std::rbegin and std::rend instead.... (by mbozzi)
GetAsyncKeyState() confusion
if (GetAsyncKeyState(VK_NUMPAD1) & 1) i understand what the above function does , in its d...
[2 replies] Last: thanks @markyrocks (by Reddevil1003)
June 2021 Pages: 1... 56789
  Archived months: [may2021] [jul2021]

This is an archived page. To post a new message, go to the current page.