General C++ Programming (Page 3)

Newline in istream
 
I have the following code and was wondering if there's a function that can be used in istream that w...
[5 replies] Last: As ne555 already pointed out, input and output are not the same thin... (by Duthomhas)
Print newline for anything but numbers
 
How to write an if statement that prints a new line for any line in a file that does not start with ...
[1 reply] : if ( !isdigit( str ) ) cout << '\n'; (by lastchance)
I am trying to use a list and iterate through it to find a word and delete the word from the list
 
I am trying to use a list with a hash table to find an occurrence of a word and delete it from the t...
[1 reply] : ¿do you have a connection between the end of each list and the beginn... (by ne555)
No Match for operator>>
 
I need to implement istream outside of class and without friend. I keep getting "no match for operat...
[2 replies] Last: I figured it out. I included a print function in my class and called i... (by darkknight914)
Overload Operator
 
I need help overloading operator for the following: class Dot { public: void PutName (const cha...
[4 replies] Last: Every time I included outside the class without friend, I get a "no ma... (by darkknight914)
by ujwala
SQLHSTMT with DB2
 
Hi All, I am using DB2. I want to know if there is any way/api to get the query string from SQLHSTM...
[no replies]
by elsa
add/display functions not working
 
This add function is supposed to return the sum of the 5 values of the iterator. It is not doing so....
[6 replies] Last: I solved it. Thank you. #include<iostream> #include<string> #includ... (by elsa)
by WildB
Having trouble duplicating a hexagon array in another array horizontally
 
I made a simple array to produce a hexagon-like shape within another array. However, everytime I out...
[7 replies] Last: Thanks (by WildB)
Simple Craps program
 
So I was working in this small program to run over a million times this game of Craps. However, when...
[2 replies] Last: Line 18-19: wins and losses are uninitialized (garbage). unsig... (by AbstractionAnon)
Need help with a DNA to mRNA transcription code.
 
I have a project where i have to read a DNA sequence from a file and print to the console its mRNA c...
[1 reply] : Double posted http://www.cplusplus.com/forum/beginner/251029/ (by salem c)
That error for distributing c++ based ".exe" files
 
I am sure you're aware of the "MSVCR140.dll"/"MSVCR110.dll"/"MSVCR100.dll is missing" error. I ask, ...
[7 replies] Last: If you used VS2017 to compile the program, and all of its parts, it ha... (by closed account E0p9LyTq)
Implement function templates
 
Need help implementing prototype. Data gives the data in the range [init, final) to standard output....
[3 replies] Last: This loop iterates through the sequence (from begin, up to not equal t... (by JLBorges)
by bj96
C++ Solver
 
This is my first computer science class and I am completely lost. Write a C++ program call Quadratic...
[7 replies] Last: You need to declare the functions consistently (they should all return... (by dhayden)
bring life into an old “object-oriented, C++ to openScad university projec
 
I’m trying to bring life into an old “object-oriented, C++ to openScad university project, that ...
[5 replies] Last: One thing I have found helpful in situations like this is to enable a ... (by AbstractionAnon)
Need help with std::map function
 
I am having a really hard time understanding how to use std::map. In my program below, I am placing ...
[8 replies] Last: Dang, I need to sleep more. My brain is going stupid. (by Duthomhas)
by whduer
Need Help Computing Day Of Week
 
Hello, I'm having trouble seeing where my code is going wrong. I'm new to C++ so I might be missing ...
[6 replies] Last: Did you chekc the formula in the link you mention as "problem source" ... (by MikeStgt)
by leemr
ZLib To Extract A Zip
 
I am learning C++ and want to use zlib to extract a .zip file. I am lost on how to do this and would...
[1 reply] : zlib by itself does not support .zip files. However, Gilles Vollant... (by mbozzi)
Arrays
 
I have an assignment that says "Write a program that puts random numbers in the range 0 - 9 into two...
[6 replies] Last: Sure. but lets help him a bit anyway. First, I have to advise agains... (by jonnin)
by Grime
Related to Polymorphism/Templates
 
I have a parent_class which has a lot of child_class(es). The parent_class defines a function void ...
[2 replies] Last: Thanks JLBorges edit: JLBorges your example helped me even more than I... (by Grime)
IEX API in C++
 
Hi everyone. First of all, I hope i'm posting this in the correct forum. I'm fairly new, so p...
[1 reply] : Well I found this after a brief search. https://github.com/Chudleyj/IE... (by salem c)
Pages: 12345... 18
  Archived months: [jan2019]

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