General C++ Programming (Page 9)

Point of instantiation is incomplete and should fail??
Hi, I don't understand why this code compiles: class MyInt { int m_i; public: ...
[3 replies] Last: the indentation might have thrown JLBorges off. note that if you pare... (by Cubbi)
Help Convert Code in C++
Hello, please someone help me about this request. How to convert this code from pugixml to be stand...
[2 replies] Last: xml is just formatted text. You can directly manipulate it for simple... (by jonnin)
Need help with Array please!
I'm working on an assignment and pretty much can't seem to solve this: Write a C++ program to sea...
[1 reply] : Have you studied classes or structures yet? A simple structure would m... (by jlb)
Filling a matrix
I have a n×n matrix; All elements of this matrix is 0; I want to fill this matrix with n numbers ...
[3 replies] Last: But it has repeating operation; I want to have number of this operati... (by lastchance)
Need help with ifstream and arrays
My txt file 1 2 3 4 5 Cheese cake 1 3 5 4 6 Spicy nugget 1 3 5 2 5 Beef Burger 1 3 5 1 3 Potato chi...
[11 replies] Last: I thought i can use j as counters to store the values into array. Y... (by MikeyBoy)
stream's locale not getting imbued to POSIX
A stream's locale defaults to the classic "C" locale. I'm trying to change it to "POSIX", but it ...
[5 replies] Last: You are absolutely right. I had inadvertently continued to use the (d... (by SSteven)
by zesan
How to execute the whole code in windows platform ?
I am giving the repository link to look at the code because it is long code, the objective is writte...
[3 replies] Last: Thanks a lot for all the replies. @coder777 (6673) What prevents yo... (by zesan)
by zheung
How to skip columns in input.txt
My input txt file 1 2 3 4 5 6 New York 2 4 6 8 9 9 Los Angeles 1 2 3 4 5 6 Jersey City 1 2 4 5...
[4 replies] Last: (by keskiverto)
arrays and functions
Hi, i'm new here and i have this homework and i really need your help The following program asks ...
[2 replies] Last: read and understand the code you've been given, and learn from it. T... (by Chervil)
Tic Tac Toe Problem
#include <iostream> #include <stdlib.h> #include <string> using namespace std; void GetMove(ch...
[1 reply] : The problem is that CheckMove(...) and GetMove(...) are calling each o... (by coder777)
by sry90
Adding things from vector to vector
So I have this vector called members and I want to add all the checkedOutItems from each element of ...
[1 reply] : You have "members". Each member can have 0 or more "items". Each item ... (by keskiverto)
C++ text based adventure game using SDL
Hello, I've recently taken a class to learn c++. We have a project and I'm doing a choose your own a...
[2 replies] Last: Shouldn't your page have a reference to a bitmap or the filename of a ... (by Thomas1965)
C++ '2-3-4 Tree' converted to 'Black and White Tree'
C++ Help I am struggling with both '2-3-4 trees' and 'Red and Black Trees' currently and cant fin...
[no replies]
by Grumn
Tiled SDL 2D Tilemap Glitch
I have a simple openGL engine using SDL working. I'm not using any SDL_Image stuff, its all just ope...
[2 replies] Last: I found the answer on GameDev's forums. The problem here was floating ... (by Grumn)
by cash
replace substr
How can I replace substr when using information from txt file to display on your file. string...
[4 replies] Last: With what? What role do the try-catch statements serve in your program... (by keskiverto)
Errors for my programming class.
So I keep getting error LNK2005 in my program and there are these requirements for this program that...
[13 replies] Last: Thank you thank you thank you all!!! I appreciate all of your help for... (by ADDDC)
If given a threshold of 0.30 and a formula of #(A,B)/#A how can I compute the threshold value of each item in the data file
Below is my Association Rules Market Basket C++ Code & The Data File and Output #include <iostr...
[13 replies] Last: I did some major tweaks to my code int main() { list<ITEM_COUNT... (by mikewill203)
Need Help altering code to desired outcome
Hello all, I am having difficulties with one of my labs and am racking my brain trying to figure ...
[1 reply] : there is no such thing as an if-loop, there are while, for, and do-whi... (by jonnin)
Struggling with forming a equation into a c++ equation that uses the values from my data file
The equation is Threshold x (number of transactions having both gum and bread)/(number of transactio...
[3 replies] Last: yes! one way to do this a little cleaner is an enum: enum itemz { ... (by jonnin)
Calendar Reference
I found this code online while searching for a solution to something I wanted to do. I am wondering...
[3 replies] Last: Gunnerfunner, this is what I have so far. I was wondering why it won... (by RCUniversal)
Pages: 1... 7891011... 25
  Archived months: [oct2017]

Cannot post in this page. To post a new message, go to the first page.