Beginners - November 2011 (Page 33)

Reading from File - Help
 
I'm making a program that processes values from a .txt file and then calculates the standard deviation. However, I am stuck in the beginning of the program beca...
[no replies]
by Cnewey
fgetc() - returning (int) 54 instead of (char) 6
 
Hi I am a newbie, hope someone can help me. (Section 1) I have a text file with one line of numbers: 6123456123456123 (Section 2) Here is my code to read an...
[2 replies] Last: Thanks whitenite1. (by Cnewey)
Help!!!! I'm stuck
 
Hi all Please Screenshot at - http://s7.postimage.org/gzn8rij63/C_Helloworld.jpg How do I take those files and turn them into a single EXE. One of two th...
[4 replies] Last: I have installed netbean and when I build the project then I get: mak... (by surplan)
Is it possible to build a vector of a template class?
 
I've defined a template class as follow: template <class T> class A { public: A<T>(){}; private: T t; string s; }; Then another te...
[2 replies] Last: Thank you very much! It was the missing space that the compiler compla... (by dmwizard)
by Dregel
My first program!
 
Hello! I'm totally new to this forum , C++ and any programing what so ever, just started out learning yesterday when i studied some source codes for very small...
[11 replies] Last: Alas computers are not intelligent ;-) You have to instruct it what s... (by Moooce)
Arrays and Fuctions
 
Hi, I have a question about creating arrays and returning pointers to them from functions. Below is some code I have to create an array: ems::MessageP...
[3 replies] Last: Being a C-styled array, you must also receive the number of items insi... (by webJose)
Opening file in a for loop with a changing integer in title
 
I am trying to convert a series of files into arrays. Each file is named molx.m where x is a number between 1-180. I am successfully able to convert one file to...
[2 replies] Last: Thanks for the help, if anyone is interested the code I used was: fo... (by Chunder)
by JanisM
massiv
 
If I generate a massive with what function I can find third biigest???? start of algo int main() { int skaits, rnd; cout << "cik random skaitlu...
[no replies]
by blankk
(Chars) Dynamic array allocation and assignment
 
I'm allocating memory for a 8X8 char array: char **game; game = (char**)malloc(8 * sizeof(char*)); for(i = 0; i < 8; i++) game = (char*)malloc(8 * ...
[3 replies] Last: yeah, sorry guys I guess I'm in the wrong forum. I'm asking for C help... (by blankk)
Using text files to write to arrays
 
I know that its possible to write and retrieve information to a text file from code, but I don't have a clue how to do any of that. I am trying to fill a huge ...
[6 replies] Last: GRex2595 wrote: ... but it won't accept a variable in myfile.open... (by Computergeek01)
structures problem
 
hello all, having a slight problem trying to solve this, using visual studio 2010....i have to write a structure that stores a students name, id, 3 test scores,...
[7 replies] Last: Hi, I have a question very similiar to this one. I'm given an assignme... (by DataDevGuy)
by Bluex
Program crashes when spaces are entered
 
Hey, i'm new to C++, i've been reading though Beginning C++ Game Programming and the exercise for chapter 4 was to create a program with stores the user's favou...
[5 replies] Last: Glad to hear it. It occurred to me that I might have tossed a few cobb... (by mzimmers)
Ifstream columns
 
I would like to ifstream a csv file and output several columns( but not the whole thing) how would i write the code so that it only reads ie. column D and G?
[1 reply] : Steps: 1. Use the getline function, but use the comma to delimit. 2... (by Stewbond)
Can I add a list as a private member of a class
 
I want to create a c++ class that I need to add an arbitrary number of items of type struct. So I thought I would have a private data member of type list (the...
[5 replies] Last: Thanks for your help everyone. I got it, or rather ne555 got it. Add... (by captainpirate)
list node template problem
 
I'm trying to write a simple template for nodes that can be used to make a binary tree. There's a compiler error, the problem is caused by the visit and the tra...
[2 replies] Last: That worked, thanks! (by Marcus Barbe)
Inheritance help and advice needed
 
I'm trying to inherit my displayData() for my derived OrdinryEmplyee class from my base Employee class. However I need some guidance on how can I do that.. ...
[9 replies] Last: Thanks alot! It worked (by Tampopo)
How do i go about doing calculation function?w
 
Say, i have a calculationPay() and i have a base class Staff and 2 derived class TempStaff and ContractStaff classes. For the relevant fields, i have float ...
[1 reply] : ...really? http://www.cplusplus.com/forum/beginner/55197/ (by Gaminic)
by tonnot
c++ rdbuf()->pubsetbuf for a stream, using a char buffer. I have no data in it
 
Maybe can exist a better solution, but this is what I have: mybuffer = new char (); // all to zero the_stream = new stringstream ; the_stream->rdbuf()-...
[no replies]
by Jawsh
Best solution to solve problem on inheritance?
 
HI all, I would like to write a programme that consists of a base class and two derived classes similar to the example file under "Friendship and Inheritance -...
[3 replies] Last: Thank you both for your comments! Yes I am aware that width and lengt... (by Jawsh)
Calendar
 
Hello Im trying to make a calendar in C++, And I was wondering if anyone could explain how to make a table in the output?
[2 replies] Last: thanks ill give it a try (by galiphat13)
November 2011 Pages: 1... 3132333435... 65
  Archived months: [oct2011] [dec2011]

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