Beginners - February 2017 (Page 17)

Memeory allocation
 
The codes below is to create a single linked list from an array input. The first block of code does not work. The second one works. I just need to confirm ...
[3 replies] Last: Thank you, both. (by landlord2017)
Help with this code please
 
I made this code where you create an account and then the username and password are saved so that you don't have to create a new one every time you run the prog...
[9 replies] Last: Thanks , Andy (by Raul4pk)
Random Maze Generator
 
I am struggling quite a bit with this recent assignment. How would I go about randomly choosing to remove the south or the west wall for each cell going from...
[3 replies] Last: How do I nest loops on something like this? Nested loops? Think abou... (by lastchance)
Quick Question
 
I have this program below and my question is: Would I change the Total = Total + N; ?? I've tried changing it a few times but it won't give me 40 or 45. Does an...
[3 replies] Last: Ouch, assignment: "debug this code". So, what would you do to make ... (by newbieg)
Error: Palindrome function using Bool
 
Hello, I am new to using bool in c++. I am trying to make a function (is_palindrome) that tests if a word is a palindrome, which requires that it be all lett...
[1 reply] : If you are defining a function you do not want to use a semicolon befo... (by newbieg)
strange error
 
Not sure how I messed up, but I get an error that simply states "exited with non-zero status" sigh What did I do wrong? PS If it helps, I use repl.it ...
[3 replies] Last: You didn't declare the size of the vector. You can make it vector<in... (by Hengry)
I think I have an issue but I'm not sure
 
Would someone mind double checking my code? There are newlines after each line displayed that I didn't code for and a lot of dead space at the end. I get the ge...
[4 replies] Last: And since you're here might as well: http://stackoverflow.com/question... (by gunnerfunner)
Help with do while magic 8 ball
 
The again after my while is undefined and I am not sure how to fix it. I could you some help. #include <iostream> #include <cstdlib> #include <string>...
[4 replies] Last: That is what i thought you meant but I figured i ask for clarification... (by colonelchainsaw)
convert a cipher to binary
 
Suppose I have this ciphertext: ╟êZÇN^Θ·@▒cI┴F√wî▀-:  ⌡┤╡╨╨ETh«╣å"▒7┌ΦWU<═êâº╝7Rσ╥,òN║P%╕╠WεYA...
[5 replies] Last: What will the function type be? Well that depends on how you want to... (by integralfx)
for loop not working correctly (runs 1 less time than it should?)
 
My for loop collects user input one less time than I want it to and I have no idea why? The first time it outputs the statement "Enter strings", there's no inpu...
[4 replies] Last: Thank you so much! It worked! Just out of curiosity, can you tell me w... (by bellefoster3)
What is the correct way to create a data type with discrete values
 
In a struct I have an 8 bit value called bmRequestType. There are three fields in the 8 bits like this: bmRequestType 8 bits D7..D0 Bit-Map D7 Data Phase Tra...
[3 replies] Last: enums are a type. you can say TD_CTRL_BITS myctrl = TD_CTRL_ARM; ... (by jonnin)
string and save it to another string please help!
 
so i'm trying get the user to input a date 12/05/2005 and the outcome will be Dec 05, 2005. i got the Dec part but after that im not sure what is the best way t...
[3 replies] Last: Duplicate post: http://www.cplusplus.com/forum/beginner/208549/ (by integralfx)
Help me make this look more appealing
 
When I output this code it is always all over the place. How do i make it look like: Joe Garcia 858-343-2009 Amelia Perez 617-255-0987 Bob Haynes 858-765-1...
[6 replies] Last: Thank you that did help!!! (by sesslit805)
Question about making spaces when present
 
Hi, I have a question about making spaces in message_a. For example if I enter 'hi my name is' for message, then message_a will print out -------------, howeve...
[4 replies] Last: Ah thanks man, that worked perfectly for what I needed once I tweaked ... (by crowandrabbit)
Quick C++ Question
 
This program prompts for F and G and computes the Total of the numbers between F and G inclusive. Examples: F is 5 G is 10: Total: 45 F is 6 G is 10: Total...
[1 reply] : I'm not sure what you are asking but you are on the right track. Refer... (by joe864864)
Spawning random obstacles on an array?
 
Hi there everyone. I'm really struggling currently with getting this grid set up for a very basic game I'm trying to create. My task is to make the user input t...
[no replies]
by V416
Array wont compile correctly
 
I am quite new to C++ and I can't seem to see the problem with my code. I have been working on in this assignment for about 3 days now. Any help will be greatly...
[2 replies] Last: Thank you gunnerfunner. (by V416)
Descending order of integers
 
So right now, when I run this with an integer of 25, it spits out 1, 5, 25. I need it to be reversed like 25, 5, 1. Please help!! #include <iostream> #inc...
[5 replies] Last: Thanks integralfx!! it worked! (by hstrauss)
Increasing Timer?
 
Hi. I've just finished my big project of building a full working text based MineSweeper. I have everything implemented but a simple 3 digit timer that increases...
[1 reply] : simple way is clock() and CLOCKS_PER_SEC constant. game starts, star... (by jonnin)
What can I do to improve this program
 
It's supposed to do tedious math that I don't feel like doing for my engineering classes. Right now it just calculates area. Here is the main code #include ...
[9 replies] Last: If you want to automate tedious calculations for your classes then get... (by dhayden)
February 2017 Pages: 1... 1516171819... 37
  Archived months: [jan2017] [mar2017]

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