General C++ Programming - November 2009 (Page 15)

Working with 2D arrays
 
I am working on a project using 2D arrays to display a class's individual grades, averages, and a class average. I am able to display the grades and class avera...
[3 replies] Last: UPDATE: #include <iostream> #include <iomanip> #include <cmath> ... (by mattzorx)
Quadratic Equation Program
 
I have my program below (it runs and compiles as is) , but having difficulty implement these conditions and outputs: conditions: 1. rejecting certain coeffi...
[4 replies] Last: 1.) Check that condition and then do whatever based on it 2.) Same as... (by firedraco)
Getting confused about buffer redirection
 
I have this code that looks like this: void open_new_log(ofstream &logfile) { char buffer; if (FILENAMES_USE_UTC) { get_utc_time(&buffer); } ...
[1 reply] : A single char is not a buffer. You probably want something like cha... (by Duthomhas)
displaying content and adding data problem
 
hi every one,im new here, and trying to finish off my program, it a soccer league table, runs perfectly, enters data(teams), but when im trying to discplay dat...
[no replies]
Are there any issues with using namespace std ?
 
Hi everyone I always use this in my programming, my friend said I shouldn't as it could cause issues, does anyone know of any issues it can cause? Thanks...
[5 replies] Last: even if you put the using declaration in a cpp file name conflicts can... (by kempofighter)
by vRltwE
Troubles using vector of stuct...
 
Hi, I am trying to set the property of an object. The property is a std::vector of type struct... void Vetor::setwaypoints(vector<waypoint> wp) { wa...
[5 replies] Last: Is there another thing I can post for help? Yes, a more complete ex... (by kempofighter)
Handling information in an injected DLL
 
I'm part of a development team that has created a DLL to interact with the client of an online game, Tibia. I recently committed something that I had been worki...
[2 replies] Last: Is there anyway to return iCmd and let the parsing happen separately f... (by Jo3Bingham)
by tomza
setprecision call
 
Dear all, if someone can find the time i would very much appreciate help on understanding the setprecision call. To me it seams as if it changes the da...
[2 replies] Last: Did you read this yet? http://cplusplus.com/reference/iostream/manipu... (by kempofighter)
by JRevor
Confused about stl's set
 
http://www.cplusplus.com/reference/stl/set/ Reading in the reference. Compare: Comparison class: A class that takes two arguments of the same type as the ...
[7 replies] Last: how in the world is set going to know when two elements are equal, on... (by kempofighter)
Problem generate ID from txt file
 
I would like to get the staff id information from staff.txt file and generate the new id, but the code that i create it wont work why? void staff::setstaf...
[1 reply] : There's too much faffing about with files when all you want to do is c... (by kbw)
Word Jumble
 
I'm trying to create a Word Jumble program where the user can choose a difficulty. My code is as follows: //Word Jumble //The classic word jumble game wh...
[4 replies] Last: I was told on another forum that I really screwed up the content of th... (by Tanthialas)
Prompting a user for a valid input file
 
Hello, I'm trying to write some code that prompts the user for an input file, checks to see if the file exists, and prompts again if it does not exist. Here...
[9 replies] Last: Because if an error occurs on input the stream will be set to an error... (by Duthomhas)
Reading/Editing Memory of Other Programs
 
Is there a way to read and/or modify the memory that is allocated to other programs?
[13 replies] Last: @Null Here again, it depends on the operating system. There is no s... (by closed account ivMjLyTq)
by SiNT4X
Coloured output over TCP
 
First post, hopefully not my last :) So, I know I'm young, but I do know about the OLD BBS software (you know, the kind you telnet into, and everything is by...
[3 replies] Last: As firedraco says, you just send the sequences and the receiving termi... (by Zhuge)
yet another prime number problem!!!
 
Hi! I am new to this website and Ive seen many prime number questions asked but none about my specific problem. It may sound simple but Ive tried everything an...
[7 replies] Last: thanks for that chrisname this is what i ended up doing for my functio... (by butterflyze)
funtion swap
 
somebory can tell me how to swap two colum of the two dimentional array that with pointer
[10 replies] Last: any clue guys? (by olove05)
how to implement a class hierarchy??
 
Hy there.. i need to implement a class hierarchy to configure the structure of a building.. a building got a nr. of floors,each floor got a nr. of flats,each ...
[3 replies] Last: Classes containing other classes, exactly what Bazzy said (by firedraco)
Finding an int key less than or equal to
 
For a map of int, is it possible to use an STL algorithm to find a key that is less than or equal to a value, that itself may be absent? If not, no need to p...
[4 replies] Last: Thanks for the replies. (by DerekBaker)
zero padded string from int
 
Hi all, Trying to add zeros (eg: "000000") to the left of an integer (converted to string). I am very new to C++. I am a VB/WinAPI programmer (16yrs) w...
[3 replies] Last: Thanks very much!! This worked perfectly. I guess I am going to hav... (by Roper724)
i/o stream + substr
 
Hi, I want to read a text file that looks something like this 54112F 540C0000 540D00 540C0000 540D00 540400 5410000A TIME 2540F49 and I want to spli...
[1 reply] : You would use std::getline() to get one line from the file into a stri... (by firedraco)
November 2009 Pages: 1... 13141516
  Archived months: [oct2009] [dec2009]

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