Beginners - December 2018 (Page 16)

float to int
 
Hello! I had a question about a program. A program that takes an array of float (any size) and prints out the content to the nearest integer. However, the rou...
[1 reply] : I suppose that you are not expected to take care of all the edge cases... (by JLBorges)
Blackjack game
 
I need to make a blackjack game which matches the real life version. However I feel really overwhelmed and lost. So far I've started the menu, which isn't worki...
[7 replies] Last: I humbly suggest adding a max to ALL enums you make. It helps in any ... (by jonnin)
by Fortem
Creating a Function
 
I successfully created an array of the periodic table of elements. Additionally, I need display it more than once my program, is it possible to make a fucntion ...
[2 replies] Last: I never thought of that. Thanks man you have my respect. (by Fortem)
by TORRES
need some help
 
i need some help , i have a listbox that have some materiales y want that the user say how many materiales would take from the listbox and printed the funct...
[2 replies] Last: I'm showing materials in a list, what I want is to ask the user to ent... (by TORRES)
by Fortem
Multi Dimensional Arrays
 
So Im trying to create this periodic table of elements and Im having a hard time trying to display this code as the periodic table itself. Any sort of help will...
[4 replies] Last: Yep, same thing with if statements. Compare: if (condition) in_... (by Ganado)
Error after compiling my lab
 
I can't figure out why my code is not compiling. I will include the cpp file I am having trouble with. There is one rational7.cpp file, one main.cpp file, and a...
[2 replies] Last: Maybe read and do the things it tells you to. //To do: //Put ... (by salem c)
Cant understand why program ends
 
So I am writing a program that takes test scores and students names, sorts them (together), averages them, and displays the sorted in ascending order with their...
[4 replies] Last: Yes, but that line was just an example. You would also need to make th... (by Peter87)
Trying to create a code of the game NIM
 
Hi! I am new to this, but I've been trying to create a game for NIM, but my code isn't working // Boma Braide // December 12, 2018 // Game of NIM #includ...
[2 replies] Last: I think I understand what I did wrong. Thank you so much! (by mysticcq)
How do I used a calculated value from one function as a variable for another function?
 
I have to calculate v=d/t in one function and then use the answer v to calculate k= 0.5mv2 in another function with d,t and m being entered from the keyboard. T...
[2 replies] Last: Thank you so much. I got it to work now. (by bkhuber99)
function that tells if two strings are anagrams
 
Im trying to take in two strings and send them to a function that tells if they are anagrams spaces and punctuation is ignored but can be input. I am either not...
[9 replies] Last: and the bucket sort works both ways. you can compare all the elements... (by jonnin)
Generate a tic-tac toe board with a 2-D array
 
Write a function that will generate a tic-tac-toe board using a 2-D array as input. Use the main() function to print out the results after the array has been r...
[5 replies] Last: if you want to get fancy you can draw ascii grid around the board to m... (by jonnin)
Using For loop to loop thru struct arrays
 
Hi, I cant figure out how to get the years 298,299,300 each, one time. everytime i do i get 298,299,299. i am passing arrays and struct arrays. Let me me know i...
[2 replies] Last: I can't make much sense of your code, but one of these ideas might hel... (by jonnin)
Error LNK2001
 
Error LNK2001 unresolved external symbol "private: static class std::list<long,class std::allocator<long> > PersonalIdArchive::personalIdArchive" (?personalIdAr...
[2 replies] Last: Thank you so much! I am so grateful that you actually took your time t... (by necrophos)
Upper/lower case
 
How can I make only my first letter upper case and all of the other letters lower case for the first, middle and last name. This program is a name formalize pro...
[6 replies] Last: please use code tags unless its a 1-2 liner. <> on the formatter to t... (by jonnin)
by Bopaki
I finally got my doublyLinkedList program to work fine
 
But after entering the number to be deleted, the program runs forever. Here is the output before the deleteNode function is called: Enter integers ending ...
[3 replies] Last: Thank you all. I found and fixed my problem (by Bopaki)
Any suggestion about how to make the program better?
 
Any suggestions? Build a detection model (and file and array storage by adding), and update (deposit and withdraw) time deposits from a certain number of deposi...
[5 replies] Last: Hi, goshko1. Perhaps the problem is your code is mainly a C code and t... (by Enoizat)
File downloaded cannot run in Dev and Visual
 
Hi everyone, I am the new one in C++ and Visual Studio. I dont understand why the files I download from the internet cannot run, the compiler often not...
[1 reply] : I expect because whatever source file you're downloading isn't a compl... (by Repeater)
by Wizrad
Sorting Vector and Modifying
 
Hi! Its my first time posting here so I don't know how to format this question. I would like to add the option of "5. Choose a Dealer Number, List Cars and...
[1 reply] : From the remark of line 180 you did actually implement option 5? (by coder777)
fstream won't write to file
 
Hello there, I'm trying to write a program that reads user name, ID and puts them in a file then reads them. Mine doesn't seem to be doing that though. I want ...
[1 reply] : The data might be written only after an explicit flush or when the fil... (by coder777)
MONOPOLY
 
Does anyone have code for a monopoly game?
[1 reply] : Though github is the biggest garbage dump in the universe, one can als... (by JLBorges)
December 2018 Pages: 1... 1415161718... 22
  Archived months: [nov2018] [jan2019]

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