Beginners - November 2015 (Page 39)

Palindromes!
 
Stuck working with a program that determines if something is a palindrome. I have most of the code there and struggling putting it all together. Im not sure wha...
[no replies]
by Marth
Help Understanding Array
 
How to put the alphabet into an array? for (int i = 0; i < 26; i++) //wat do here
[6 replies] Last: Sounds like paranoia might set in if I don't give you a simpler soluti... (by closed account 48T7M4Gy)
Queue class help
 
So I'm trying to implement a Queue using a Linked List, but when I put my Queue to the test with the Radix sort (I got that code elsewhere), the output is: ...
[1 reply] : FWIW cpp shell gives: ---------------------------------------------... (by closed account 48T7M4Gy)
Need help!
 
I can't understand why this program isn't running. Getting a ".exe has stopped working." #include <iostream> #include <fstream> #include <stdlib.h> us...
[1 reply] : Your program runs in the cpp shell. Googling ".exe has stopped workin... (by closed account 48T7M4Gy)
Keeping track of score(guessing game with an array)
 
Hello again, I have recently modified my code to be played again, but I would like to keep track of the number of guesses, and display the lowest score. Any hel...
[2 replies] Last: repeat topic. Marking as solved. (by xdhx12345)
Code error and warnings...
 
Hello, I cannot figure out why I am getting these warnings? Any help much appreciated. Description: Your program should ask the user for data to (partially)...
[6 replies] Last: Thank you so so much! I truly appreciate the help!! (by mitch12345)
storing a line from a text file into a cstring
 
This program is supposed to grab an answer key from the first line of a file. I have to use c-strings for the assignment which is very annoying. I thought I had...
[3 replies] Last: Not being able to use std::strings is annoying. You can search throu... (by Duthomhas)
How to print unique numbers in Array.
 
so my program is supposed to use one 5 sized array to store inputted integers. If it's a duplicated integer it would not be stored into the array. The problem ...
[5 replies] Last: Ahhh okay, thanks a lot! (by nyaonyao)
Number guessing game help
 
How do I allow the program to be replayed I have bool, and the conditionals, but it is not functioning? Also how would I keep track of the previous tries, and ...
[1 reply] : Repeat post, marking as solved. (by xdhx12345)
Bit of a long one!
 
Hey there, I'm pretty new to all this so go easy! I'm really struggling with this. What I have to do is write a program that stores results from a calculati...
[9 replies] Last: Any ideas? I only have an couple of hours left! (by lewzz10)
Returning bool variable from function
 
So Im trying to code snake, and when I try to fix so that the food cannot spawn ontop of the snake the code works as I want it to. But the function wont return ...
[7 replies] Last: Look at this snippet: //declerations bool bug = false; do { //g... (by jlb)
by koko82
Initialising Class Object within another Class header file.
 
Hi All, I am trying to create a class object within another class, this enables me to use the object within the main cpp file I want to use without it being en...
[5 replies] Last: Tcs your right it's classtest.h also commented line out on classtest.c... (by koko82)
by nwd3
Help
 
Hello I am trying to create a setCapacity(unsigned newCapacity) method for circular queues. I was given a test that this method has to pass and it is failing on...
[2 replies] Last: sorry I thought I had deleted one of the posts (by nwd3)
Making code work with string
 
The following code only works for integers. How do I make it work for integers AND strings? #include <iostream> #include<string.h> using namespace std; in...
[4 replies] Last: Oops, sorry. I forgot to mention: you can't compare integers and str... (by JayhawkZombie)
by s8050
FILE * _popen() didn't work correctly.
 
Hi I'm having a problem with the _popen function on windows. It usually works properly with me. But when I use it to execute a wrong command, it don't retur...
[2 replies] Last: I almost lost hop about solving this problem. But your answer solved t... (by s8050)
Stuck at list<string> erasing elements
 
I have to create a program using list and strings with functions: (a) Functions to insert, remove, empty, display one line. (b) Function to display all current ...
[3 replies] Last: it worked! thanks now how would i check if the list is full or empty? (by jhsyber)
by Marth
The Spaces Between Us Part II: Electric Bugaloo
 
In my sojourn to triumph over the dark dragon of nothingness, I have encountered an element of vast uncertainty. switch (user_inputted_number_of_aisles_the_...
[6 replies] Last: Wow Cire, that is impressive. I usually try to take the concept that ... (by Marth)
2D arrays (dynamcally alocated, with clases, operator overload)
 
Hi there. I'm strugling to learn C++, and some concepts seem to rub a bit harder on me than others. At the moment I'm making a program which adds 2 dynamically...
[7 replies] Last: Alas, my program is done. It has a minor inconvenience but it works. ... (by catalin14)
dice game with players
 
Hi all, I am a beginner in programming and C++. i have been given a dice game that reads; In a variation of a dice game, one draws a beetle in parts. The idea ...
[2 replies] Last: Here is a little snippet that should give you a start. Application des... (by ShiftLeft)
by bigjes
arrays in classes
 
Can anyone tell me how to fill this array from an infile?? I'm so confused. We just started on classes I'm just not sure how to fill this array from an infile I...
[no replies]
November 2015 Pages: 1... 3738394041... 53
  Archived months: [oct2015] [dec2015]

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