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. ...
Oct 16, 2014 at 3:19pm
[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...
Oct 16, 2014 at 2:23pm
[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...
Oct 16, 2014 at 1:20pm
[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> ...
Oct 16, 2014 at 1:13pm
[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() { ...
Oct 16, 2014 at 1:13pm
[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...
Oct 16, 2014 at 12:51pm
[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
Oct 16, 2014 at 12:36pm
[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...
Oct 16, 2014 at 12:33pm
[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,...
Oct 16, 2014 at 11:56am
[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:...
Oct 16, 2014 at 10:08am
[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...
Oct 16, 2014 at 9:49am
[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...
Oct 16, 2014 at 9:47am
[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 ...
Oct 16, 2014 at 9:31am
[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 ...
Oct 16, 2014 at 8:23am
[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...
Oct 16, 2014 at 8:05am
[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...
Oct 16, 2014 at 7:19am
[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...
Oct 16, 2014 at 6:42am
[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...
Oct 16, 2014 at 6:27am
[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...
Oct 16, 2014 at 6:06am
[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> ...
Oct 16, 2014 at 5:51am
[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.
Registered users can post in this forum.