• 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]
How to copy a string to an array?
 
#include<iostream> #include<string> using namespace std; int main(){ char char_array ; ...
[2 replies] Last: #include<iostream> #include<string> using namespace std; int main(){... (by jcra1992)
Implementing collision detection correctly
 
I'm making a 2D Terraria-like (side-scrolling RPG with destroyable blocks) game with SFML 2.1, and I...
[7 replies] Last: Thanks, I think I finally have an idea of what I'm doing now. (by Bosslard)
Chore selector for my kids
 
I am having a problem getting each of the chores put in a random order and given to three or less ki...
[6 replies] Last: The code now is: // A program that controls a list of chores // When ... (by jasonwynn10)
Using getline multiple times on one line of input
 
I've been stuck on this for hours, and have scoured the internet for any insight on this particular ...
[3 replies] Last: ok, thanks. (In my opinion the tab delimiter could have made things si... (by Chervil)
Multiclassing
 
#include <iostream> #include <string> struct Class {}; struct A : virtual public Class { int nu...
[4 replies] Last: No, it's not the virtual inheritance that confuses me. It's why you wa... (by LB)
by Ispil
The Final SegFault; Hashtable for an Unordered_Set
 
Well, I've eliminated segfault after segfault, only having one more left- and this one's a doozy. Ag...
[8 replies] Last: Ignore them- they're really me just blabbering nonsense to myself. Any... (by Ispil)
by Dkob1
Code Problem
 
I tried it but I keep getting it wrong, I wrote what I have after the question. Given three vari...
[3 replies] Last: I got it wrong though. (by Dkob1)
need assistance with matching colors
 
need assistance with a project im doing for class its matching colors basically my problem is how to...
[2 replies] Last: Please use code tags by typing "code]", and please use punctuation. Wh... (by fabtasticwill)
by Chance
Security vulnerability question
 
My professor at college stated that it is important to always initialize a function type because if ...
[3 replies] Last: By security he probably meant that it could cause an error. It is VERY... (by fabtasticwill)
Updating An Array In A Grading Program
 
OBJECTIVE OF THE PROGRAM The program will grade a series of exams and then print a grade report for...
[1 reply] : You could have an integer for each grade. example: int grade10; int ... (by fabtasticwill)
by dkaip
wchar_t and reading unicode strings
 
Hello. With this code by helios(thank you) all in UTF8 are ok. But now i must use ranges from U+10...
[2 replies] Last: Great man. Thanks again. Jim (by dkaip)
multi-character character constant error message?
 
I keep getting this warning message and I do not know how to fix it. Is it because I'm using char ...
[5 replies] Last: well if you are creating it in c++ you should use iostream and use cou... (by giblit)
error: expected initializer before ‘void’
 
Well every time I try to compile my code using make command I get this error... and help? // ===...
[15 replies] Last: My bad... its actually the algos.cpp file in which im writing this cod... (by darklord1)
Need help with Tic Tac Toe game program (specifically the while loop)
 
Hi, I have no idea why the while loop of my program isn't working. When my code is like this: ...
[5 replies] Last: but it shouldn't prevent stuff from showing up on the console window.... (by giblit)
Pointer cause overhead?
 
Does uses of pinter in char type cause extra overhead?
[6 replies] Last: I meant which is fatser char* name="name" or char name ="name" Actual... (by helios)
beginner,want this program to call the relevant functions,calculate final price
 
#include <iostream> using namespace std; double amount; double studendOrPensioner(int&choice, doubl...
[1 reply] : Use code tags http://www.cplusplus.com/articles/jEywvCM9/ #include... (by Bdanielz)
how many streams with a file?
 
I wanted to know if i could use two streams with a file fstream fS; ifstream read; fs.open("t...
[1 reply] : Unless "text.txt" is somehow too large, you should read the whole file... (by Computergeek01)
by Ispil
Segmentation Fault
 
I managed to get my code to a nearly-function state, but now I am suffering from an obnoxious segmen...
[3 replies] Last: Yes, my silly mistake on 70 and 88. Fixed that up. As for 114, changed... (by Ispil)
Confused about this pointer arithmatic
 
/* strchr example */ #include <stdio.h> #include <string.h> int main () { char str = "Thi...
[2 replies] Last: thanks so he should use str type int, not string... (by csstudent123)
Pages: 123... 39
  Archived months: [jul2014]