Beginners - February 2016 (Page 7)

by ibbi
Checkers
 
Hello guys, Sorry to bother you all. I am making a program of checkers and it is in process. But in the stage of debugging, i couldnt understand the error that...
[3 replies] Last: Thanks alot, that minor thing got me a headache. (by ibbi)
Practice
 
Can someone provide me a solution to this program without using cin.ignore? #include <iostream> #include <string> using namespace std; int main (){...
[7 replies] Last: monrelle you can just put first the question of getting favorite class... (by jam47)
Stuck on the if statements
 
Description: In this assignment, you will develop a C++ program to determine if a horse is overweight or underweight, given the type of horse. Once the determi...
[3 replies] Last: @jlb I apologize I should have clarified, this weeks lecture and all t... (by SiliconPatriot)
template member functions
 
Hi, I'm reading "Memory and Resources part of "C++ Programming Language" and there is this example about std::bitset and its template member function s = bs...
[6 replies] Last: Thanks man :) (by etrusks)
In dire need of assistance making a simple calculator.
 
Hi my name is Chris and I would like to sincerely ask someone for help with a current project my Professor has assigned. I have written and compiled/executed a ...
[3 replies] Last: Your instructions say nothing about prompting the user for the operati... (by AbstractionAnon)
by Thelps
Help troubleshoot some code
 
Hi all, I've copied this code directly from a tutorial which I can link to you if you can't easily find an answer. However, when I try to run this code in...
[1 reply] : Those error messages give line numbers, so that should be a big help i... (by MikeyBoy)
by tyooo
Why won't it move to next line? (C) (I'm bad at programming haha)
 
I'm new to C in Visual Studio 2015 and I am working on a code where I need to make 8 patterns made out of "*" using only 1 printf("*");, printf(" "); and printf...
[2 replies] Last: I can only use one printf ("\n") for each pattern (by tyooo)
Can someone explain to me my teacher's code?
 
Hello guys, I recently started learning to program in C++ and I have hard time understanding my teacher's code. So I understand a big part of the code but what...
[2 replies] Last: Thank you for your help! (by cskarche96)
by flux21
Adding elements into a 2 dimensional vector using recursion
 
Hello, I am new to recursion and was confused on how to add elements to a 2d vector using recursion. I know how to add elements using nested for loops. Lets s...
[2 replies] Last: By recursion, I mean making this into a function. I know the base case... (by flux21)
Finding consonant and vowel number.
 
Sorry, I know I asked this question before, but I tried a different code, and the program crashes every time I execute. #include "stdafx.h" #include <iostrea...
[1 reply] : You are trying to access your array out of bounds in your loop. What y... (by jlb)
Tic Tac Toe program not working properly.
 
Hi, I just finished coding a refined version of xoax.net's Tictactoe C++ program, but there is a bug in the program. When you finish the first round of the ga...
[3 replies] Last: Wowwwww I can't believe I didn't notice that!! I wanted to set cReplay... (by Harutyun)
Using multiple files
 
How do I make my main.cpp realize that I have declared all my stat structs in another file? I have added that file in my project, but it still gives those "not ...
[3 replies] Last: Why are you trying to use the global variable? The problem is that ma... (by jlb)
Stop input when i a negative number is put int an array
 
hey guys this is my first time using this form. i really need help with this program. the purpose of this program is to ask the user to input up to 100 numbe...
[3 replies] Last: tanks for your help but what i need the program to do is take user inp... (by swimchick987)
Reading a file using delimeters
 
I have a project where I'm trying to save and load data from a file. I can save data to files just fine, however I have a couple questions about reading them. I...
[3 replies] Last: Is having containers as global throughout the program considered bad ... (by jlb)
To find number of vowels.
 
#include "stdafx.h" #include <iostream> #include <string> int main(){ std::string vowelor {"My name is Matilda"}{ for (int i = 0; i < vowelor .length; i+...
[6 replies] Last: remember to use subscript because strings are objects like arrays #i... (by g3n0m3)
define a function
 
I'm trying to define the function below in the main function: float distance(float x, float y, float pitch) { float r; //local variable ...
[17 replies] Last: Based on offline discussion as well as previous related questions, thi... (by Chervil)
std::iterator::reference and ::pointer
 
Hi, I am kind of confused that when I'm using std::iterator as base class for my reverse_iterator I cant use name aliases that I'm inheriting from this base...
[1 reply] : Hey, this was very important question for me and I got an answer to it... (by etrusks)
Number of characters
 
Trying to write a program to count number of characters but it returning zeros most of the time. int main() { char letter = '\0'; cout << "Enter a lett...
[1 reply] : It's because you set: char letter = '\0'; If you remove the initial... (by DeathLeap)
by m0bb1n
help in hangman game
 
I am trying to make a function that checks if a letter is in a word. I added the for-loop so that it can find all the letters. At the moment, it prints the sa...
[2 replies] Last: post the entire code of your program so tht others can help.For exampl... (by MaBunny)
Member inaccessibility error
 
I need some help with accessing a member from a protected class. The error is on line 17 of my .cpp file and its saying its inaccessible. But if it's inaccessib...
[2 replies] Last: Thanks for your eyes! I stared and stared but somehow how didn't see i... (by nuglyfe)
February 2016 Pages: 1... 56789... 46
  Archived months: [jan2016] [mar2016]

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