General C++ Programming (Page 5)

array char[] error :(
Hi guys, i have a problems understanding about array char but it was required in my code to have a a...
[1 reply] : The code above doesn't compile, there are numerous errors - missing cl... (by Chervil)
Circular include. Expected name-class before '{' token
Hi, I'm new to programming. I'm trying to make a RPS game but I'm having trouble with the circular i...
[2 replies] Last: Please post the complete error messages, all of them, exactly as they ... (by jlb)
Output deck of cards not aligned, why?
Trying to display deck of cards, but they aren't side by side; rather they have gaps in the next lin...
[2 replies] Last: Another way using cstring funcionality to copy and join C-style string... (by kemort)
Invalid conversion from ...<char> to int
Hi, I am imitating a queue using a linked list. I created a struct node, then I created a struct cal...
[1 reply] : The expression A ? B : C is an expression, not an statement like if(A... (by Cubbi)
by hav206
is there another faster way to delete a string
// // main.cpp // characterRemover // // Created by Van Ha on 6/7/16. // Copyright © 2016 Van H...
[7 replies] Last: > is making the bool table static and clearing faster than recreating ... (by JLBorges)
by DNS323
Creating a csv file in a particular folder
Hello all, I am new to a c++ programing and currently working on my college projct. I have to cre...
[9 replies] Last: @Thomas1965 Hey, Thanks. It is working well. Thank you very much. I ha... (by DNS323)
How to access the protected variables?
I cannot access the protected variables even within a derived class. #include <iostream> us...
[3 replies] Last: Hi, There probably isn't much point in making the variables protected... (by TheIdeasMan)
Exercise 7.3.3 C++ without Fear 3rd edition
Revise the example so it implements the bubble-sort algorithm, which is potentially faster than the...
[2 replies] Last: (by Duthomhas)
Creating CSV-file with small numbers content
I'm trying to find out how to get the right format when using ofstream when writing to CSV-file. ...
[10 replies] Last: Required reading when messing with CSV files: (by Duthomhas)
by anogio
non const ref return type is bad?
I was recently told that a method should never return a non-const reference to a type like so: ...
[2 replies] Last: Yes, that was my reasoning too. I thought it was odd that this person ... (by anogio)
by waruqi
A make-like build utility based on Lua for building c/c++ program
Introduction (中文) xmake is a make-like build utility based on lua. The project focuses on maki...
[no replies]
Water level control with arduino, help
Hi, I'm working on an assignment that needs to meet the bellow requirements. This is my first time u...
[3 replies] Last: Unfortunately I think you need a different approach. Consider this: i... (by dhayden)
Developing a non-STL list
Hi, I'm going to using the following code create my own List: #include <std_lib_facilities_4.h> u...
[7 replies] Last: Why did you declare first and last within protected scope and no... (by Frank14)
UART programming
I am writing a UART receiver, why am I getting line 65 instead of line 75 ? I have checked using min...
[9 replies] Last: line 16 seem like carriage return but it is printed as 'a' instead of... (by jlb)
advice on how to free memory leak
Hi everyone! I have to deal with a memory leak in a code that is not mine, and I want to ask for ad...
[1 reply] : Use value semantics, perhaps? class A { public: int a; ... (by JLBorges)
To Compare two rational numbers
I am trying to compare two rational numbers to see if they are equal or not, but there is a logic er...
[4 replies] Last: Comparing floating-point numbers for equality is dangerous because of ... (by lastchance)
by hychan
Best Book on Algorithms
I've learnt about C++ algorithms before, but until now I still can't use most of them properly in my...
[11 replies] Last: @hychan This website is referred to at the cpbook site and might be us... (by kemort)
by hychan
A Word
I'm trying to find a word that means printing only a part of the output in the middle of a program t...
[6 replies] Last: I did a little search on the Internet and found the word to be "loggin... (by hychan)
by Handge
Print a character based on variable
I know Google Spreadsheets has something like this =REPT("|",100) Is there something like that...
[3 replies] Last: char reps = {0}; memset(reps, '|', 100); only works on byte sized st... (by jonnin)
Undefined reference.......
I have a program like this: /*PROGRAM StatStar General Description: ====================...
[11 replies] Last: I downloaded all the files from the reference I gave, replaced StatSta... (by lastchance)
Pages: 1... 34567... 12
  Archived months: [jun2017]

Cannot post in this page. To post a new message, go to the first page.