General C++ Programming - February 2013 (Page 30)

"undefined reference to" error when accessing a static variable inside member function
 
I am modifying a set of static variables inside of the class's member function. The static variables are private. An example of what I'm doing is as below, u...
[2 replies] Last: Thanks indeed, that worked! (by DeepBlack)
pointers as parameters of vectors
 
Hi there, i wrote a following code, declared 4 char pointers as parameters of vector, the function invector is there to initialize the null char pointers, but t...
[2 replies] Last: When you pass a char pointer to the the cin >> operator it assumes the... (by Peter87)
by Zapeth
boost::asio problems with returning from io_service
 
Hello, I actually asked this a little while ago (http://www.cplusplus.com/forum/windows/89824/) and I thought I had it solved but that turned out to be false. ...
[no replies]
Help
 
Sir what is the code for a program that input a name horizontal and display the name in vertical position using looping any kind of looping? PLSSS help IT IS MY...
[3 replies] Last: You didn't really try. Here's some code, but this isn't a favor. If ... (by Stewbond)
passing 2-d array to function
 
hi i was trying to pass the following 2-dimensional array to a function called jac_inv jac_inv(jac,3); where jac is a 3x3 matrix function is as fo...
[4 replies] Last: thank you very much vlad problem solved!! (by varuniitb)
Moving from Qt to Boost - Networking
 
I's using Qt to build Udp and Tcp servers/clients. Now in recent project, Qt is not allowed and i'm supposed to use Boost. Having gone through boost::asio, i fe...
[no replies]
Pre-setting Virtually Inherited Data
 
Good day helpful forumers... I have a problem, and I will explain what I imply to do with WORKING code, and then I will provide segfaulting code. Working code...
[15 replies] Last: // Declaration: template <typename Class> class Paroxy; class Vault... (by Bourgond Aries)
Uregent Help!!!! main.exe stopped working
 
main.cpp #include <iostream> #include <fstream> #include <sstream> #include <vector> #include <cstdlib> #include "Action.h" #include "Action.cpp" u...
[3 replies] Last: My program does not run without #include "Action.cpp." It says llinked... (by Stephaniei492)
by cnoobs
converting currency
 
I have been spending a long time trying to figure out a way to correctly write this code. I am supposed to use sentinel loop to write this code. Here is what I ...
[2 replies] Last: That is the assignment template I need to use for my C++ class. (by cnoobs)
by cnoobs
How do you get your code to read multiple inputs
 
So I have to write a code for my C++ class, and I am having a problem trying to figure out how to get my code to read multiple int values. This is what my code ...
[1 reply] : int a=0; int b=0; cout << "Please enter 2 times: "; cin >> a >> b;... (by SamuelAdams)
Functions and Variables and Scope issue
 
I'm writing a program that's using several outside functions to simplify the code overall. I have variables declared in int main(), but because of that, the fu...
[2 replies] Last: you probably shouldn't use global variables. what was wrong with your ... (by closed account Dy7SLyTq)
Can anyone help me figure out my function isn't finding the largest integer?
 
My code compiles fine but it doesn't seem to want to calculate the max integer. It calculates min and average fine but I'm not seeing what is wrong with my code...
[1 reply] : You referenced the maxScore in your stat() function uninitialized and ... (by Mark Anthony Laureta)
by LB
<memory> header with clang
 
I'm having trouble compiling this in clang: #include <memory> int main() { } >clang++ -std=c++11 memory.cpp In file included from memory.cpp:1: In file ...
[4 replies] Last: That snippet is not relevant to me, but thanks. (by LB)
by pwn2d2
Implementation File vs Header File
 
I have written my program and it works when I keep everything in the header files, and then have my main. I am now splitting them up into implementation files, ...
[3 replies] Last: Yes I meant those. Did you delete the definitions from the header fil... (by maeriden)
different results for second player
 
It's been a long time since I've wrote anything in C++ and I had a little free time today, decided to write a roulette type game. No outside bets or corner bet...
[no replies]
c++ programming
 
Okay, so I changed up my program. My .csv file is like: Bone,origin,deep/superficial,location, action frontal, membranous connective tissue, deep, cranial, f...
[2 replies] Last: Bone,origin,deep/superficial,location, action #1 frontal, membranous ... (by Stephaniei492)
by gtm
dynamic object creation
 
So basically I know this isnt possible but I've come across an issue working on a game If I have an unknown number of objects to create and destroy, say for ...
[1 reply] : Check out std::vector http://cplusplus.com/reference/vector/vector/?kw... (by strongdrink)
Polynomial Multiplication Function Help
 
I can not seem to complete this polynomial multiplication function for my Data Structures class. We had to figure out what to put for coeff_i, coeff_j, power, a...
[9 replies] Last: Ok, i changed the temp declaration again, i had to use (n+m) instead o... (by austinwade912)
.csv file with searching
 
My .csv file is like: Bone,origin,deep/superficial,location, action frontal, membranous connective tissue, deep, cranial, flexes arm parietal, catilage, supe...
[3 replies] Last: Someone please help me!!!!! :] I want this program to do three th... (by Stephaniei492)
by geran6
Parsing large text file
 
Hello. I have a massive text file containing many thousands of directory and file names with / at the root, like so: /dir/ /dir/dir/ /dir/dir/dir/ /file ...
[1 reply] : Given the amount of pathnames in the file I will have to add and remov... (by geran6)
February 2013 Pages: 1... 2829303132... 43
  Archived months: [jan2013] [mar2013]

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