General C++ Programming - December 2014 (Page 25)

Multiple copy constructors
 
Hi, I'm building a non-templated weak pointer type, similar to boost::any in that it knows the ty...
[4 replies] Last: Thanks! After some thought I decided to ditch having a const Reference... (by wcassella)
Files and Structures
 
The input file, p5in.txt, contains the following records: 76606 68 80 88 74 72049 89 95 93 97 ...
[1 reply] : //teacher said this had to be in the main I have no idea what to do w... (by wildblue)
C++ Exercise
 
Hi. I am relatively new to programming and need help with a problem from my book. It is: In thi...
[11 replies] Last: Thank you very much for your help and patience with my lack of program... (by tjaduffy)
Fail to open / create a file
 
Hi, When I write the Ctor as follows, I get an Error: Invalid Sharing Flag 0 (That happens when fi...
[1 reply] : ifstream::open takes 2 parameters, not 3. http://en.cppreference.com/w... (by MiiNiPaa)
Need help building a board for a game
 
Hello guys, i'm making a battleship game on devc++ i got all working so far as i wanted, but now i n...
[no replies]
by W DR
MCU/PLC
 
I am wanting some info on interfacing C++ with either a MCU or PLC. Basically I want to use a GUI to...
[6 replies] Last: Much appreciated! (by W DR)
c++ hangman game
 
I modified my code so it would be simpler I just want to know how would I put a limit so it would on...
[1 reply] : You could check the current count of misses before starting another ru... (by wildblue)
Reading file with delimiter - storing data to object
 
I am trying to read a file use the data line by line to create into an object. The current file I...
[5 replies] Last: Thanks Tipaye This is the code I used in the end for anyone else try... (by misheck)
by dkaip
a math problem
 
I have a number, for example 7 2^0+2^1+2^2=7. There is a routine that gives the 0,1,2? If i have ...
[2 replies] Last: Use binary, 7 = 0000 0111 ( pos -> 7654 3210 <- ) ... (by nightmaregiba)
Listing and analyzing data from a file
 
Hello! I am a novice programmer and I'm having trouble with one of my exercises. I need to create a...
[no replies]
A strange effect of COUT
 
Hello every body, In the following code the function 'fun' sets 'x' to the value of 'norm' which...
[1 reply] : Because you are using uninitialized variable norm which is undefined b... (by MiiNiPaa)
Linux (OS in general) and C++ (Prog Lang in general)
 
How programming language uses OS to achieve solution or software goals? I am not talking about g++ c...
[2 replies] Last: Oh! they are so busy and their answer is very professional, but not mu... (by csstudent123)
Class.h is having issues with virtual functions
 
I'm writing a class "Property" for a program that manages different types of properties. This is my ...
[1 reply] : Paste whole class definition here. There is too little information to ... (by MiiNiPaa)
by CSC121
Lowest Value In Vector Problem
 
I am to write a program where the user is to enter a 5 or more values into a vector and it will outp...
[1 reply] : #include<iostream> #include<vector> int main() { std::vector<doubl... (by mutexe)
unresolved external
 
// Heap // Demonstrates dynamically allocating memory #include <iostream> using namespace st...
[2 replies] Last: Cheers! (by NewCComer)
by rossb
vector of vectors
 
I am terrible with creating "matrices" and was hoping someone would help. How would I make this vect...
[1 reply] : std::vector< std::vector<int> > matrix = { { 30, 30, 30, 30, 30 }... (by JLBorges)
Is it good practice to return different variables based on the parameter value?
 
Say I have a GetSomething(char type) function which returns two different variables based on what yo...
[3 replies] Last: > What is wrong with a float versus a double? double is the natural... (by JLBorges)
by Aliff
Computer graphic opengl c++
 
Whats wrong whit this? #include <iostream> #include <stdlib.h> #include "imageloader.h" ...
[1 reply] : You'll either need to use "" rather than <>, or add it to the include ... (by TwilightSpectre)
Hey there need experienced help with something lol
 
Hey there, for my final eportfolio in one of my classes we created a site for it using google site...
[no replies]
Using variables to access objects in a windows form.
 
Alright, so I'm making a windows form with a few hundred buttons, and one button will change color b...
[3 replies] Last: You need to declare an array of buttons in the class, obviously. (by helios)
December 2014 Pages: 1... 2324252627... 31
  Archived months: [nov2014] [jan2015]

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