Beginners - October 2014 (Page 36)

Entering values to a vector and print it
 
I can´t get all the values to print and I get a value printed at the first row that isn´t supposed to be printed. Th build should be successful. No errors. ...
[2 replies] Last: Solved it. Thank you :) #include <iostream> #include <vector> usin... (by patriic48)
by Occam
Reading from file
 
A function takes a word from a list, counts how many letters it contains and print it out like this: 5 qatar 3 qua 5 quack 7 quacked. Now I have a text...
[5 replies] Last: I couldn't get strlen to work. Maybe i would have to restructure the c... (by Occam)
by k99
what is this dot?
 
example = str.emphatic(); what is this .? is this a assigning function prototypes? base on the = (assigning operator) and emphatic(); (prototypes functio...
[2 replies] Last: Thanks miinipaa (by k99)
Everything seems to be working but read from file part
 
If someone could please help me grasp reading from a file i would appreciate it. #include<iostream> #include<iomanip> #include<string> #include<fstream> ...
[18 replies] Last: it's has to be an issue with how im opening the file or something beca... (by jafox192)
Help with program
 
Please help with my program. #include "StdAfx.h" #include <iostream> #include <iomanip> #include <string> using namespace std; int main() { ...
[8 replies] Last: Line 29,34,303: You're trying to compare ints to a quoted string. ... (by AbstractionAnon)
Result outputs 0
 
Hi there, I am just testing a simple maths equation here. Lets say i want to perform (12345678901234567890^9876543219876543) mod 12345678975313579, wolfram...
[5 replies] Last: i think that your compiler doesnt support out of range number so it wi... (by xenovia12)
Recursion
 
Write your question here. How do i define a recursive function printing a diamond
[5 replies] Last: sorry if didnt take not of int p= 1 of line 4 ... (by shadowCODE)
Please Help Me Do The Descending Sortation
 
could you Help me.. how to Add reverse the Answer (Add The Descending Sortation)? if i Put 10 on "n" The Answer Is : 2,3,5,7 But I Want The Answer To Be : 7...
[9 replies] Last: ok (by shadowCODE)
Linked list head
 
I cannot figure out how to update node *head. I know realize it carries the NULL node from main to the insert program, but it doesn't come out as the new value,...
[no replies]
while loop and failbit with other conditions unexpected behavior
 
Why doesn't this work? while (!(std::cin >> stat) || (stat != "hp" || stat != "str" || stat != "aff")) { std::cin.clear(); std::cin.ignore(); std:...
[2 replies] Last: Wow. This post is probably a reminder that I should not be doing this... (by bryan177mcsc)
I need help with recursive.
 
Hi. I am taking a course on C++ but now i regret. professor taught some basic knowledge but the homework seems complicated. please help me. int sum_do...
[2 replies] Last: lets explain for x=0 from main, #include <iostream> using namespace s... (by anup30)
How to write a program that will display the values of A, B, and C with the respective formulas?
 
How do you write a C++ program that will display the values of A, B and C with the respective formulas? A = (x+y) * z/3; B = x+y * (y+z/2)-15; C = x + (y+z...
[1 reply] : double x = 3; double y=4; double z=5; double A = (x+y) * z/3; double... (by MiiNiPaa)
Copying data file to array
 
I need to copy the data from the following file to a structure array: Martin Smith/ 22 2.2 Austin Clinton/18 3.1 Johnson/ 19 2.9 Maggie Jones/ 23 2.3 Tyler W ...
[9 replies] Last: Just do what it tell you to. Use _strupr instead of strupr How to use... (by shadowCODE)
Trouble with a function!
 
I am working on my C ++ homework. The goal is to create a function which will check a given file for a particular word, and then return the number of times the ...
[9 replies] Last: Here is an example of this error: http://ideone.com/pfuEEi (by MiiNiPaa)
how to count chars?
 
So i'm trying to write a program that counts vowels and tells the user how many vowels they entered and how many consonants they entered. problem is my answer r...
[3 replies] Last: Please explain lines 12, 17, 19, 24, 31, 45, and 49. PS. Indentation ... (by keskiverto)
New and cant get function calls
 
not sure why but none of my function calls are working the funcctions themselves have out put when i make them programs on their own but as functions all that o...
[2 replies] Last: thank you (by jafox192)
Grading program for an unknown number of students with several qualifiers.
 
Hello everyone! I was wondering if you guys could give me a hand. This is my final assignment for my introductory C++ course and I am a little confused abou...
[4 replies] Last: Thank you so much... For some reason it looks much simpler in pseudoco... (by Pickleboy)
I can't seem to figure it out...
 
Please help here is my code however I am not sure how to output text to a file and then use the file in the program below. The title of my file that I was attem...
[1 reply] : In line 19, you correctly read from the file inputfile>>population ... (by shadowCODE)
by Myna
Please help improve this geometry calculator
 
I need to improve my program in a following ways; ● When the user enters wrong input for radius, length, width, base, or height, the program will continue t...
[5 replies] Last: Thank you, i just figured how to use do it out too lol. Also to avoidi... (by Myna)
Printing linked lists with struct
 
I think that my information is loading into the list, but I can't verify it because I can't get the list to print. This is for school. [#include <iostream> ...
[6 replies] Last: We are putting nodes in the front. Nothing is getting to the show func... (by kraftykayjay)
October 2014 Pages: 1... 3435363738... 70
  Archived months: [sep2014] [nov2014]

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