Beginners (Page 69)

Need help on thinking recursively
 
I just wrote a function recursively so I can understand how recursion works, but the logic in this s...
[2 replies] Last: Why does this function display 55 when it should display 19, 18, 17, ... (by cire)
Writing from file to array
 
Hello, I need to write from a file to an array. The data in the file is stored as two numbers separa...
[4 replies] Last: Nah, stoi seems to not be an ANSI standard. You can always use a str... (by elite zero)
String Replace
 
How do I get my program to replace the parts of my string with whatever the user enters? For example...
[2 replies] Last: You just want it to replace the one number, right? If so, the second ... (by manutd636)
by Naulee
Creating and implementing Deque functions
 
I'm writing 2 functions involving deque. The first is to fill a deque with 6 integers alternating w...
[2 replies] Last: So simple. But I am so terrible at programming. Thank you! (by Naulee)
Please help me with the errors in this code.
 
I need help with this code. I get the error c4700 uninitiated local variable "balance" used. line 42...
[1 reply] : I get the error c4700 uninitiated local variable "balance" used. line... (by Yanson)
Constructors are used to?
 
Write your question here. Initialize the objects Construct the members Initialize the objects an...
[1 reply] : Instantiate an object of that class. (by elite zero)
Passing my cards to my function
 
So i have this program that asks the user to enter in 5 guesses for a deck of 18 cards. After guessi...
[no replies]
by jhkim3
Question about Null
 
When I try to compile this, an error comes up saying: "a.cpp: In function ‘int main()’: a.cp...
[2 replies] Last: Hp of Legend. Thank you so much. You just saved me 25 minutes of tryin... (by jhkim3)
Help understanding pointers
 
Can someone please explain to me the switch statement? more specifically, I understand how the data_...
[3 replies] Last: Yes. Lines 54, 58 and 61 call Print_Matrix() but each one passes a poi... (by dhayden)
Classes and variables help?
 
I have a variable called SDL_Renderer* gRenderer. This variable is stated in private, in a header fi...
[no replies]
QUESTION
 
if: const int size1=10; char arr1 ; How can I print out the subscript where a specific element ...
[5 replies] Last: can you apply that to an array? In the first example, is str not ... (by shadowCODE)
"Error in ... free(): invalid next size (normal):... Aborted (core dumped)""
 
Hello, I'm having an issue with this program that's really bothering me. The code runs fine and goe...
[10 replies] Last: Ok I'll look into it. Thanks for taking a look! (by hyperfine)
Passing/sharing strings between functions?
 
With my code below I'd like to not have to use "string name" as a global variable if I don't have to...
[13 replies] Last: Ah yes, there we go. All works great now. THANKS! Now I need to figur... (by CGunn86)
I keep on getting "error: invalid conversion from 'const char*' to 'char*' [-fpermissive]"
 
Every time I run it, it would give me "Prob1.cpp:6:9: error: invalid conversion from 'const char*' t...
[7 replies] Last: I just noticed but freq is uninitialized look at your constructor (by giblit)
Need clarification
 
Why is it that these 2 provides the same result for x? given that m = 10, n = 15 x = m - 2*n--...
[2 replies] Last: How come although two of the cout are the same, *(ptr +2), however th... (by Jacobhaha)
by jo0123
for loops
 
Can somebody show me how to do this with steps? not understanding it, i have a test tomorrow!! De...
[2 replies] Last: From my understanding, I will try and show you how to do the first one... (by Torm04)
How can a friend class access the private members of another class?
 
When a class has declared another class as a friend, how can that friend class access the private me...
[1 reply] : Yes, but of which food? Consider this usage: Food apple; Food beef; ... (by keskiverto)
Can you tell me what's wrong with this code?
 
Write your question here. thanks everyone my question has been answered :)
[2 replies] Last: Also, you have another problem. You're getting numbers that are not pr... (by deathslice)
implementation file
 
I don't have allot of experience I am just learning c++ unfortunately,I have an instructor who only...
[1 reply] : Implementation file (source file) is where the definitions of the func... (by Callum5042)
Sorting numbers while overloading the function.
 
So I've been trying to practice function overloading and I've come across a problem in displaying nu...
[3 replies] Last: Yes, you're right I should've said that it was just a warning. Anyways... (by deathslice)
Pages: 1... 6768697071... 92
  Archived months: [nov2014]

Cannot post in this page. To post a new message, go to the first page.