
please wait
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 entering 5 of the same characters vertically, horizontally or d... |
Jun 10, 2021 at 3:34pm
[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 key, a and b where a and b come from to the hashing function... |
Jun 10, 2021 at 9:13am
[10 replies] Last: @ jonnin thank you very much for the help. (by saam)
|
by morganniie
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 already have a do-while loop set up, but I'm not sure where ... |
Jun 9, 2021 at 10:12pm
[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, and arrays A and B of length N as inputs: the function should... |
Jun 9, 2021 at 7:52pm
[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, N) that takes non-negative integers key, a and b where a and... |
Jun 9, 2021 at 7:37pm
[no replies]
|
by lindsayy
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 either 2 choices. should it be boolean or should it be void? f... |
Jun 9, 2021 at 4:26pm
[1 reply] : Possibly enum class PassReg {PassNum, IdentCard}; (by seeplus)
|
by JoeSidda
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 the most easy think but i have no idea how to do it i just ... |
Jun 9, 2021 at 2:41pm
[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) and tried many variable definitions which look similar. Be... |
Jun 9, 2021 at 2:20pm
[5 replies] Last: If you want to print the function address you need to cast it to void*... (by dutch)
|
by Anonomys
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 you are asked how many to create and you give lets say '6' ... |
Jun 9, 2021 at 11:09am
[6 replies] Last: @OP This has an even worse smell to it than spam. Generating passwords... (by againtry)
|
by nomnomu
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. Please tell me why isn't my bubble sort working and how do I ... |
Jun 9, 2021 at 9:32am
[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 must return the positions of this character in the array. I h... |
Jun 9, 2021 at 9:00am
[3 replies] Last: #include <cstring> // return the position of the character in the c-... (by JLBorges)
|
by crueltyfree
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 doesn't print any data. I think the problem is in the input fil... |
Jun 9, 2021 at 8:57am
[2 replies] Last: No, it compiles) I've forgotten to give you some very important parts ... (by crueltyfree)
|
by bern077
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 these boxes. I there something wrong with the code I have? ... |
Jun 9, 2021 at 12:37am
[2 replies] Last: Yeah my question was how to move or flip both boxes around to make sur... (by bern077)
|
by thedude0901
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 take a functioning program that reads input from a file and cre... |
Jun 8, 2021 at 11:12pm
[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 0 <= i < M if(B == key): return j + 2*i... |
Jun 8, 2021 at 7:19pm
[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 simple functions that compiles - but does not work as intended (t... |
Jun 8, 2021 at 7:16pm
[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::vector<int> numbers{ one,one, one, four,four , one, four};... |
Jun 8, 2021 at 6:00pm
[8 replies] Last: Okay, to fix it you have to use std::rbegin and std::rend instead.... (by mbozzi)
|
by Reddevil1003
GetAsyncKeyState() confusion
|
if (GetAsyncKeyState(VK_NUMPAD1) & 1) i understand what the above function does , in its definition its written "If the function succeeds, the retu... |
Jun 8, 2021 at 2:35pm
[2 replies] Last: thanks @markyrocks (by Reddevil1003)
|
can not create file |
So i have problem with files. Idea is to open files with different names using one function, and write some data to them, also want them to have file extensions... |
Jun 8, 2021 at 11:07am
[5 replies] Last: lastchance, seeplus, Thank you very much! it seems that i misclicked... (by electro amperkin)
|
by chebyrek
Help with this task
|
I need to write a program in Qt. Put a picture on the main window. And create a new file, write some text to the file, and display the recorded text on the scre... |
Jun 8, 2021 at 10:21am
[6 replies] Last: @OP FWIW this follows your snippet as a complete project which runs. ... (by againtry)
|