General C++ Programming - August 2014 (Page 7)

Guys Help
 
#include<iostream> #include<windows.h> #include<string> #include<iomanip> #include <conio.h> #include<stdlib.h> using namespace std; int main () { char user...
[2 replies] Last: what should i do? (by vendetta2014)
cin.getline function is skipped in MS Visual Studio 2012
 
When I run this Program the cin.getline function is skipped and next line is executed. I'm using MS Visual Studio 2012. #include<iostream> #include<cstring...
[1 reply] : When you read in roll_no on line 18, the newline is left in the buffer... (by Zhuge)
c++ - how open images?
 
what anyone can advice me for read some images? (GIF,JPEG,PNG and others) i never used C++ libraries... even the boost, i don't know install it :(
[3 replies] Last: Oh... yeah. That's where it gets complicated. For Qt , you can just... (by AceDawg45)
How do I allow the user to input an operator?
 
Can someone tell me how I can let the user input a certain operator into this calculator function please? I would like to use cin to input the operator if poss...
[1 reply] : cout << "What Operation Do You Wish To Perform?"<< endl; cout << "Cho... (by JLBorges)
C++ And Dreaded Imaginary Numbers...
 
Hey everyone. I'm trying to make a quadratic formula calculator where it will show the roots, the discriminant, vertex, etc...the issue is, I want the program t...
[1 reply] : See: http://progopedia.com/example/quadratic-equation/ (by JLBorges)
by d nub
What these line code mean?
 
This semester I studying about image processing using opencv, I never used c++ before, and I encounter problem to understand some codes.. Hope someone can expla...
[no replies]
1083 ERROR
 
Slum.nissiti use many different sites and forums Microsoft site but could not find a solution Sli.htknti the environment Visual Studio 2005 and tried to install...
[no replies]
Dealing with an operator overload function failure
 
Say I have a class that requires dynamic allocation to implement a few of the operators. Take "+" for example; I need to create a new object to hold the sum of ...
[3 replies] Last: Set a global variable like it is done with http://linux.die.net/man/3/... (by ne555)
How to create an n amount of 'for' loops without writing all of them out?
 
Say I want to exhaust all the possible combinations of 10 variables to find all the solutions to an equation with 10 variables. I could write out 10 'for' lo...
[9 replies] Last: Take a look at this: http://www.cplusplus.com/forum/general/135491/#ms... (by Smac89)
Unions
 
in the link : http://www.cplusplus.com/doc/tutorial/other_data_types/ 1) union mytypes_t { char c; int i; float f; } mytypes; Each of these members is o...
[1 reply] : 1) They have different types so the memory will be interpreted differe... (by Peter87)
How this program executed...
 
#include<iostream.h> #include<conio.h> class distance { int feet,inches; public: void distance_assign(int f,int i) { feet=f; inches=i; } void display...
[3 replies] Last: Explain? Sure. Make one thread and stick to it. Making multiple t... (by cire)
by Kubani
A suggestion
 
Hi guys, Lets make a team and found project(s). An open source one, contribute in it, and develop it. There are many places that can be a host for that proje...
[4 replies] Last: hey for some reason that link wasnt working. im still incredibly new t... (by zachmc)
Password Verification Program "Assertion Error (unsigned)(c+1) <=256"
 
I am trying to build a program that takes a user password (6+ characters, One uppercase, one lower case, and one number), and checks for errors. The idea is th...
[5 replies] Last: /* 13 */ std::cout << "and numumerican diget).\n" << '\n'; 'diget... (by Homberto)
Building a simple program
 
My name is Jon. I am a student taking C++ and I am an absolute beginner. I was asked to build a program that reads: Develop a design that leads to an algori...
[3 replies] Last: code tags begin with and end with [//code] ( but with only one slash... (by Lowest0ne)
Anyone can terach me how to use bool removeTile(char, int, int, char[])
 
Im supose to use <>bool removeTile(char, int, int, char )<> to do this "function that takes in the choice (D or S) and the two dice numbers and the board as inp...
[4 replies] Last: D is to take away the biggest number shown by the dice and S is the su... (by Nicholas001)
by sambid
binary format
 
hi everyone i want to open a text file in its original binary format i.e. to open it as its' content are stored in the memory in form of 0s and 1s. for examle ...
[4 replies] Last: I think OP is confused about what "binary format" means. The only dif... (by Duthomhas)
Working with functions
 
I have tried writing a code which takes two numbers from the user and calculates their square root then the roots are added up to return the sum. The program is...
[4 replies] Last: Thanks a lot for all the help the code is now working flawlessly @whi... (by skbcoder)
Habemus C++14 (A question about TS)
 
After the Issaquah meeting the committee launched the Draft International Standard ballot which was voted unanimously successful. At the June 2014 C++ Standard ...
[2 replies] Last: Ok, I hadn't gotten that before, I used to think it (filesystem) was ... (by ch4k3r82)
Why do we need inheritance, when we can achieve the same using aggregation in c++?
 
We know, in C++ we can have two kinds relation btn class : is-a relation supported by inheritance : has relation supported compaction(generalization) we a...
[1 reply] : Aggregation doesn't provide polymorphism. class A{ public: virtu... (by helios)
Save images in database or file system?
 
I need help for which is best option to save images in database or file system, I am developing c++ server client app. I want to save the images in server using...
[5 replies] Last: Those are important considerations. What are the other things you will... (by dhayden)
August 2014 Pages: 1... 56789... 25
  Archived months: [jul2014] [sep2014]

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