Beginners - November 2013 (Page 34)

by sof2
benefits asked before employee, why?
 
the code works fine for the most part, it just asks for health, life, and vacation before the rest of employee info, but it does display it in the proper spot a...
[no replies]
Display String Stored In Array
 
How would I get a name stored in the array cRoster to display under "Class roster"? I know I somehow need the program to equate "string name" with cRoster , I'...
[no replies]
by JohnJH
Progressbar
 
Does anyone have a code for an console progressbar.. I would write it myself, if i knew how i should it should print the amount in procent and show it using th...
[9 replies] Last: Download boost from here: http://www.boost.org/users/download/#live A... (by JLBorges)
string array of structs from a data file
 
I am having a problem dividing a string so that I can create an array with structs. I can get the data to divide at the "|", but how do I get the array to accep...
[4 replies] Last: Thank you. I had tried something like that before and it didn't work. ... (by kraftykayjay)
by dero
Read data from a file
 
hey all I am trying to read & extract data from a trace file I have created a program where I can count the number of received, sent, dropped pkts and then ...
[9 replies] Last: hey all i tried using the same code to print out and count some items ... (by dero)
by fayt84
Starting C++ First Time
 
I downloaded the Bloodshed Dev-C++ compiler and can't get anything to work. I tried the code below but nothing happens after I compile it and run it. No error...
[5 replies] Last: Great thank you. (by fayt84)
<>Function that gets name and hourly rate from file
 
Write your question here. I need to create a function that reads from a file and displays name and hourly rate beneath a header. Everything is in place, ...
[3 replies] Last: @Garion You may return using pointers , references , or by actually ... (by giblit)
by iphone
parcing for c++ begin
 
if this program wokrs correctly 52 #include <iostream> using namespace std; class Purse {public: int hundreds, fifties, twenties, tens, ones, halves, quarters...
[1 reply] : another duplicate? http://www.cplusplus.com/forum/beginner/117105/ (by Chervil)
by iphone
headers instead of c++
 
Write your question here. header files instead of c++ 52 #include <iostream> using namespace std; double Maximize(double a, double b); class Student ...
[no replies]
by iphone
syntax error for classes and pass
 
if its possible to write classes without any syntax errotror 52 #include<iostream> #include "Coursee.h" #include <cstdlib> using namespace std; doubl...
[1 reply] : duplicate question: http://www.cplusplus.com/forum/beginner/117105/ (by Chervil)
by iphone
programming read write files
 
programming read write files what to dooooo #include <iostream> #include <string> #include <fstream> using namespace std; string Name=""; string capa...
[1 reply] : In more than one place you have = instead of == , such as line 84 ... (by Chervil)
by iphone
helppp in reading and writing files
 
after reading and writing a file I don't know if this code is correct #include <iostream> #include <string> #include <fstream> using namespace std; string Name...
[no replies]
by nnug
C++ Function problem
 
So for my assignment i need to input a name and then call a function to see if the name is valid then give them a code. I'm not sure what to put in the Ch...
[2 replies] Last: Oh cool thank you so much :D (by nnug)
by Garion
Templates
 
I was reading through this websites tutorial and I was a little confused by how this program works. This part here is the main source of my confusion. Nevermi...
[no replies]
Problem With My Class
 
This is my first time writing a header class file and I'm stuck. Here's my code. Any help is greatly appreciated. :) Thanks! Header File: #ifndef EMPLO...
[4 replies] Last: Nevermind! I figured it out. Thanks for the pointer. Here's my final c... (by daft science)
problem in linkedlist
 
I have written the following program that gets two linkedlists from the user and then sholud cimpare them by the function " comparing " and if the number of the...
[6 replies] Last: I replaced the (head!=NULL) with (head->data!=-1)and it worked. (by victoria1)
by enemy
wrong cout of array
 
Please, what is wrong now? I am even checking in a book...??? #include<iostream> using namespace std; int main(){ int array ={ 33, 55, 77 }; ...
[6 replies] Last: Thanks:)! (by enemy)
Linked List
 
My question is how do i create a linked list in which i add a node, and that node points to the next node? Could you please help me?
[no replies]
Inconsistent output in vector problem
 
I have written a code to find the standard deviation of all elements in a vector (the first n primes are inputted). Whilst my code always compiles it will crash...
[3 replies] Last: Managed to fix the code by changing it and passing by reference. (by qwerty321)
by Fiton
showing the odd numbers
 
So as you can see from the topic im a beginner on c++ and i have an assignment to find the sum between numbers n to m which are divided by 3, my question is how...
[2 replies] Last: thanks a lot, it really helped me. (by Fiton)
November 2013 Pages: 1... 3233343536... 80
  Archived months: [oct2013] [dec2013]

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