General C++ Programming - August 2013 (Page 14)

returning structs
 
Hi everyone. First of all, I'm new around c++ so I would apreciate any given help! I'm creating a linked list: This is the List.h class List{ ...
[6 replies] Last: Where List ::nodePtr is the return type that specifies that we will b... (by firedraco)
by Ceset
class
 
if i were to have a class called class it header would be #ifndef CLASS_H #define CLASS_H class class { public: class(); virtual ~class()...
[9 replies] Last: lots of thanks. i feel like a beer wont be illegal for me anymore:D (by Ceset)
getline with fstream crashing program
 
ok, I have this part of my function: if(file.is_open()) { char* temp = ""; file.ignore( numeric_limits<streamsize>::max(),'['); file.getline(temp,numer...
[4 replies] Last: I fixed it. The problem was that the string was not getting turned int... (by Superdude)
Equations and Intersections
 
Can anyone help with a program which accepts two lines and and determines their intersection point and whether they lie within a circle, also given interactivel...
[2 replies] Last: Lol... Lmao... Thanks (by nutty craze)
New student in C++ with Linux/Windows question (1,2)
 
Hi I've decided to major in Computer Information Systems in college and am taking my first C++ class. My instructor recommended we use Windows 7 or 8 with Visua...
[26 replies] Last: Thanks for a more helpful explanation of the behavior, I tend to try a... (by awsdert)
bool goOn=true question
 
Hello, I've written a program where I ask for a name which I've given a list of name for and then I return their birthdate. I then ask the user if they would li...
[2 replies] Last: Thanks - that did the trick. I actually copied it from another piece o... (by kboyfouroneone)
Complex Sort Algorithm
 
Here is the situation, you have an object that can reference a number of 'input' memory locations and a number of 'output' memory locations, the object will tak...
[4 replies] Last: HI!! I have to do a implementation of an algorithm for my thesis but i... (by pome90)
Doubt on the copy constructor
 
Hi friends :). I have a doubt on the copy constructor in C++. Something is not clear to me. If we consider the following code, class sample { int a; p...
[4 replies] Last: Oh...! It was very simple then. I have understood it now. Thank you... (by ksaketh2)
Calculating vertical position of scroll bar for a list box
 
Hello, im trying to code a simple list box for my self made GUI but i seem to be stuck at the scroll bar. I already finished with the calculation for the scrol...
[15 replies] Last: @Lumpkin It won't get higher than max. 1000 items but i made it max. 1... (by ccman32)
Why is type_info noncopyable?
 
This is a question just out of interest - why are std::type_info's operator= and copy constructor private?
[3 replies] Last: #include <typeinfo> #include <typeindex> #include <cassert> #include ... (by JLBorges)
function problem
 
void postfix(char *infix,char *postr) { int position,und; int outpos=0; char topsymb='+'; char symb; struct stack opstk; opstk.top=-1; for(position=0; (...
[4 replies] Last: just guessing: und might be the size of the stack after an element h... (by theranga)
define long variable and XOR
 
Hi my friend .....I am working by C++ recently ..I have one question. I want to write encryption algorithm.first af all I need to define variable( binary input ...
[6 replies] Last: this problem solved ....than you but I want to divided my XOR ansewr ... (by electronicart)
Physical sort vs logical ordering!
 
OK, I have a list of objects, each having six data members (one string data type, the remainder double). The list is to be displayed according to the alphabetic...
[7 replies] Last: > I prefer designing my own codes and algorithms, even if more cumbers... (by JLBorges)
Better way to do this ?
 
so I am trying to make map with 3 or more multiple key map< int, map< int, map<int, data_t > > > Map; Map = data_t(); // to call ? Is there be...
[12 replies] Last: I've tried that before but It produce error Like c:\program files\c... (by rmxhaha)
Canadian Computing Competition Problem
 
I'm trying to do a junior problem from the CCC from the U of Waterloo to judge my C++ skills and see what I still have to learn (which is a lot). So lalalala, I...
[9 replies] Last: The one I wrote is in python. Script Coder wrote sort of an outline of... (by Smac89)
Ranged for loop problem
 
I recently upgraded to VS 2012 to experience some of the new features in C++11 like ranged for loops. However I seem to be running into a problem and have no id...
[1 reply] : That's because i in that code does not assume the index across it's ra... (by htirwin)
Assigning an address to an object pointer
 
I have the following code. StackElement *StackElementArray; StackElementArray = new StackElement ; I want to assign one element of this array Stack...
[3 replies] Last: There is a large difference between 'array of pointers', 'pointer to a... (by LB)
largest rectangle
 
Hello, I have been trying to crack this problem for about two hours and have gotten a few solutions that are too inefficient. Please help me. Problem: Given...
[8 replies] Last: True, thanks for all the help, I think I have a clear direction in whi... (by Script Coder)
Problem in writing binary data on txt file
 
I a want to write a code to convert a string into binary data for that i wrote a code its working perfectly but there is one problem , some of the binary data i...
[2 replies] Last: Thanks for your reply ....its done !! Thank you !! (by ashutosh1992)
Do C++ source files have file extension of "*.cc.t" and "*.h.t" ?
 
Dear gurus, I came across GNU Radio source files (which are written in C++), it consists of a many files with extension .cc.t, .h.t or even .i.t. Some...
[3 replies] Last: If I had to guess, I'd say t = template It looks like some preprocess... (by andywestken)
August 2013 Pages: 1... 1213141516... 28
  Archived months: [jul2013] [sep2013]

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