• Forum
  • General C++ Programming

General C++ Programming

by admin
Welcome to this board!
 
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any top...
[no replies]
Full string not appearing
 
I've a problem here that I can't find a solution for. #include "stdafx.h" #include <i...
[no replies]
someone please help me!
 
so this is my main file: int g_p, g_d, g_c; void deviceSetup () { vector <device_queue> print...
[no replies]
Linear search vs Binary search
 
Can someone tell me what advantages could linear search have over binary search? It seems to me lik...
[4 replies] Last: Another reason is that binary search requires more code, so on a devic... (by dhayden)
C++ help
 
/* * @author Damian Bloch * Chapter08 Project02 * Program is to let the user enter a string...
[1 reply] : You want getLine: http://www.cplusplus.com/reference/istream/istream/g... (by dhayden)
Missing middle name and no error message
 
I've a problem here that I can't find a solution for. #include "stdafx.h" #include <i...
[2 replies] Last: This didn't help. Updated to make it clearer. (by nohomehobo)
writing a program that computes the factorial of a number and displays it.
 
I'm new to c++ class and want to write a program that computes the factorial of a number and display...
[4 replies] Last: Having a hard time figuring it out, new to c++. (by learner1234)
by juaok
Having a struct as a key for a map
 
So why does this not work? As an example: struct example { int x; int y; }; int main()...
[4 replies] Last: > since there is no equality operator Must be LessThanComparable ; ... (by JLBorges)
Closest pair ,shortest distance
 
Hello , I've recently come across the closest pair problem and I don't understand some things . Plea...
[no replies]
Programming C++ on MAC OS
 
Hello! I started programming c++ on macbook pro and now i am searching for appropriate text edito...
[3 replies] Last: Vim is better if you want a command line text editor. If you want a mo... (by ResidentBiscuit)
C++ arrays help
 
Write a program that reads a file consisting of students’ test scores in the range 0–200. It sho...
[4 replies] Last: thanks I think I can do it from here (by damianbloch49)
C++ Exceptions as part of general programme flow
 
Like most programmers - at least of my mediocre skill level! - I am a bit shy of using exceptions. ...
[13 replies] Last: Yes, it's an excellent point that you want code that is hard to use wr... (by dhayden)
Help with C++ Word Guess Game
 
So I've been trying to get this word guess game working, but the word so far is not showing. For in...
[3 replies] Last: The problem is you're initializing soFar at line 14. At that point, t... (by AbstractionAnon)
Help me out Please!!!
 
So this is the question: http://i59.tinypic.com/2vab4gp.jpg and this is my code .. what's wrong plea...
[3 replies] Last: That would be because... that's what you're doing in your code? You're... (by Ispil)
Implementation of Singleton?
 
I need one copy of a class object throughout my program so I decided on a singleton. I used the basi...
[2 replies] Last: Do you need an object? Wouldn't something along these lines suffice? ... (by JLBorges)
vector push_back class
 
how bad/good is this code? I mean, how do you push back class to a vector in other way? is this some...
[4 replies] Last: @Mekkatorqu, Just a point about terminology. Calling new also calls ... (by doug4)
by drax
string arrays loop
 
Hi, I need some help in understanding how to do loops with string arrays. If I have few string a...
[2 replies] Last: Great, thank you very much! (by drax)
Linked list remove node...I am banging my head!!
 
pls help me. how to remove node from linked list. I am trying to implement this in a file record to ...
[5 replies] Last: To remove a node from the tail (i.e. any element after the first) of a... (by chrisname)
const in class meaning
 
Hi. Whats the use of using int funct() const; in class declaration? Because my class functions work ...
[6 replies] Last: No. typedef type T In your example, you're using the word "type" in t... (by helios)
virtual destructor
 
class Base { public: virtual ~Base() { cout << "Calling ~Base()" << endl; ...
[11 replies] Last: Just to clean up your analogy a little bit... The base class would be... (by doug4)
Pages: 123... 58
  Archived months: [aug2014]