General C++ Programming - October 2014 (Page 19)

Const method accessing private data member giving access violations
 
My code is here https://www.dropbox.com/s/foq27lafefoes7d/lab3.zip?dl=0 void Player::Display() const { cout << "\nPlayer Name: " << GetName() << ...
[2 replies] Last: I think you're using array for the first time without initialising it.... (by tipaye)
c++ remove linked list
 
This is my current code. The code is to remove the element in the list "head" that is "e". The code works if there is only one element in the list but if there ...
[1 reply] : To delete a node, you will need access to the node before the victim n... (by abhishekm71)
by xystus
Help with file output?
 
Hi, i'm trying to create some kind of a login system. A very basic one. pseudocode would be something like: Welcome, please make a selection 1.) Log...
[5 replies] Last: so the output for the user is out after choosing one of the cases ,, a... (by deepestblue)
string to char ( but not char* )
 
if string contains 0xAB hex value, how can i store it in char array (at one of the location ) such that char[specific location] contains 0xAB as it is.
[5 replies] Last: if string contains 0xAB hex value How? does it contain four character... (by MiiNiPaa)
Using WMI
 
Hi all am using WMI in my application. i am using the following Example. http://msdn.microsoft.com/en-us/library/aa390425(v=vs.85).aspx i have changed sleep(1...
[7 replies] Last: But..i can't understand why it not returning name of that process whil... (by IamSumit)
Passing array elements to another for categorizing ?
 
I am trying to pass an array of student grade values into a 2nd array. This 2nd array will compare the grade values and output a grade letter to the correspondi...
[9 replies] Last: Keene do you know about doubly linked lists? I just posted my current ... (by deltasworder1x)
What is the operator= returning?
 
Came across a code. I am posting the snippet. Animal & Animal::operator=(const Animal & o) { cout << "assignment operator" << endl; if(this != &o)...
[1 reply] : It is returning an address - it is returning a reference to that objec... (by TwilightSpectre)
by yo2xia
Extract p-value from anova of composion of two linear model functions in C++ Eigen
 
I am the beginner of C++, any help will be appreciated. suppose that model 1: A1*X1=Y,model 2: A2*X2=Y #include <Eigen/Dense> #include <iostream> #includ...
[no replies]
If statement error
 
I am trying to write a program in which the user can enter a date in the format "MM/DD/YYYY" or "DD/MM/YYYY" and the program will tell the user what day of the ...
[1 reply] : Sorry about this guys now I feel stupid. I forgot to use the == relati... (by andrew338112)
Nines compliment
 
Well I am doing the BigInt Calculator project and I am having some issues with my subtraction. Basically I get the 9s complement of the smaller number and add i...
[no replies]
any suggestions?
 
so this is all in my header: the class: class PCB{ private: int d, p, c; int number, location, size; string filename; char function; int *tail; in...
[no replies]
Database
 
Write a program that maintains a database containing data, such as name and birthday, about your friends and relatives. You should be able to enter, remove, mod...
[3 replies] Last: Yes, I know it is his homework. That is irrelevant though, this is not... (by giblit)
Open Encrypt File in C++
 
I was wondering if c++ could open an encrypted .sparseimage folder and access a text file in it and print out all of its contents. Is it possible?
[2 replies] Last: Do you have any example which could give me some sort of idea? i would... (by fbhkhan)
Card Game
 
When you play a board or card game or when you use a shared computing resource, you get a turn and then wait until everyone else has had a turn. Although the nu...
[no replies]
Matrix for 3d camera in c++
 
Hey guys I'm just wondering where to get the best and efficient tutorial on both matrix in c++ and the programming of the camera it's self Thanks in advance...
[no replies]
Moving C++ File Pointer, internal mechanism?
 
Hello, I have a simple question on how a pointer to a location within a file (or even memory) is moved. Lets say I have a file which is 1,000,000 bytes long a...
[4 replies] Last: An easy way to see the delay is to consider the rotational latency. O... (by dhayden)
Templated classes and argument/return type
 
I am starting to experiment with templates, having accepted the messy inconvenience of having to both declare AND defining the functions within the same header ...
[7 replies] Last: Does this tie in with 'Runtime Type Information'? Nope. Everything r... (by MiiNiPaa)
can't find whats wrong with my program
 
so this is my program if i insert 150 after i run im expecting to get this 1 0 0 1 but im getting 1 0 0 0 why ? #include "stdafx.h" #include "iostream" ...
[1 reply] : The problem is here: else { cout << " 0" ; l=i ; //<-This line here ... (by Computergeek01)
variable in a while loop
 
I would like to have the user type in a word and each letter corresponds to a number, then when the user is finished add up the total. If the the user types in ...
[4 replies] Last: Thanks for the input. I needed to use an int array since I want the le... (by ted1941williams)
Decision Statements and Repetition Statements
 
I need help with this, please help me. Write a program that requests the user to enter coordinates of three 2D points A, B and C of a triangle with sides a. ...
[no replies]
October 2014 Pages: 1... 1718192021... 38
  Archived months: [sep2014] [nov2014]

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