General C++ Programming (Page 37)

function template throws errors on <
(g++)error: expected initializer before '<' token namespace str { template<class S> S s...
[4 replies] Last: This is ambiguous, and the error diagnostic points out the ambiguity: ... (by JLBorges)
by mvgnum
Help to finish my code
Hello guys, I found this exercise online and i need to do it for my class. Write a program that im...
[2 replies] Last: kemort it's a link to our c++ online class. Only the student of the cl... (by mvgnum)
is this possible?
Hi I don't know if this is possible but if you enter something like /23, Will you be able to ONLY ...
[8 replies] Last: oh check out my post in LOUNGE board :) (by closed account iz8p4iN6)
Count first digit on each line of a text file
My project takes a filename and opens it. I need to read each line of a .txt file until the first di...
[15 replies] Last: (Character by character will work but is not best suited to the doubl... (by cire)
Two interger adding, subtracting, dividing, and multiplying program
I am having trouble figuring out how to go about adding the math operators to this code. #inclu...
[no replies]
Comparing strings always returning false
I'm trying to compare a substring to a string that I have written, like below, but the if statement ...
[3 replies] Last: substr() (sometimes called mid()) is a common string operation in many... (by helios)
by Orrin
Made 4 function calculator using if and else will not work right
#include <iostream> using namespace std; int num1, num2, result, function, add, subtract, mult...
[2 replies] Last: Thank you for the help. It works really well now! (by Orrin)
could anyone help me about this task?
Please help me how could I do this task. I'm a beginner in C++ Programming and very interested to le...
[1 reply] : @gentleguy, pretty sure his task is to learn the C++ programming langu... (by Uk Marine)
How to insert a variable in a « ifstream » line
Hi ; It seems incredible ifstream does not accept a variable (name of the file) that i get with a c...
[6 replies] Last: Thanks to all of you. You gave me a lot of information. (by sylvain)
End user software for Siemens RCU Connect Remote control
This is a BlueTooth device which both sends and receives. I have plugged the unit into my usb. It...
[2 replies] Last: "anywhere anytime access" sounds like that you need an account on an c... (by closed account 48bpfSEw)
by Byteen
Banners with C++ for console app
Banners Hi everyone! I've developed a simple code for printing banners in console using C++, very...
[2 replies] Last: Hey, gentleguy , glad to see you are as humble as ever. Guess what? ... (by Duoas)
Trouble with while(getline(file, str))
void parseFile(std::ifstream &file, std::string &string){ std::ifstream file;"t...
[2 replies] Last: I actually sort of answered it myself. Since I had already parsed the ... (by wh1t3crayon)
by mkb555
Accessing data in structs
I haven't coded in awhile, and apparently I'm REALLY rusty because I seem to have forgotten somethin...
[2 replies] Last: Uuuuugh, I'm such an idiot. Thank you. (by mkb555)
Five Grades of a Student
so my professor wanted us to create a program that accepts five grades of a student, then compute it...
[3 replies] Last: Well. It depends, how much points does the user have to get to get a p... (by TarikNeaj)
Fix coding
This is assignment congkak(mancala) game.Hope someone can fix and improve this code. #include<ios...
[1 reply] : Line 5: This is a bool function. Line 14: You're trying to return su... (by AbstractionAnon)
by np1984
const qualifier with function overloading
#include<iostream> using namespace std; class A{ public: void fun(char *a) const ...
[5 replies] Last: dhayden and JLBorges, thanks for the explanation. (by np1984)
by kusace
pls help with assignment
Ackermann Function The Ackermann function is the simplest example of a well­defined total function ...
[no replies]
Problem with Trap moving
void Draw() { system("cls"); for(int z = 0; z < 5; z++) { trapX = rand...
[10 replies] Last: What is wrong with the tabbing? Simply you code is not correctly alig... (by fcantoro)
A networking program
Hello guys, I need a reference how to start writing a program of list all networking configuration ...
[no replies]
by PacR
How to efficiently compare list elements against themselves?
For example my list consists of 4 integers : 1,2,3,4. Program flow sould go like this: 1 < 2 = t...
[9 replies] Last: Thank you kemort & gentleguy. #include <iostream> int main() { ... (by PacR)
Pages: 1... 35363738
  Archived months: [aug2016]

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