• 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]
by Winsu
create a constructo with two bool arrays...
Hello everyone.. I'm trying to code a constructor from a class with two byte(arrays), and It's no...
[no replies]
Can someone help me out?
This voting program isn't working. What am I doing wrong? #include<iostream> using namespac...
[3 replies] Last: [quote=Momothegreat]1. You don't include using namespace std; so "cout... (by giblit)
-(BOOL) and +(BOOL)
what's the difference between these two?
[1 reply] : Before applying the unary + and - operators the bool value will be pro... (by Peter87)
Trig Calculator Help
Hello. I am new to programming and i would like some help. For my program i need to use functions to...
[6 replies] Last: your decleration and implementation are different... you have 2 doubl... (by Gamer2015)
by mic216
HELP - template error
hi all, i get this error in my code: "error C2678: binary '-' : no operator found which takes a left...
[1 reply] : first of all your return statements have to be CSet<T> instead of C... (by Gamer2015)
Checking for duplicates in a txt file?
Here is my task: Your task is to write a program that reads a file and prints all lines that contain...
[8 replies] Last: I actually find the array method seemingly easier... The work you ne... (by andywestken)
A fun guessing game
The directions are simple: Write a program that calculates a random number 1 through 100. The progr...
[6 replies] Last: Oh I fixed it doug4 but thanks! I'll mark it has solved. (by TheDMinor)
Battleship Final Help
So my final is due today, it's to create a 2-player game of battleship, and everything was working p...
[8 replies] Last: Only two things I can see wrong with that is you have if(i==10) when... (by shadowmouse)
hash table chaining
Hi, i have a project where i should read an input.txt that contains a x node, the neighboor y and th...
[9 replies] Last: Ok i will follow your advices, thank you very much, i really appreciat... (by chris896)
by babno
Reformatting a text file
I am getting large (several MB) spreadsheets in txt form with way more information than I need. It i...
[1 reply] : put the first line into an array of chars Why the array of char, why... (by jlb)
Make a class template to hold objects
Hi. I want to make a class template and then make a simple object which will be stored in the templa...
[2 replies] Last: But if you are for some or other reason actually trying to print out t... (by andywestken)
Plz help ,, my exam tomorrow :(
i want a code for this plz :( Write a C – Program which : a) stores the students data ...
[6 replies] Last: i'm afraid it's didn't work (by ahmadelwaly)
by blueee
The rainfall figures in mm are available for each day of the past four weeks. Write a function gene...
[14 replies] Last: you're welcome (by Gamer2015)
by Erland
Knight's Tour Backtrack
Can you help me with this? This code keep running for more than one hour. Though if I change the bas...
[no replies]
Loading numbers from .txt-file into integer variable
Hi guys How can I store 2 numbers in a .txt-file in two diffrent variables? The .txt-file Looks lik...
[3 replies] Last: How can I load the map which has the Format TileID:TypeID read an in... (by Gamer2015)
Help!!! I don't know why my program won't work.
#include <iostream> #include <cmath> #include <string> using namespace std; void getPoint (d...
[1 reply] : please use the code-tag ([code ] here comes your code [/code ]) you f... (by Gamer2015)
Array problem
How can I accept input of integers in one line?
[1 reply] : split them by ' ' 25 156 19643 1 std::cin >> i1 >> i2 >> i3 >> i4; ... (by Gamer2015)
How to initialize a vector of classes in a constructor?
If I have a class Player and I want a vector of Player inside a class Team, how can I initialize it ...
[3 replies] Last: Thank you both for the attention. Andy, I had tried to do the constru... (by valerio92)
calling class method from member method
I have a class that declares a class (static) method and then declares a member method which calls t...
[2 replies] Last: Do you mean like this? #include <iostream> #include <string> class T... (by Gamer2015)
Pages: 123... 49
  Archived months: [mar2015]