General C++ Programming - October 2016 (Page 19)

by cmisip
Flushing the serial port
 
I realize that this may be too specialized a cpp question but I thought I'd just give it a try in case there are any serial programming gurus here. Every now a...
[4 replies] Last: Thanks for your response. I will continue to study the problem. I wi... (by cmisip)
URGENT! I need to configure my database into c++
 
(This is very urgent) Hello! I am looking for a way for my customers to enter an email and have it logged into a database. I've gotten everything for enetering ...
[no replies]
Some characters are replaced by previous one
 
I am making a game with my frnds and v found that the characters are replaced by previous one (eg-JAIL is replaced by JAIK) in Turbo C++ So i tried learning ...
[2 replies] Last: sry the code is too large(1350 lines) i am asking u to suggest ways to... (by JeevaCPP)
Double to int
 
for (int i = 0; i < trupmeniniuSkaiciu; i++) { naujaTrupmenineDalis = trupmenineDalis % 10 / pagrindinisDaugiklis; cout << naujaTrupmenineDa...
[2 replies] Last: Thank you! I tried something similiar with cast thing but i believe i ... (by Tomheza)
by domcho
How to write single class private data member to binary file
 
I have the following class: class Student { private: string name; double grade; public: Student(); ~Student(); void setName(); // cin >> name void set...
[6 replies] Last: Once again, thank you very much! Problems solved. (by domcho)
by ll9512
Calculate student GPA using loops
 
Hi, I'm supposed to write a program that calculates a student's GPA. The problem is that I have to use do-while and forloops for this program, but every time I ...
[7 replies] Last: Just put your counter++ on line 18 after the if statement and you are ... (by shadder)
C++ Arrays and nested if..
 
I couldn't get the forum to work... I can't figure out what's wrong with this block of code, I don't see any errors. The program runs but skips this whole bloc...
[3 replies] Last: Never mind, I believe I got it. Thank you. (by Menacing)
by vinceu
Multiple Definition of 'variable'
 
Hi guys, So I'm making a slightly huge project, but this one little problem is hindering any progress. I just built a class for my AVL tree, but everytime...
[1 reply] : I posted the normal question then used the edit post to add the code t... (by Menacing)
Inheritance using template?
 
I am not sure how to solve this issue but I am sure other people had a similar situation before. I have a Base class (could be abstract). I have 2 classes t...
[3 replies] Last: static_assert and some template metacode can do this. See std::is_... (by mbozzi)
by Muyus
Void funtion recursive
 
¡Hi! I have to do a recursive void function that do the same thing as this program. #include <iostream> using namespace std; /* run this program using the co...
[2 replies] Last: I lost a lot of time trying to figure out how to do that, because I do... (by Muyus)
by Burden
One question about priority queue
 
Describe one way to implement a priority queue on an array and give the order of adding and removing an item with this implementation.
[no replies]
Feedback for documentation of C++ open source tool
 
Hi, we would appreciate any feedback about the documentation of this C++ open source tool: Rearray binary tool Description This high performance tool rearray...
[3 replies] Last: what documentation ? The above documentation. The small link at t... (by ncomputersorg)
Feedback for documentation of C++ open source library
 
Hi, we would appreciate any feedback about the documentation of this C++ open source library: Intropy compile-time library Description This high performance ...
[2 replies] Last: Hi, thank you very much for your feedback! Kind regards, What is thi... (by ncomputersorg)
Throw exception, error handling
 
I have a question regarding throwing errors inside a constructor. So lets say I have a class called Item, which holds three data: string name, code; double...
[9 replies] Last: yes: opening brace of the constructor is only entered after every base... (by Cubbi)
Feedback for documentation of C++ open source tool
 
Hi, we would appreciate any feedback about the documentation of this C++ open source tool: Entropy estimation tool Description This high performance tool out...
[no replies]
Everything seems to be working but the name
 
#include <iostream> #include <iomanip> using namespace std; int main() { //Constants for adult and child ticket costs const double cost_per_child_tick...
[4 replies] Last: The line #include <cstdlib> may be needed at the start to use system... (by closed account iN6fizwU)
Urgent pleaseeeee :'(
 
Please refrain from using "urgent" in the topic title. This turns people off. The code seems to have no structure, so It's difficult to understand what it's sup...
[2 replies] Last: Your program is difficult to read without proper indentation. You sh... (by AbstractionAnon)
Implemention of rvalue return function
 
Hey, i was attempting an exercise on rvalue return functions(i think thats what you call them?) I was given this class header file and required to implem...
[7 replies] Last: @andirew, I am only slightly familiar with rvalue references--only en... (by doug4)
Using 5k pace and ordering them in first,second and third place
 
Hi guys I need some assistance with a C++ code. I am very new to C++ and coding in general and I am stuck on this assignment. We are given a person's name, bib,...
[1 reply] : Please use code tags: #include "race.h" #include <string> using nam... (by theturk1234)
October 2016 Pages: 1... 1718192021... 23
  Archived months: [sep2016] [nov2016]

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