General C++ Programming - July 2014 (Page 10)

Subset using binary. No idea
 
This program is supposed to print out the subsets A-G. I'm supposed the write the code for the selectSubset() and printSubset() functions. It's supposed to do t...
[no replies]
Passing to Function - Unspecified Array
 
Hello, I am working on a project, but have found my self stuck on one section. I have a function called: arrayToInteger(int digits , int length) which as the ...
[4 replies] Last: Nevermind, I'm an idiot. Haha this works just fine, it was another fun... (by weathers2015)
Variables differences in C++ and Java
 
Hi, while going through the differences between the c++, prolog and java, I came to see a question asking the "variable differences in c++, prolog and java, and...
[6 replies] Last: since Prolog was brought up, a Prolog variable is essentially a pointe... (by Cubbi)
Pointer with array doubts in the code
 
Hi i have two doubts in the following code,the doubts are marked..PLs note that the following code is correct .This is a program to read 2d array using pointer ...
[2 replies] Last: Thanks a lot !! (by supershooverine)
How to export a program
 
Well i just finished my new program in c++ that i learned from c++ for dummies and i would like to know how i can like export it to my desktop. I made this prog...
[2 replies] Last: You compile a program, you don't really export it. When you com... (by Stewbond)
Reading Files
 
I can't seem to get my program to read a file that's saved on my computer. Here's my code: #include <iostream> #include <fstream> #include <string> usi...
[6 replies] Last: Yes. I changed that letter to a capital "F" and also put the txt file ... (by Undefined95)
Trouble finding errors
 
This is some code from c++ for dummies that i can't run because of the errors i find when i build it These are the errors C:\Users\GORGE\Desktop\C++\Cov...
[2 replies] Last: wow thanks its all fixed now. im just new to c++ sooo yea. thanks so ... (by GabrielTheGreat)
Help with classes
 
3. Given the following class, class CBase { protected: int m_anInt; public: CBase(int n): m_anInt(n) { cout < < "Base constructor\n"; } virtual voi...
[6 replies] Last: My next answer will be in lua. (by Stewbond)
OGRE - Device Lost
 
Hello there, I've been creating a program with OGRE, and I've recently been getting crashes due to the DirectX (9) Device being lost. (I gathered that from the...
[3 replies] Last: Right, figured out why: It's because the loading and the rendering are... (by Irrelevant Elephant)
Check for deallocated memory?
 
How would I go about checking for deallocated memory? For example, let's take this into consideration: // Unsigned 32-bit / 64-bit integer: uint32, uint6...
[11 replies] Last: So I thought. I'll consider this. (by FatalSleep)
Beginner in need of assistance
 
I'm in an introductory programming class. We learning C++ and I have program that prints out the written version a number 0-999(i.e. enter 6 and the program pri...
[1 reply] : And you post it to beginners' too =..= (by lsk)
"Anonymous" struct?
 
struct Something { signed int x, y, z; }; std::vector<Something> things; This works fine. However... std::vector<struct { signed int x, y, z; }> ...
[8 replies] Last: Thank you! This is exactly what I was looking for! (by MeNeedsHelp)
by TveryO
Keep Getting A 0 When calculating Volume of Cylinder ?
 
Code removed lol
[4 replies] Last: The thing with line 16 though...The constructor is called before that ... (by giblit)
Please help me:(
 
The overall marks of the students in a particular class of 25 for 4 subjects CPPS, DFUND1, CKT AND EMATHS are maintained as arrays in an external data file. Ass...
[3 replies] Last: You could do it that way I suppose. Then you would do something like: ... (by giblit)
Need urgent Help.pls
 
Something wrong with output getdata() works beautifully while putdata() is malfunctioning here's the code: #include<iostream.h> #include<conio.h> #incl...
[3 replies] Last: hello? someone!!!!! (by George Kuriakose)
How to change background color? (Mac/Windows)
 
I'm creating a simple game with my friend that runs in the Terminal/Command Prompt window, but I would like to know how to change the color of the entire window...
[2 replies] Last: Thank you so much, Disch, your answer was very helpful! I had been loo... (by closed account j1CpDjzh)
Segmentation fault (arrays) queries...
 
No need to read the full code just see the global array declaration(edit ) as my discussion is based on that only. #include<iostream> #include<stdio.h> ...
[5 replies] Last: Thanks a lot ne555 (by ankur12106037)
by helios
This is a test (1,2)
 
If I'm right, putting empty code tags anywhere should cause the site to not let me post again in this thread.
[21 replies] Last: Since we've gone onto page two.... (by LB)
Problem of sorting ascending order by according to PRODUCT ID,NAME,PRICE
 
Here is my code below: #include<fstream> #include<iostream> #include<stdlib.h> #include<iomanip> #include<string> using namespace std; void main() { fstream ...
[4 replies] Last: The first thing to do is to read the data from the file in the require... (by Chervil)
How to filter products by type
 
void FTR(){ string type; cout << "Please input the type of book:"; cin >> type; ifstream file("test.txt"); if(!file.is_open()) cout << "Unable ...
[no replies]
July 2014 Pages: 1... 89101112... 26
  Archived months: [jun2014] [aug2014]

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