General C++ Programming - September 2018 (Page 7)

C/C++ Network
 
Hello, I have 4+ years of experience with desktop c++ but when it comes to network, I am a total beg...
[6 replies] Last: Since it's not for nefarious purposes, you're going to need the cooper... (by helios)
function int convert to float
 
#include<iostream> using namespace std; float thai(float x); //function declaration float us(...
[15 replies] Last: thanks you so much tibrodo! (by limchankhim)
File Read & Write
 
Hello, To Improve my C++ skills (and some boredom), I've decided to create my mini programming langu...
[3 replies] Last: @tibrado Thanks ! (by closed account DEhqDjzh)
Array Functions using Template
 
Hello, I am having trouble with displaying my array. The error says that displayArray identifier is ...
[2 replies] Last: declare function before use (by akatsukiyuyo)
Template Functions
 
Hello, I'm having trouble getting my arrays to show using the show function. I get an output but its...
[3 replies] Last: The values you are passing into your parameters look OK to me. Do you ... (by Ganado)
by JM567
Read in file as string and store into struct variables
 
Hello, I am in a basic programming class, and we have a lab that I am pretty stuck on. The instructi...
[2 replies] Last: Duplicate http://www.cplusplus.com/forum/beginner/242250/#msg1075756... (by longberns)
It's not displaying correctly, am I using the pointers for callsign and location correctly?
 
/* This program creates 2 instances of a dynamic memory data structure that represents spaceships t...
[4 replies] Last: @Ganado I wondered what that link was about lol. (by tibrado)
Computing Average
 
// Hello, I need some help computing averages after reading from a file. The parameters for my compu...
[4 replies] Last: Student1904. First you need to call the computeAvg function, which com... (by tibrado)
Binary subtraction
 
Hello guys I am currently trying to implement a algorithm for binary subtraction to pass my test ca...
[1 reply] : [quote=hello321]implement an algorithm Which algorithm? Write it down... (by lastchance)
How to declare a "nullptr" initialized pointer using "auto" keyword.
 
Hi everyone, I am trying to declare a pointer variable initialized to "nullptr" using "auto" keyw...
[5 replies] Last: Me too. Being able to know what type an object is by looking at where ... (by Repeater)
cant compile class in seperpate .h/.cpp files
 
I am just now learning how to split class accross .cpp & .h. I've come across an error during this &...
[3 replies] Last: That will fix it in this case. Note that it's considered bad practic... (by Repeater)
by elsa
How to write the backbone of this program project
 
I have the following homework assignment. And I'm having trouble getting started. I'm familiar with ...
[4 replies] Last: Strongly consider using std::vector to hold the coefficients. https:... (by JLBorges)
cant figure out what im doing wrong
 
#include <iostream> #include <string> using namespace std; class Time { protected: ...
[6 replies] Last: Ok I got it!! thank you again!! (by swaveysaiyan)
How to prevent source code from seen
 
Hi, I am creating a console application game with pure c++(No libraries, Engines,) and I want to sel...
[6 replies] Last: But games and software no longer do idiot stuff like 'open your book,... (by helios)
Need help to write one c++ code.
 
How to write a c++ program which will accept binary numbers as matrix from user and also get particu...
[2 replies] Last: define binary number. Is this a so-called binary file / byte stored ... (by jonnin)
no matching function for call to 'Subject::Subject(<brace-enclosed initializer list>)'|
 
#include<iostream> #include<string> using namespace std; class Teacher{ public: std::string n...
[5 replies] Last: Your choices are basically leaky or crashy. Pick one. Be sure to add c... (by Repeater)
by volang
const char pointer logic
 
string a = "something funny"; const char * b = ""; b = a.c_str(); //The output is "something f...
[16 replies] Last: Maybe there is a better language suited for me? Have a look at Java.... (by Thomas1965)
generating a random float number
 
hi I need to generate a random number between 0.0 and 1.0. But i'm having problems with it. I've t...
[5 replies] Last: C++98, using the same algorithm as above ( std::generate_canonical ), ... (by JLBorges)
Best Stable Matching program
 
I am trying to write a program to ask the user to enter in two data files that contains the most pre...
[1 reply] : The code as you've posted it is unreadable. Use code tags. A couple c... (by helios)
Rerunning program just opens a window
 
I noticed this behaviour in Microsoft's Explorer.exe and some other programs, where if you run the p...
[2 replies] Last: thanks for the explanation! (by barnack)
September 2018 Pages: 1... 56789
  Archived months: [aug2018] [oct2018]

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