Beginners - November 2015 (Page 25)

by Roody
Vectors beginner problem ..
 
Hi , i'm using vectors for the first time in a project , my project about Bnking system , my idea is the user enter a name and the program will search for it ...
[10 replies] Last: > I'm using Microsoft Visual 2010 Express Switch to a current release... (by JLBorges)
Line 180-183 NEED HELP Vector Element ERASE
 
#include<iostream> #include<fstream> #include<vector> #include<string> #include<cmath> #define ifile "input1.txt" #define ofile "out.txt" using n...
[4 replies] Last: > I am a little lost at the std:: no idea what that translates to See... (by JLBorges)
std::floor() behavior
 
Hello forum, I tried some snippet with the function std::floor over the double value type. Here goes the snippet: #include <iostream> #include <cmath> usin...
[2 replies] Last: Check the second value, after the addition of 0.5 , the value is alre... (by jlb)
Is it ok to assume 0 is false and 1 is true?
 
I've seen code where a condition is evaluated based on an int variable instead of bool. int condition cin >> condition; if (!condition) //do somet...
[2 replies] Last: > Is it supported by all C++ compilers as a standard? Yes. In a bo... (by JLBorges)
Quadric Equation
 
Write your question here. Need Help! I have to write a program that solve the quadric equation for x the program has to open and get data from a file. Here is...
[1 reply] : he code will not compile No offence but this isn't very helpful. If... (by mutexe)
SFML Help undefined reference and #include help
 
Hello. I'm trying to make a game with SFML. The problem is that when I'm trying to display the sprite of the ship it is giving me an undefined reference. Also, ...
[3 replies] Last: An undefined reference means the linker can find no definition of a ... (by cire)
How to input 50 numbers from data file? Arrays
 
Hi im new programming im having problems with a program i am doing for school here is the question a group of 50 people have gone apple picking in Pennsylvania...
[3 replies] Last: Good deal! (by chicofeo)
Prompting user for input into an array
 
I am having trouble with a homework assignment for c++. I need to declare an array that can hold up to 1000 data points. Then I need to prompt the user to ask h...
[1 reply] : Please don't double post - http://www.cplusplus.com/forum/general/1789... (by TarikNeaj)
invalid conversion from ‘int’ to ‘Array<int>**
 
I'm getting the above error pointing at my initlist in Matrix and I can't seem to figure out why. It definitely has something to do with the way I defined m. Fo...
[1 reply] : Anyone? I'm still spinning my wheels here seeing if it could be my arr... (by omega4relay)
char sum in string
 
I need help finding the sum of char elements in a string. For example the string below is "test string" and I want to sum the number of times "t" and "s" occur ...
[1 reply] : Below is a way (not the way) of what I would do: I would create a cou... (by chicofeo)
computer assisted instruction
 
Hello, I am having trouble with my code. I am making a computer assistance program that outputs multiplication problems. At this point, I want the user to type...
[11 replies] Last: I have to create a function to create a new question for my program f... (by closed account 48T7M4Gy)
Error with output
 
So I'm building and running my program successfully with no errors, but when I enter values, after the last one, the output screen does something weird and scro...
[2 replies] Last: Your program starts scrolling at the Highest selling Product output. i... (by jasonwynn10)
arrays: pow and sum
 
how can i raise each element in an array to it's specific location in the array using the pow function and then sum each raised element for one total figure. Fo...
[2 replies] Last: Got it! I also needed to change i<=n to i<n ... (by nuglyfe)
Data Integrity
 
Hey Guys, I am new to c++ and am looking to get some help on an assignment. I've been looking at this code for hours and just haven't moved forward at all. A...
[2 replies] Last: We, therefore, the Representatives of the united States of America, in... (by AustinWolfman)
Need help with error on code
 
Create a class named Student. The class should consist of the following private data members : social security number and name (last, first or first, last?). ...
[2 replies] Last: Thanks (by ileashipa7)
Issues with loop and setprecision
 
im having issues with this code. my problem is i need it to continue to run until i enter 0 as the "total". and i also need a setprecision to 1 decimal place on...
[no replies]
Code is bypassing imput.
 
Good Morning! I have experience with scripting and linear programming, but I am having an issue with the code below and I hope someone can assist. When ex...
[2 replies] Last: gomicoo, Thanks - I know the program is faulty - I guess you could sa... (by kinyodas)
Constructors
 
Hello! I am writing a program exactly like this one: http://www.cplusplus.com/forum/beginner/86236/ I read through the comments and watched the recommen...
[1 reply] : Constructors are quite simple. They are simply functions that are cal... (by AbstractionAnon)
Defining a global variable in the header?
 
Hello, I have a variable named fSize in the header Structures.h and initialized it to 5: #include "stdafx.h" #include <iostream> #include <string> #include <...
[3 replies] Last: have a variable named fSize in the header Structures.h This variabl... (by jlb)
BMI- calculator
 
Hej. There's a problem, that I can't find so please help. "Dizagnoza" shows "niedowaga" before each diagnose after third "if". #include <iostream> usin...
[1 reply] : 1n line 16 use decimal point instead of decimal comma (by Kevin C)
November 2015 Pages: 1... 2324252627... 53
  Archived months: [oct2015] [dec2015]

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