Beginners - March 2016 (Page 27)

Array not displaying because I no code good
 
Hi all, after inputting my numbers, I'm trying to display them from my array, 1 line at a time, but it isn't working. I'm getting weird characters instead. How ...
[2 replies] Last: Thank you, SO much! (by itsbenbroughton)
string type does name a type even after adding <string>
 
I don't know what I am doing wrong.I have been trying to figure out the problem for an hour now and nothing works. I am working on header file and implementatio...
[3 replies] Last: Thank you guys so much. Have a lot to learn. (by Adaptron)
by Musica
Tmplate Class w/ User-defined class as argument
 
I have no idea how can I pass the class I created (Trivial class) to the template class (Stack class). Below passing pre-defined type such as int, double, char...
[6 replies] Last: I guess I need to put some codes of the Stack class implementation ... (by Musica)
what am I doing wrong
 
Hi guys I have a small program here that sets a power of an attack,now this question is mainly about pointers so I made an enemy object and set it to the addres...
[5 replies] Last: thanks cire and Moschops,it does actually work I'm not sure what was g... (by adam2016)
by Eli1
It does not copy the answer
 
When I run it, it does not copy the answer. Any help? please. --------------------------------------------------------------------------------- #include <...
[5 replies] Last: i + 2 does not change the i. Perhaps i += 2 (by keskiverto)
Loop not working correctly
 
I have only been learning C++ for a few weeks and I have run into a problem trying to write a simple program. I am trying to write a program that converts F to ...
[3 replies] Last: That worked, I really appreciate the help on this. I was getting so fr... (by Sdavis5)
Problems with cin.getline
 
Hello! I'm writing a Mad Libs project, and I'm almost done! I have just a few minor issues that I'm working out. One of the biggest issues is that my cin.getlin...
[4 replies] Last: So by typos: I mean the code is fin >> somevar; should it be ? ... (by Bdanielz)
by specbk
swapping letters in a string
 
Hi. Yesterday i did a code which swaps the letters that are next to each other in a string. For an example: input="lalala", output="alalal". or input "bark"...
[2 replies] Last: To begin with, your buffer is not large enough to hold a 4 character s... (by cire)
Does anyone notice any patterns?
 
Hi, I'm working on a nested for loops problem that wants us to output a large plus sign (user specifies the height which is odd and less than 30). For example, ...
[3 replies] Last: @Chervil Yes exactly! Now if I could just find some patterns... (by rrspamrr)
by Eli1
x was not declared in this scope
 
I declared 'x' but I don't know what' wrong. Please help me, thank you. (Here you have the 'wrong' part. __________________________________ cout<<"x: "; ...
[3 replies] Last: Thank you very much :D (by Eli1)
returning pointers from functions?
 
Hi I am getting the following compile error when compiling the code below: func_ptr.cpp: In function ‘const double* f1(const double*, int)’: func_...
[2 replies] Last: ok, got it. so obvious in the end. thanks for replying. (by bluefrog)
by alitt
file problem
 
hey guys i have a little problem with files in read (line 29) #include <iostream> #include <fstream> #include <string.h> using namespace std; struct student...
[2 replies] Last: got it thank you (by alitt)
by dajoao
Define member variable in class to initialize vector size
 
Hello together, I am relatively new to C++. After investing quite some time researching and trying I am posting my problem here. To illustrate the problem, i ...
[2 replies] Last: Thanks a lot, works like a charm! (by dajoao)
Practice problems Jumping into c++
 
Q3. Create an address book program that builds on problem #1—this time, the user should be able to not just fill out a single structure, but should be able to...
[6 replies] Last: To make it difficult to change a value after you've initialised it. (by Moschops)
by Areey
one dimention Array
 
when i debug this code it shows me this error message, Stack around the variable 'A' is corrupte. what does that even mean?? Just to be clear i want the program...
[2 replies] Last: Thanks alot... it gave me an insight of what was wrong.. now this code... (by Areey)
Establishing a for loop in functions
 
Hi. I need to establish a for loop or at least a loop that will help me repeat a program 5 times while utilizing functions. My problem is any time I try to esta...
[1 reply] : The problem you have is on line 111. You declared a statement outside ... (by OxBADC0DE)
Text based game problem.
 
#include "stdafx.h" #include <iostream> int win(); int whoWins; int main(){ int playerHorizontal; int playerVertical; char player = 'P'; char comp = 'C'...
[4 replies] Last: Thanks so much! (by Idiotal)
by stoned
VST controller parameters
 
Hi, I was looking around some IPlug code to make a VST plugin. And my quest is to figure out how to get a good GUI going. (If I can do that the math part is ...
[no replies]
Linked List Help. Elements with the same name?
 
Hello all, this is my first post here so let me know if I did not provide enough information! Basically I'm creating an inventory list where a player can pic...
[1 reply] : The program runs just fine, with no compiler error. It's just that aft... (by shiniko)
Multi-Dimensional array printing only one dimension.
 
#include "stdafx.h" #include <iostream> int main(){ char grid ; int i; int j; for (i = 0; i < 7; i++){ for (j = 0; j < 6; j++){ grid = 'O'; ...
[3 replies] Last: Thanks guys! (by Idiotal)
March 2016 Pages: 1... 2526272829... 47
  Archived months: [feb2016] [apr2016]

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