General C++ Programming - September 2013 (Page 26)

File Handling problem
 
#include<fstream.h> #include<conio.h> #include<stdio.h> #include<string.h> class employee { ...
[3 replies] Last: C:\m\Programming\x> a 177 Johnny 12.50 177Johnny12.5 C:\m\Programmin... (by Duthomhas)
Storing constant, frequently accessed data.
 
Hey guys, I'm redesigning some code and I'm wondering what the best ways to store and access cert...
[10 replies] Last: That may be crazy enough to work. The program isn't exactly memory bou... (by Gaminic)
Efficient/fast file reader.
 
Hey guys, I'm doing tests these days which requires handling many, many files. While reading is n...
[6 replies] Last: There's a convenient function, similar to boost::lexical_cast that use... (by closed account S6k9GNh0)
finding the smallest, largest,average number do while loop ,pls help
 
im stuck looking at whats the problem, please help. #include <iostream> using namespace ...
[1 reply] : Your variable num is getting overwritten in subsequent read operations... (by abhishekm71)
Selecting Best Arrays
 
Supposing you have a 3 or more overlapping arrays (arrays having elements in common), and you wish ...
[4 replies] Last: Thanks so much, i think i get it now. You the best (by mayopia)
Auto-redefining members
 
It may sound daft to some and genius to others however I doubt this is possible and I want to know i...
[11 replies] Last: I was thinking that it could be better just saving the format into a m... (by TheBeardedQuack)
#define statement assigning addresses
 
I dont understand the pointers or the parenthesis. Please help #define PORTA *(unsigned char v...
[2 replies] Last: You're basically saying you want to access the byte 0 in the memory. (by S G H)
by Ceset
extensions of the files
 
hi guys. i have some knowledge about extensions but i dont think i have enough. and i woul...
[8 replies] Last: The concept of binary files really "clicked" for me when I tried creat... (by Stewbond)
logarithm
 
hi all how can i calculate a logarithm with my own base for example log on base 0.52 ?
[2 replies] Last: http://en.wikipedia.org/wiki/List_of_logarithmic_identities abhishek... (by Stewbond)
Help Please with selection sort
 
solved ty!
[3 replies] Last: @TC: So what happened to the code that was solved? (by Zhuge)
Why does this code work so weirdly?
 
It doesn't make sense at all. Here's the code: #include <iostream> #include <windows.h> #include <c...
[2 replies] Last: Well, all the elements of mark are initialized to the empty string, s... (by Zhuge)
difference b/w variable Declaration inside and outside the for loop
 
Hi, i am a student and i am also interested in programming. i have a confusion in mind about loop...
[1 reply] : See http://stackoverflow.com/questions/7959573/declaring-variables-ins... (by JLBorges)
by Nybble
std::unique_ptr memory leak?
 
Hello guys, I have this issue with this gamestate system I'm trying to implement this is the pseu...
[4 replies] Last: > I hate when little things like this affect the program in such an en... (by JLBorges)
by Daleth
Function Pointer to a Standard Operator
 
How would I go about passing one? I have these functions: void bitwise_helper( FOO& f, FOO s,...
[no replies]
Specializing boost::unordered_set to handle 'unordered' pairs
 
I needed a hash-container to take advantage of constant-time searches so I came to unordered_set. Un...
[1 reply] : > Must I define both 1) a hash function that hashes to the same value ... (by JLBorges)
char and more
 
I'm trying to get the hang of the declaration and use of char. I'm trying to write a program that r...
[3 replies] Last: Your code clearly indented and wrapped in code tags... #include<iost... (by Elidor)
Design Review
 
I started to learn C++ recently and as a starter was asked to design a class for fractions which can...
[2 replies] Last: I think code wise its pretty well designed. To full advantage of the l... (by Elidor)
boost.xpressive help
 
i was told to use boost.regex for regular expressions. i couldnt get it built so i decided to use bo...
[6 replies] Last: ty http://pastebin.com/H98ku3zS (by closed account Dy7SLyTq)
Obtain the correct array size in a function
 
Hello Programmers, I've been wondering for some days how can I obtain the length of an array that...
[2 replies] Last: Mmmm that's disappointing. Anyway, thanks for the clarification ;) !!... (by nelson1mx)
masking and attempts on password
 
Ive been working on a program that can mask the password and has 3 attempts. so far i can't do both ...
[3 replies] Last: So to me it looks like you're trying to get a character and then quick... (by TheBeardedQuack)
September 2013 Pages: 1... 2425262728... 36
  Archived months: [aug2013] [oct2013]

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