General C++ Programming - August 2015 (Page 11)

basic c++ Declaration of an array of objects inside another class
 
Hello! i've been working on a code and I tried to declare an array of objects inside the private of another class, I have a class called Contacts which goes l...
[5 replies] Last: Thank you so much @coder777 and @kemort I fixed it :) (by Shashank Setty)
by skt333
URGENT!! fstream
 
Hi, I am facing problem in designing a new program which its requirements are: 1)Program with file output operation: User to enter a group of students’ name...
[6 replies] Last: http://stackoverflow.com/questions/12824595/difference-between-cstring... (by shadowmouse)
Overloading same operator multiple times
 
Hi, I just wanted to know how overloading same operator multiple times works and how does the compiler know which overloaded definition is called in. P.S: Could...
[5 replies] Last: Thank You very much! (by NPcomplete)
by Sauvok
C++ for Android?
 
Hi! I am relatively new to C++. I am looking to expand my knowledge of C++ and later begin a career in the gaming industry. To start my question, is it viabl...
[1 reply] : Morning. https://www.google.co.uk/?gws_rd=ssl#q=Android+in+C%2B%2B fi... (by mutexe)
URGENT!!!problem with getline loop
 
im just a beginner here,i encounted some problems while programming this,when i include a get line i get iso c++ forbits comparisor between pointer and integer....
[6 replies] Last: Thanks for ur help. Really appreciate it :) (by cleontangy)
Program stops working: std::bad_alloc
 
I'm making a program and compiling it with g++ although I have a problem which I can't solve, It stops then says '.exe has stopped working', I'm trying to parse...
[9 replies] Last: sure but why wouldn't you use a vector? (by nchambers)
Help me with my homework pls.
 
C++ Program for the ff: *Ask the user to input a number. *If the number is < 10 print “Number is less than 10” < 20 print “Number is less than 2...
[3 replies] Last: Please, do not double post. It clutters forums and spreads attempts to... (by MiiNiPaa)
Executing via Double-Click On Input File
 
Need help with this desperately please. I have an app which executes correctly from within Visual C++. It also runs fine from outside of VC++ when I double-cli...
[6 replies] Last: Wow, I'm pretty shocked that a GUI library is abusing your command lin... (by LB)
by Get
run c++ program on android phone
 
hi there, i just make a simple c++ program... is that possible to run my .exe c++ program on android phone? if yes, how?
[2 replies] Last: thankyou Lb it helps a lot (by Get)
by MGL
Set Precision not working.
 
Hi again everyone, so it seems I have everything working except my rounding. I want the final output to give me two decimal places not one. Also how do you writ...
[2 replies] Last: Yeaaahhh I just realized I forgot to put it in before. But thanks mate... (by MGL)
by MGL
Parallel Arrays
 
Hi everyone, I have this problem that I need help with and I feel like I should know how to do it as the instructions were super clear, I just dont think im sur...
[4 replies] Last: Whoops. Did not see this reply. That looks a lot more simple than what... (by MGL)
Error thrown not showing
 
Hello guys in my template header I defined a company std::vector<T*> employeeContainer The last exception I'm testing is to check if an employee exists befor...
[5 replies] Last: You are invoking undefined behaviour because you are accessing an inva... (by ne555)
by yj1214
char pointer
 
Roses are red Violets are blue Pointer stores an address of a variable Then how come code below is working? char *x = "Hello"; //OK char *x = "Hello"...
[10 replies] Last: So why does char able to assign its value that isn't an address? C ... (by Disch)
by pfjf2
passing ifstream and ofstream types in functions
 
Hello, I am new to C++ and trying to get to grips with it. Particularly I am having difficulty using both header files and passing ifstream and ofstream types i...
[4 replies] Last: Duoas, I love you. Now I can finally move on and learn some interestin... (by pfjf2)
by leourb
FLTK Error with Headers
 
Hi everyone. I have successfully installed FLTK in VS 2015 Community Edition. I am dealing with other headers, part of Stroustrup's book, to build graphs and...
[11 replies] Last: It is still from Stroustrup's files..! I have solved, you were really... (by leourb)
by mnm71
How to get max of average??
 
In this program class Sensor just get two value as sn & temp,each Sensor is a Network and two Network join together is a Region,in class Network I want to Calcu...
[12 replies] Last: Your function produces correct result if and only if the sensors.siz... (by keskiverto)
why these values on for loop?
 
i use the code blocks. please see these code: button btnarray ; int WinMain() { int arraysize=ArraySize(btnarray, button);//geting the array size ...
[4 replies] Last: ne555: i had problems on button constructor too. thanks for all (by Cambalinho)
Find out if a variable is int or float
 
Hi, guys. I ran into a problem. I'm writing a function (doesn't matter what function it is). The fact is, I don't want to have to just copy the same function so...
[10 replies] Last: FWIW (very cursorily tested): #include <iostream> #include <string> ... (by JLBorges)
OOP
 
how to create an integer array dynamically?
[8 replies] Last: int size = 5; std::vector<int> arr {size}; // creates a sequence of ... (by JLBorges)
How to make a design
 
I have to make an application that simulates a logical circuit. It will be one big system made up of modules, which are themselves made up of various logical ga...
[2 replies] Last: As a rough outline. Circuits are made up of components and connection... (by closed account 48T7M4Gy)
August 2015 Pages: 1... 910111213... 17
  Archived months: [jul2015] [sep2015]

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