Beginners - December 2015 (Page 21)

Please help. Inverted Triangle
 
Hello everyone, I am new to C++ and I want to make an inverted pyramid so it follows the form of: 55555 4444 333 22 1 The goal is to make it look like...
[1 reply] : We can't just give you the answer. If I say you enter an arbitrary nu... (by JayhawkZombie)
If-Else and Loops:
 
Write your question here. Hi Guys, i need help with a particular problem the assignment wants me to write a program that prompts for a long integer. Displays c...
[12 replies] Last: That's strange. That seems to work for me. But you need all those if... (by JayhawkZombie)
struct function
 
I have spent so many hours trying to make this work and I just can't seem to get it right. This is the part that I am having trouble with: Write a void function...
[3 replies] Last: If you're talking about your display() function, where did you declare... (by jlb)
OpenGL GLUT problem
 
Hello everyone, I have an OpenGL assignment using GLUT.I am intending to create a space battle game.Very simple one without using any textures. I am having a ...
[13 replies] Last: Oops! Sorry for the late response! Glad you've got it working in time ... (by xismn)
by cbbnew
programme stop after calling the method in the main
 
Hi I've made a method in a class ,the method purpose is to eliminate duplicated number in a row of 2D array,after creating one. this method it's located in a ...
[no replies]
HELP sorting arrays
 
Can anyone please help me change this selection sort into a bubble sort. Any help would be appreciated. Thanks! void dualSort(string id , double rainFall ...
[2 replies] Last: Thanks for the reply. I figured it out. (by venom555)
by kmce
Error C2228
 
Hello. I have just started to learn some coding the past few days. I have written some stuff but now I am having a problem learning the printf(). Im not sure ...
[3 replies] Last: Sorry I should of said c++ Thank you peter, that worked. Im learning ... (by kmce)
std::find on a double array
 
I have a double array double myArray and a scalar x . I would like to check if x is an element of myArray . I already know how to do this by std::find ...
[4 replies] Last: You can calculate the index by subtracting the pointer to the first el... (by Peter87)
Play tone
 
Hi people :) Long time no C... Is there any library or something to easily play basic sine or square waves in C++ ? Something like the Beep function, but to w...
[1 reply] : Have a look at the SFML library. https://github.com/SFML/SFML/wiki/Tut... (by integralfx)
by mwskz8
Is it a default constructor?
 
I am studying C++ Primer, and it says "The default constructor is used automatically whenever an object is default or value initialized" on section 7.5.3. I've...
[8 replies] Last: Thank you for your help, JayhawkZombie and Peter87. (by mwskz8)
by Zorac
Making a header file and moving my function to seperate file.
 
Hello again. Got great help here so i have been having a different problem i cant really solve for the life of me. So i got my code to work in the same file b...
[4 replies] Last: Thanks for the reply guys, helped a lot and now i understand it! :) (by Zorac)
by GonlyG
Empty Output in Collatz Conjecture problem
 
Collatz conjecture problem: count number of steps until a number reaches "1". First number is number of inputs, followed by the inputs. #include <iostream...
[2 replies] Last: ohhhh, dang nabit. (by GonlyG)
Fstream Palindrome
 
Hey guys, I am really frustrated right now, I have tried to fix as many errors as I can and I've reduced the errors from a lot to a little, and I was finally ab...
[4 replies] Last: I don't think your processFile function is actually doing anything y... (by alex067)
Run time check failure #2 Stack corrupted
 
Hi, Im starting to programming and I'm triying to do a Hangman Game in Spanish with words from a file. I haven't used any pointer and I'm not sure which is the ...
[2 replies] Last: Thank you very much! Solved! (by DoBasketball)
Undetermined Array Element
 
What's going on guys. I got a question that I have been stuck on. So I'm trying to find a certain value in an array and swap it to the last element of the array...
[3 replies] Last: Cool. Thanks guys. And yes the array is dynamically allocated. I know ... (by sirconfusedalot)
Can't seem to get exceptions working with istreams
 
I am trying to use streams (specifically cin) to throw exceptions when eof() or fail() are true, but it does not work!! What could I be doing wrong? Does it hav...
[4 replies] Last: Anybody knows how to make iostreams throw exceptions, say upon hitting... (by JUAN DENT)
by GonlyG
Strange output in reverse string program
 
Have to reverse a line of string. #include <iostream> #include <string.h> using namespace std; int main(int argc, char **argv) { char *reverse...
[5 replies] Last: ah, never mind, I forgot about C++'s reverse algorithm. That solved it... (by GonlyG)
Mysterious Memory Leak
 
Hi all, I have a simple program that creates a histogram of student grades for an assignment. However, when I run the program in a debugger, using Microsoft ...
[3 replies] Last: Well, it wasn't just a memory leak. If you tested the program, the exi... (by Chervil)
SFML Snake Body movement.
 
Hello, i'm making a snake game and I can't figure out how to get my snake's body to move accordingly with the head. I've tried a bounch of different ways of set...
[no replies]
by mwskz8
Is it a default constructor?
 
Write your question here.
[2 replies] Last: Here: http://www.cplusplus.com/forum/beginner/180919/ (by Peter87)
December 2015 Pages: 1... 1920212223... 43
  Archived months: [nov2015] [jan2016]

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