Beginners - October 2012 (Page 40)

delete record (1,2)
 
#include "employee.h" void readRecord(Employee *theEmployee , int &size){ ifstream inFile; inFile.open( "employee.txt" ); if( inFile.is_open() ...
[35 replies] Last: get it after u gv me the link. problem solved ! thanks (by BasicNewbie)
debugging
 
i want step by step explanation of the function "fun" please help #include<stdio.h> #include<string.h> void fun(int * p); void main() { int arr ={0...
[7 replies] Last: @shahzaib1111 If this is still unclear, I suggest you study each of t... (by Chervil)
by skarla
Pong games.
 
Yesteday i started with Opengl and i am working 2 days with SDl and 4 months with c++. 1)So i made a PONG game with SDL-Opengl with a bit help by some tutorial...
[no replies]
by Ryusko
Function to remove item from vector
 
I'm trying to find an efficient way to remove an object from a vector without leaving a hole. The documentation I've read has been a little obtuse for saying ho...
[3 replies] Last: How would I use remove in this situation? I understand how it works wi... (by Ryusko)
How to determine winner in my Tic Tac Toe program
 
#include <iostream> #include <string> #include <cctype> using namespace std; //routine to display the current tic tac toe board void PrintBoard(string...
[5 replies] Last: Here's a possible solution for your perusal. While I would disgree on... (by cire)
++ operand order driving me up the wall
 
Why in the world would it process from right to left ? who does math in that order, especially addition ! int a = 1; cout << a << a++ << a++ << a <<...
[2 replies] Last: Using the post-increment operator multiple times on the same variable ... (by guestgulkan)
Printing fractions with classes help?
 
So I am way lost as usual... I have an assignment due tonight, here's whats needed. Create a fraction class with the following members: numerator - a data ...
[6 replies] Last: When you declare a function, you need to specify what it returns. E.g... (by Moeljbcp)
Error Help
 
Hey there, I'm getting an error and need help understanding it. Here is the coded i have: #include <iostream> using namespace std; struct english_a...
[1 reply] : There are a number of major problems. 1. No main function. 2. With... (by TheIdeasMan)
mandelbrot set issues
 
I thought I had this but I most certainly don't. The code I have written so far does not display anything like what a mandelbrot looks like. The assignmen...
[3 replies] Last: That region looks pretty much like that. It's not a particularly inter... (by helios)
c++ and html? help!
 
hi I am learning html and i know quite a bit of c++. I want to know if there is a way I can display a game made in c++ in an html website. Thanks in advance. ...
[12 replies] Last: damn it i forgot all about that. ill try it tonight and give a review ... (by Aramil of Elixia)
by Tate
Having some issues with an IF statement within a WHILE statement
 
My code was working fine before placing an IF statement within a WHILE statement (see line 31) . You should be able to enter "Q" when all orders are entered a...
[8 replies] Last: Thanks, everyone! I was able to solve the problem I had with this pro... (by Tate)
linked list
 
i am getting an infinate loop for the while 67 and 71 lines i think it might be because the last node is no longer pointing to NULL. i have hand traced on paper...
[no replies]
help with files
 
Description: You are shopping at your favorite store. You select one item of merchandise marked at a listed price. At the checkout, you ...
[2 replies] Last: error i get: coupons_b.cpp:2: parse error before `--' token In file ... (by byronflds)
by rogom
While-Loop Help
 
Below is code that reads in student last and first names, various scores and calculates their averages. The first line of the input file is the key that gives m...
[no replies]
How to made Auto Sorting Singly Lingked List
 
So basicly i'm newbie..so i need a help and guide from some expert here i want to make a list in the list i will have ID,and NAME and when i inserting the da...
[no replies]
Calling functions
 
I can't seem to get the hang of this. Can anyone tell me what my problem is? // Lab010Ex1.cpp
[6 replies] Last: Except that the conversion from miles to km is multiply by 1.609 not 1... (by TheIdeasMan)
mutator or accessor
 
hi . I'm new to here ! wanna to ask a question i try to read this in my file using class with accessor and mutator 2 CSCI124 Applied Programming 6 2 ...
[2 replies] Last: Your question is not very clear. Since readRecord is not a member of a... (by cire)
poly using pointers and classes
 
I need a polynomial class which uses pointers and dynamic arrays and create operators to test the polynomial Our professor forbid us to use vectors maps and ...
[no replies]
by yvan
Segfault with substr
 
So I have narrowed down a segfault to a trim function that's using substr, where the substr call is ultimately causing my segfault. I've been doing a fair amoun...
[6 replies] Last: thanks vlad! that resolved the problem! i guess i'm still in habit fro... (by yvan)
Help with static member object
 
Hello, I am trying to set a class object as a member of another class but I am missing something. When I declare my object as global it works fine. Here is an e...
[5 replies] Last: Should I still declare it in the class as static Print a; ?... (by zanklob)
October 2012 Pages: 1... 3839404142... 84
  Archived months: [sep2012] [nov2012]

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