Beginners - April 2013 (Page 66)

Array Expander help: Expander only shows address
 
While I did find other examples on this board none of them seemed to address my issue. The problems asks to create a new array twice the size of the original. ...
[5 replies] Last: oh I see thanks for pointing that out! And thanks for the quick respon... (by solemnservant)
Arrays and Files
 
Hi I'm a beginner to c++ and I was assigned a project to declare an array of structs but the information is contained in a text file and I have to prompt the us...
[1 reply] : I suggest you work with author of this post as you have the same probl... (by Zaita)
using arrays for min/max/med? (C++)
 
Hello, I was given the challenge to write a program using 3 different arrays. Each used to find the maximum, minimum, and the median of 20 different randomiz...
[2 replies] Last: cout << "Max Value " << max_value << endl; cout << "Min Value "... (by booradley60)
Unsure of the best method to use for transferring data from txt file.
 
So I have data on a txt file that looks like this... SMALL BEANS 1 5 10000 10 10 5000 50 8 100 100 6 10 1000 4 1 10000 2 PIRATE'S B...
[1 reply] : Every call to getline() will only read 1 line. Once you have the stri... (by Zaita)
function that reads in numbers
 
#include <iostream> #include <iomanip> using namespace std; //prototype first function double readInNumber(double x); //prototype second function double proces...
[4 replies] Last: I got it. Much thanks to the both of you for your time. (by shoeman2)
by Keelan
Please help! Character Array problem
 
Hi, I'm very new to c++, first semester. I'm having a great deal of trouble with this program I'm suppose to write. Ultimately its supposed to grade a students ...
[2 replies] Last: Ok thank you , I know what you mean. This is a different type of think... (by Keelan)
How to get program to recognize if user enters anything but a number
 
#include "stdafx.h" #include <iostream> #include <string> using namespace std; int x; string favword; int main() { cout << "Enter your favorite num...
[6 replies] Last: Thankyou!! I understand the concept but it is still a bit confusing Il... (by ccrowley96)
How to get computer to guess a number given only "guess higher" or "guess lower" commands?
 
srand((unsigned)time(0)); int MyNumber = rand()%(100); I have this (I don't understand what it means) but I am able to generate a random number. I want t...
[2 replies] Last: Thanks for the clarification! (by ccrowley96)
A little if equation program
 
! After posting this i realized this is a forum for problems, where can i put code, that not necessarily has problems? ! Hello, here is a program that is able ...
[2 replies] Last: Thanks for the reply =) I will post future (complete code programs the... (by LuckyShot)
Login Program
 
Hello everyone, I'm new here and I decided to come because I had an issue I can't solve. I wrote a small login program that lets you register a username and pas...
[2 replies] Last: look up cin.clear() and .cin.ignore() because you're using cin >>... (by Zaita)
code::blocks problems
 
Hello :)! Im pretty new to c++ and programming in general. I just installed code::blocks on my laptop, and I were supose to compile the normal "Hello world" pr...
[1 reply] : Check the settings to see if mingw is the default compiler set, and ch... (by Aceix)
by Smac89
ternary operator
 
If I do something like: Primes ? ++count : 0; What do I put after the colons if I have nothing to put there? This is because I only want to check for Prim...
[3 replies] Last: Thanks for the responses guys (by Smac89)
by seteva
Please help with writing of program
 
I was given a problem and for the life of me cannot figure it out. We didn't go over it enough for me to truly "get" it. Maybe someone can help? Write a ...
[1 reply] : So basically you must add the salary to 50xthe number of cars sold if ... (by Aceix)
Problem with object argument
 
One of my classes is supposed to change a value on my object, but how do I pass the object to the function? Updated code if you scroll down... EDIT: Updated c...
[4 replies] Last: Check my hint. NOTE: it is with reference with the first post. Aceix... (by Aceix)
Animating sprite character using struct issues.
 
Ok, so I attempted using a struct to animate my character, since my original hard coding produced poor performance. Here is my code: //struct template for a...
[3 replies] Last: Ok, so changing value of 'i' to not exceed Total_frames still spits ou... (by Bawnawgwa)
Trouble With Classes
 
Im trying to grasp the concept of Classes, Structure's and Object Orientated programming and im having a lot of trouble, i have this very simple bit of code tha...
[7 replies] Last: Finally! thanks man appreciate it (by ReillyC52)
by kai356
need help with my c++ hw, using fstreams
 
so i'm new with this fstream thing basically i have to get my c++ to use a the following numbers from an outside .txt file 5 96 87 78 93 21 4 92 82 85 87 6 7...
[3 replies] Last: #include <iostream> #include <fstream> using namespace std; int main... (by kai356)
Error. Pow
 
#include <iostream> #include<math.h> #include<stdio.h> #include<conio.h> using namespace std; int main() { int a, b, c, i, d = 0, j = 1; scanf("%d%d",&a...
[2 replies] Last: Thank you (by marco33)
Cannot open file, Permission denied
 
I have been working on quite a large project for some time now, and I included <limits> in one of my header-files. When I tried to compile(using Code::Blocks) i...
[1 reply] : Problem solved by restaring computer... (by Hashimatsu)
Bubble sorting using pointers
 
I am haveing some trouble with my pointers in my bubble sorting. this is a class project. I tried using & as well, but to no avail. Please help me solve this. ...
[2 replies] Last: By commenting out: delete ptrResistor; to //delete ptrResistor; Sol... (by shadow1)
April 2013 Pages: 1... 6465666768... 83
  Archived months: [mar2013] [may2013]

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