Beginners - November 2013 (Page 11)

Inputting Data Into a 2D Array
 
I'm working on a program, part of which requires you to input grades for several students, which must be displayed as an array. I have it where the grades a...
[5 replies] Last: That helped a ton, condor. Thanks so much! (by castellanspandrell)
Creating a Program Shortcut
 
okay, so now that I have written the code that I need for my school project, I would like to create a shortcut on my home screen for the program. I was able to ...
[5 replies] Last: no, it runs fine when I use it in the compiler, it just closes when I... (by andywestken)
Connect Four Game
 
I am trying to create a connect four game for my computer science class. I have a lot of it figured out but I cannot get the x's and o's to appear at the bottom...
[3 replies] Last: Edit the end of your first post to have a " " You want that code to ... (by Mats)
stackdump file
 
hi, im new to c++, and im supposed to make a list from files. I have the files already filled in with some structures, but i cant fill the list. TNodo is a ...
[2 replies] Last: Is for my project. (by davidboom95)
How do I get a program to stop when using a while loop....
 
Could someone please explain the best way to get a program to quit when a user enters -1? I've tried several different ways of using a while loop and I just ca...
[17 replies] Last: sigh. i give up. (by mutexe)
"Checkpassword homework"
 
Hey guys, so I have a homework assignment where it consists of using username and passwords. Im working on a method to check the password to verify that the pas...
[1 reply] : The only way you can leave your do while loop is on line 26,27. Your w... (by mobotus)
reading in a unknown matrix from text file
 
Hi there, I am currently trying to write a program that will let me read in an n x n matrix and then let me print it out again a typical matrix will look...
[no replies]
by Yo123
Function problem
 
Hey guys, I have an assignment saying create an array containing 100 random double numbers between 0 and 250, sorted into order by a separate function and th...
[8 replies] Last: Oh christ no it is working, it was just scrolled to the bottom. Apolog... (by Yo123)
Array help
 
I need to remove elements from an array. Is this achievable? I have tried converting it to a vector, but I can't seem to get it correct without tons of errors....
[2 replies] Last: Thank you, I was able to create a vector than use erase to do what I n... (by closed account NURz8vqX)
Converting .cpp to windows compatible .exe
 
I tried using g++ example.cpp -o example.exe which allows the compiled .exe to work on my linux system(Ubuntu), but when I try to execute on Windows it says it ...
[3 replies] Last: You need to recompile it on the Windows system, or find a cross-compil... (by Zhuge)
Student Programmer needs help help with for loop
 
The program is a membership fee increase program. We are suppose to write a program that displays a fee increase of 4% every year for 6 years. This is where I...
[3 replies] Last: Its a bit of a difficult task to guess why you gave up. But I would ma... (by Chervil)
Limiting the Size of a Float/Double Data Type
 
I am running an equation where I am using a double to multiply, and there exist a possibility that I could end up with a value that goes in to the the hundredth...
[2 replies] Last: I don't think you necessarily need to limit the value of the variable.... (by Chervil)
Average of numbers beginner program
 
I'm working on a program to ask an average of the users specified numbers and am wondering why this code won't work the way I want it to. What did I do wrong wi...
[4 replies] Last: ¿what about this?: #include <iostream> #include <cstdlib> #include ... (by Edevan)
Help needed with code
 
i am trying to make a text based level editor in c++ and i thought i would save time by instead or writing a lot of if statements i would use a for loop when...
[1 reply] : The cout stream buffers its output. To make sure it has written the o... (by dhayden)
by hilft
When are destructors called? Need help
 
I am having trouble undertsanding when destructors are called. As I try to analyse the output of the code below, when i=0, the destructor is called after the ex...
[2 replies] Last: "object" gets gets constructed when the program flow reaches it. If i... (by dhayden)
by dday9
Hello world virus
 
Odd title... I know. I've been trying to learn C++ off and on for a while now and I think that I've finally found a great EBook. Well I'm following along and it...
[3 replies] Last: Yeah I get the same with Avast. You have nothing to worry about and yo... (by RabMac)
Library management system help
 
I have to work on the project named library management system, i have downloaded different code's from net but because i am bignner , iam cant't understand it c...
[no replies]
by wadee
global variable !!!
 
Hi everybody , I wonder how I can deal with such error , especially in while loop ??? { class/struct/union 1>c:\users\m..s\documents\visual studio 2010\p...
[4 replies] Last: Here is the important part of the error log: Q' : undeclared identif... (by RabMac)
how to pass vectors
 
lets say i have a function that calls a function that fills a vector (declared in the header file) like this: void class::foo() { bar( pointer) } void ...
[10 replies] Last: You're welcome :) (by MikeyBoy)
Tic-Tac-Toe?
 
How would one create a tic-tac-toe game with these instructions? Along with making sure that the positions a - i will change to 'x' or 'o', once a player makes...
[no replies]
November 2013 Pages: 1... 910111213... 80
  Archived months: [oct2013] [dec2013]

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