General C++ Programming - December 2016 (Page 16)

How to regulate the text inside a border created by "\xdb"
 
Hello everyone; I have created this program, its a hospital report page where a user can type the report on the run time but the problem is that when the u...
[no replies]
Access voilation c++ builder when calling dll dynamically.
 
Hello im trying to call a dll function from c++ builder and getting access violation. The same code work fine in vc++ console. can anyone check whats wron...
[2 replies] Last: xRes = (xmlResponse)GetProcAddress(dllAccess, "xmlResponse"); You sh... (by Thomas1965)
Type check for a varable
 
I wanna to make a GetComponent function for my gameObject class. I have a vector contains all Components: std::vector<Component*> m_components; So if I w...
[3 replies] Last: // the dynamic type of the object is either collider or a derived cla... (by JLBorges)
ATM Simulator OSX
 
ATM Simulator based on ATM Simulation by Kevin Oliver. Please tell me what you think. Constructive criticism is appreciated. DOWNLOAD: http://www.mediafire.c...
[no replies]
C language help?
 
Write an entire C program that reads a positive integer entered by an interactive user and then prints out all the positive divisors of that integer in a column...
[1 reply] : #include <stdio.h> #include <ctype.h> int main(void) { int numbe... (by JLBorges)
Boolean, yes or no
 
I'm trying to write a program that will read yes or no responses using boolean (bool student, bool disabled), but I have no idea how to go about doing this, I t...
[5 replies] Last: Yes it can, however, in Line 6 & 10, you are declaring and defining a ... (by integralfx)
Why is the arrow return type declaration, after all we have auto and decltype(auto)??
 
Hi, In which cases do we need to use the arrow for return type specification? Why is auto and decltype(auto) not always enough? Example: int& fc_overl...
[2 replies] Last: > Why is auto and decltype(auto) not always enough? There are contex... (by JLBorges)
Why is move ctor called when creating a std::pair?
 
Hi, In the following code: const int val = 1; auto xx = make_pair(val, A{ val }); the move constructor of A is called. Why? It creates a tem...
[1 reply] : No, I got it - sorry. There is actually a temporary object being crea... (by JUAN DENT)
need help with C++
 
I have a C++ program I am having trouble with... here it is. For this programming assignment you will read a list of names and grades from a text file. The f...
[no replies]
by SH66
please help
 
 Write a program that takes input of 10 integers into an array.  Give two options to the user: 1= copy odd numbers from the array to a new array (odd ...
[1 reply] : See the reply here. http://www.cplusplus.com/forum/general/203840/ Wh... (by alonso12)
How can I replicate the above behavior
 
Hello c++.com! I used Game Maker, but the limitations anoyying, so I decided to switch to c++. There is great tutorials, and I can replicate most of the beha...
[3 replies] Last: Templates should be strongly preferred over unions and void pointers. (by mbozzi)
problem answer please
 
Assume that there is a row of n coins whose values are some positive integers V1, V2, ...Vn. The coins may or may not be identical. We want to pick up the maxim...
[4 replies] Last: function maximum_amout_of_money input array of integer values :... (by JLBorges)
Vector of objects
 
Good evening once again, I am facing a problem that i need to place different objects to vector. However they must be added at runtime and i cant add them befo...
[9 replies] Last: I was testing my program and had amount for testing i do realize that,... (by Tomheza)
by ikej96
Singing code
 
Is there anyone who has or knows where to find a code to sing a song like Daisy Bell like the IBM 7094.
[4 replies] Last: I suppose it depends what the goal is. If you want something which sou... (by Chervil)
eliminate duplicates c language
 
Write a function named "eliminate_duplicates" that takes an array of integers in random order and eliminates all the duplicate integers in the array. The functi...
[1 reply] : This is not a homework site. Thanks for asking though. (by closed account 48T7M4Gy)
please tell the error
 
Hi there, I am writing a program which removes any word which appears more than one time after sorting a vector but i have been constantly facing the error tha...
[1 reply] : Duplicate: http://www.cplusplus.com/forum/beginner/203834/ (by Chervil)
problem answer please
 
You have two numbers, if these two numbers are equal, print the value of any of these two numbers. If these two are not equal, get the sum of these two values a...
[1 reply] : You have two numbers, if these two numbers are equal, print the value... (by Yokana)
by Revert
Calculating Grades
 
Hey everyone, I'm doing a program that has structs and here's my assignment: For this lab, you will make an array of structures of arrays. There is a file in ...
[2 replies] Last: If I understand it correctly, you have to read the data from the file ... (by Golden Lizard)
by ryard
Can You Help ME??
 
how can I write the algorithm within using array example: a = 1 2 3 4 b = 8 2 3 5 result c = 0 1 //when element a=b result=1, else = 0 1 0
[1 reply] : void Check(int** a, int** b, int** c, int width, int height) { f... (by shalky)
Explanation
 
Can someone provide an explanation to the steps in this program please. From the first half I understand that int a will be equal to 1, and x=1 will be in the c...
[1 reply] : The for sentence is the only important one in your code. if you unders... (by shalky)
December 2016 Pages: 1... 1415161718
  Archived months: [nov2016] [jan2017]

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