Beginners - December 2015 (Page 38)

problem with while loop
 
having an issue with my while loop. the program compiles and runs but only the first line in my data file is being read. any suggestions on how to fix this? ...
[5 replies] Last: void data_out(employeeType anEmployee) { cout << anEmployee.fname b... (by closed account 48T7M4Gy)
Program skips "if statement" if true?
 
Thanks Peter87, kemort, and TheIdeasMan! I'll keep those pointers in mind when I look to improve my program. As of now, I'll submit what has already been done.
[7 replies] Last: Along those lines, http://www.roulette.com.au/strategy/playing-red-or-... (by closed account 48T7M4Gy)
by dana18
"segmentation fault.core dumped"
 
i don't know how to solve this , can anyone help me please? #include <stdexcept> #include <fstream> #include <iostream> #include <vector> using namesp...
[3 replies] Last: Line 10: The vector t is empty. You cannot access it like on line 19... (by coder777)
by dana18
convert problem
 
in main i have an error "cannot convert 'std::vector<std::vector<int>>' to '__gnu_cxx::__alloc_traits<std::allocator<int>>::value_type{aka int}' in assignment ...
[2 replies] Last: http://www.cplusplus.com/forum/beginner/180210/ (by closed account 48T7M4Gy)
by Enot02
This form parameters are difficult!
 
I've tried to change a parameter of form(Form1 here, TForm1 class) and the errors pops. Code: //-----------------------------------------------------------...
[5 replies] Last: Thanks programmers! Goodbye! See you next time! (by Enot02)
by Sakas
Fibonacci sequence into a vector<string> for sorting.
 
Write a function to produce the Fibonacci sequence. Use this function to fill a vector<string> with the first ten Fibonacci numbers. Sort the vector lexicograp...
[no replies]
by jem19
Snipper for (for loop, while loop, do while loop)
 
How can I make a program using this instruction? Snippet for : a program that prints all numbers between 0-10. using : a. for loop b. while loop c. d...
[3 replies] Last: See http://www.cplusplus.com/forum/beginner/179925/ (by closed account 48T7M4Gy)
by jem19
One Program (For loop, while loop, Do while loop)
 
Can I make a program together for loop, while loop and do while loop? Please help me . Thanks!
[5 replies] Last: See http://www.cplusplus.com/forum/beginner/179500/ (by closed account 48T7M4Gy)
EOF
 
Hi, I want to make a program in C which let you write something while the imput is != EOF. I think is: -ask you the text -save it in a string (because then ...
[no replies]
Stack as array
 
#include<iostream.h> #include<conio.h> void insert(int stack ,int &top,int n) { stack =n; top++; } void show(int stack ,int top) { while(top>=0) { ...
[1 reply] : Even when I am not passing the stack array as reference in the in... (by coder777)
Count the frequency of words in array and delete duplicates
 
I want to user to input a string and then I will make substring array of words in that string. Then I would count the frequency of each word and delete duplicat...
[3 replies] Last: You need a variable to store the number of unique words after you have... (by Thomas1965)
Passing a file into an Expression Tree
 
First the program will open a file which contains an infix expression that is fully parenthesized. The program will read this line and add it to an expression t...
[1 reply] : SOLVED: changed the build_tree function in the main to this: void b... (by stevecaboose)
getting errors with code please help
 
Write your question here. /*------Header File: Employee.h-----------*/ #ifndef EMPLOYEE_H #define EMPLOYEE_H #include <string> using namespace std...
[9 replies] Last: OMG I GOT IT TO WORK (EXECUTE) THANK YOU SO SO SOOOOO MUCH!! (by leashbomb69)
by cspace
Storing address: intptr_t vs uintptr_t
 
In using an integer to store a hex literal address, what is the difference between using intptr_t and uintptr_t? The reference indicates that they're both capab...
[4 replies] Last: I used "hex literal address" to mean the "literal" value here: (u)int... (by cspace)
by remone
One Time Pad- Encryption program
 
This is Final Project which i have never covered, i am having hard time, determining where to start, i would greatly appreciate any help i can get. Write a t...
[12 replies] Last: #include<iostream> #include<vector> #include<stdlib.h> #include <stdex... (by gg101)
by asam22
class constructors and initialization - Implementation Help
 
Help! how would i be able to implement a class constructor responsible for performing any initialization needed by the curses library using that CScreen(const c...
[no replies]
Unrecognized operand error
 
Hi, I'm currently writing a program for my C++ class, and there's one error message that keeps popping up everytime I compile that I can't understand. It says:...
[3 replies] Last: For example which line in the snippets provided is line 137 in your a... (by AtticusOmundson)
why is Return 0 not leaving my method??
 
I have written this as a void and int method still returns me back to the top of the method, when i want to leave and end the program PLEASE Help! int che...
[11 replies] Last: i see Thanks! (by nameishi)
Help with player movement
 
Hi guys, I am doing a little RPG in ASCII. Right now I have my map in an array and a little bit of fog in another array. I already add the keys and my program i...
[2 replies] Last: I would guess that since you don't have a case '*' in your print fun... (by cire)
Having trouble with multiple or's
 
I am having trouble, which I think is being caused from my OR statements not being valid. What I am trying to accomplish in english would be, if down_p = true o...
[1 reply] : if ( (down_p || left_p ||right_p) && g_up ) { (by cire)
December 2015 Pages: 1... 3637383940... 43
  Archived months: [nov2015] [jan2016]

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