Beginners - April 2012 (Page 42)

Help with Arrays - Need Help with inFiles & outFiles
 
"""The history teacher at your school needs help in grading a True/False test. The students' IDs and test answers are stored in a file. The first entry in the...
[18 replies] Last: There's no output to the screen (besides that first part), or no outpu... (by long double main)
Finding Primes Between Two #'s
 
I am currently making a program that has the user input two numbers. My program will find all the primes in between the inputted numbers. This is what I have: ...
[16 replies] Last: Maybe this will help, heres a project euler program i wrote involving ... (by Need4Sleep)
identifier not found problem
 
I'm not sure what i'm doing wrong, any help would be great. //treenode.h #ifndef TREENODE_H #define TREENODE_H template<typename T>class tree; tem...
[2 replies] Last: These are the errors that I got when I tried to compile this (next tim... (by long double main)
Access of members (previously "Inheritance problem").
 
Hello! I was trying to allow my "Enemy" class in the code to inherit the public information (and with it, protected) from the "MapFunctions" class in my progra...
[7 replies] Last: [quote=Exispistix]Would it be possible that you could show me an examp... (by Disch)
Setting up related classes
 
I am a newbie and am trying write a phone book program. Entries in the phone book have to be one class and the phone book has to be a second class. A phone bo...
[1 reply] : Please use code tags ([ code] [ /code] without the space). Anyway, th... (by Gaminic)
Divide array
 
I have a stream of numbers that I want to divide into two separate arrays my coding works while in the loop but not if I try to output the two arrays together ...
[8 replies] Last: good (by scottramos18)
by mtsac
Need assistance modifying c++ program for class, like really bad.
 
With generous help, I managed to write the following the program: #include <iostream> #include <string> using namespace std; int main(void) { string...
[2 replies] Last: int main(void) the void is useless and is non-standard for c++, it is... (by ui uiho)
by JP3
Non-Class Functions using Class Data
 
Hello I'm hoping someone might be able to help me with an issue that I'm currently facing with a program that I'm working on for a Uni assessment. The questi...
[6 replies] Last: well i know my solution isnt the best,but its a simple way to acces in... (by even821)
Help with input File. Urgent!
 
#include <iostream> #include <iomanip> #include <string> #include <fstream> #include <ostream> using namespace std; const int NUMBER_OF_PEOPLE = 10...
[1 reply] : Add some debug logging. Have the code output things like "File opened ... (by Moschops)
mysqlpp returning a string.
 
im trying to get a string by using: mysql::execute("SELECT name FROM test WHERE id = '3'"); But i dont know how :S heres the code behind "mysql::execute"...
[no replies]
by NNinja
Help, please extra row in output
 
Hello! I'm very new to c++ and am currently enrolled in an intro class. For my code, my output has an extra row in it and I've tried everything I can think of! ...
[3 replies] Last: you're welcome, and glad it did work for you :) please mark the questi... (by altbdoor)
C++ Maze program, like a mud
 
I just finished my first c++ class and not taking another this semester but still want to keep tinkering around with it. My wife and I play a mud and she though...
[8 replies] Last: well in a way yea like that. Have you played a mud? Check out http://w... (by raines883)
question on pointers, structures and graphs
 
hi i'm working on my assignment, and it requires me to use graphs. here's a snippet of the code ptr_vertex=(VERTEX *)(pass_head->firstV); if (pass_he...
[12 replies] Last: thanks for the clarification. (by altbdoor)
need help......................
 
guys how do i reverse a string array without using the strrev function. my codes wont work.
[1 reply] : if you are allowed to create another string array char x1 ="abc"; ch... (by altbdoor)
How object created by new destory?
 
I am still confused about how object create by new being destroyed consider the following example: class C{...}; char* void test(){ char *a = new char ...
[2 replies] Last: [quote=ResidentBiscuit]They would all die when the function is done. ... (by naraku9333)
Replacement for system("cls"); ?
 
Are there any other methods of achieving this? Thanks in advance.
[2 replies] Last: If you really need to clear the screen that badly, here: http://www... (by long double main)
function template
 
If I could impose and post some code? I'm changing an overloaded initializing function to a template function. My object code is having: ProgramOneWithMFP.ob...
[2 replies] Last: ldm, Thanks for that. I'm going to put declarations and definitions in... (by erandall)
assignment due in a couple days please help
 
#include <iostream> #include <fstream> #include <string> #include <vector> using namespace std; //function protoype goes here int main() { ifstream...
[2 replies] Last: code tags please. also you know what vectors are and not functions? (by ui uiho)
Termination condition on for loop
 
Hi everyone, I have a for loop inside of a main function for a program I am trying to write. The for loop exhibits normal behavior and does what I wanted to, h...
[1 reply] : code helps. eclipse is a great IDE so i do not think that would be the... (by ui uiho)
string subscript out of range?
 
Trying to get an assignment done for my programming class, and the teacher doesn't explain what needs to change in my code, just where it went wrong. So, she t...
[4 replies] Last: Okay, spells out of the initialization list. spells is defined as spe... (by korruptphantom)
April 2012 Pages: 1... 4041424344... 66
  Archived months: [mar2012] [may2012]

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