Beginners - October 2010 (Page 11)

by Rave
Accessing private members of C++ classes
 
Hello, this is my first time posting here. yay. i have a small problem, i was told that i am able to access a class within a class directly, example:: i...
[7 replies] Last: Disch, thank you, i understand now. Thank both of you for helping m... (by Rave)
Template Functions
 
I'm sure that there's some simple fix for this, like a missing keyword or something, but I seem to be googling the wrong terms. Also, I should be putting this i...
[4 replies] Last: Thanks, will do. (by pabloist)
Searching problem
 
Hi guys, I'm trying to search a word in a binary file, what I did is to read the file and load it to a memory pointer, but there seems to be something wrong wi...
[5 replies] Last: Galik, has anyone told you you're the best? Thanks a lot man, this ... (by claudiordgz)
by Darke
Problem with 2d arrays.
 
I'm trying to write a slot machine program. Here's what i have done so far: #include <iostream> #include <ctime> #include <cstdlib> #include <iomanip>...
[4 replies] Last: That is correct. Thanks! I will keep the thread unsolved until I fe... (by Darke)
Loop goes crazy on me
 
Hey all, I'm just playing around with code here getting a feel for C++...when i encounter this problem do{ cout<<"Guess the frequency of the beep...
[4 replies] Last: Thanks hamsterman..after 4 hours tinkering about it finally works. I l... (by closed account 2wC9GNh0)
Doubly Linked list.......Real Confusion
 
I am trying to write the code for double linked list........it works fine for a single linked but not for double. I have bolded the line that is the cause of t...
[3 replies] Last: look at this for the st list: http://www.cplusplus.com/reference/stl/l... (by coder777)
Adding an if-else statement, where?
 
I have most of a program written but need a little assistance for the last part of it. Here is what it needs to accomplish 1. Prompt the user for a value. ...
[3 replies] Last: Wow, thanks a bunch hamsterman. I really can't believe it was as simp... (by pnsmcgraw)
Can't load DLL using LoadLibrary
 
I use this code, and it doesn't load the DLL for some reason #include <windows.h> #include <stdio.h> #include <iostream> #include <cstring> bool initd...
[3 replies] Last: Thanks man, it works :D (by C Plus Noob)
saving a vector to a file
 
Hello everyone.I am new to this forum and also new at C++.I have the following difficulty and I hope you can help me. I have a project to make a line editor,bu...
[1 reply] : To write to files, you can use fstream: http://www.cplusplus.com/refe... (by Athar)
Writing a function to sort three floats...
 
Okay, this forum has been a big help, but I'm banging my head on the wall now. I need any help you can offer-just point me in the right direction. Here is my a...
[11 replies] Last: Thank you thank you thank you...phew (by anthonys1mom)
by atrosh
Derived class copy constructor not being called
 
See link below.
[1 reply] : http://www.cplusplus.com/forum/general/30426/#msg164882 (by Disch)
by firix
istream
 
Hi, Write a function that, given an istream and a vector <string>, produces a map <string ,vector <int>> holding each string and the numbers of the lines on ...
[14 replies] Last: void readss(istream &is, vector<string> svec) { string s; str... (by firix)
by yulz
function problem error i cant find
 
hi im reading a book and trying to solve one of the problem in it. my program isnt compiling #include <iostream> using namespace std; void getJudgeData(f...
[2 replies] Last: thanks, is there one for finding the least? (by yulz)
by wasabi
Deleting elements of a vector
 
I have a function which receives as inputs a vector<> full of line-segments defined by their nodes. However, there is a maximum length for each permissible line...
[12 replies] Last: I won't be able to implement this until Monday (no access to my code f... (by wasabi)
by ade161
assistance with program
 
Hello, i need help with creating a program that allows the user to enter a payroll code. The program should research for the payroll code in the file and t...
[2 replies] Last: [quote=Igor1024]Firstly learn to make up algorithms, then show your id... (by filipe)
Unknown number of elements into an array
 
Hello, I've just started learning C++ and I need to find a way to read data from .txt file into an array of int. I've been browsing for quite some time, and ...
[3 replies] Last: The same way you would when reading the line into the array, except th... (by Duthomhas)
What is the syntax for undefined?
 
Hey guys I can't seem to find the syntax for undefined. For example if I need to say if(x == undefined) or something like that. It is really bothering. Thanks f...
[8 replies] Last: [quote=Kyon]Really now? Then why does this compile? Because that is d... (by Duthomhas)
by Nosce
c++ with char
 
Hi, I need a lil help with my homework. the main function looks like this: int main () { char a; a='A'; char b; b=2; char c = a+b; cout << "c=" ...
[2 replies] Last: Thank you :) (by Nosce)
by yulz
function not returning correct result
 
hi im trying to solve a problem in a book im reading and i cant get the correct answer #include <iostream> using namespace std; float celsius(float); ...
[2 replies] Last: Thanks! It worked! (by yulz)
need c++ direction, gcd read from file
 
alright, i have this project i'm working on where one needs to read several numbers from a file and find their gcd two numbers at a time. for example fi...
[5 replies] Last: what does it read then? (by hamsterman)
October 2010 Pages: 1... 910111213... 42
  Archived months: [sep2010] [nov2010]

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