• Forum
  • General C++ Programming

General C++ Programming

by admin
Welcome to this board!
 
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any top...
[no replies]
Writing std::string to std::ofstream
 
Why does my compiler not allow c++ to write a string to the output stream? For example: void f...
[2 replies] Last: using: outputStream << myString results in a compilation error.... (by lampshader)
Difficulty with an exercise
 
Hello guys, I can't understand what does the question want, to write appropriate code for it. Woul...
[4 replies] Last: Hi, Thank you very much for your guidance. I appreciate you for it :)... (by Kurdman)
program keeps throwing "press any key to continue..."
 
...
[no replies]
Confused about implementing a set and get to a private object.
 
Hello all! Here is my header #include <stdio.h> #include <string> enum PlayerGender : uns...
[2 replies] Last: Hi, You probably shouldn't have those trivial set functions at all, u... (by TheIdeasMan)
Odds and evens
 
I want to tally the number of odd and even numbers that i have in a file into a prototype. I already...
[1 reply] : That tally is just counting the numbers that are not divisible by 2,... (by kbw)
by Fitzy
operand types are incompatible
 
Hi guys, I am trying to learn and follow through a book. I have some basic code from the the book ho...
[1 reply] : c is a character. "a" is a string. If you want to compare with a char... (by firedraco)
Arrest people for using "new" and "delete"
 
Some people at this forum say that programmers must never use "new" and "delete". I think they say ...
[17 replies] Last: > When i use make_unique, this function allocates memory. No. It does... (by JLBorges)
Help me find tally the numbers of odd and even
 
So i have this assignment which I don't know too much about it. I just need how to find the oddTally...
[3 replies] Last: you need to call inputFile.open (by kevinkjt2000)
Array Exerercise-Find top N values in array
 
Hey guys, So for a course I am taking I am have a question which asks me to do the following. Gi...
[14 replies] Last: Solution 1. Indirect using sorting. One scanning of input file. #incl... (by Konstantin2)
Application of fibo function!
 
How much time would it take to fibo function to calculate fibo (100)? Why? and thank you in advance...
[1 reply] : Hi, Try Googleing Big O notation for fibonacci, and read the wiki pag... (by TheIdeasMan)
Sudoku Game
 
how can i make the cursor skip the tiles that already has a value. and just moves from the blank spa...
[no replies]
PPM Image file Magic Number and MaxColorValue
 
Hi, When reading a PPM Image file, how would I find the magic number and the max color value? in...
[1 reply] : All your questions are answered in the documentation: http://netpbm.so... (by Duoas)
Splitting linked list
 
I have an assignment where I have to split the linked list at a given position by the user. The l...
[4 replies] Last: Is my split function correct? No, your split function does not do th... (by Duoas)
explain the result fact (100) = 0!!
 
I tried to calculate the factorial of a number n equal to 100 and the result gives me 0. explain the...
[5 replies] Last: 100! is a very big number, chances are your architecture's "unsigned l... (by Ganado)
simplify function help
 
I am building a class fraction. I have it set up to take in two parameters such as fraction f1(4/10)...
[1 reply] : it seems to me this should work? There's one thing I think can be impr... (by BasV)
Doubly linked list SWAP HELP!
 
I am having major syntax and logical issues with dealing with swapping doubly linked lists. I und...
[1 reply] : need urgent help (by alex067)
2d Array into function with vary size depend on txt file
 
Hi everyone, I'm trying to create a function that manipulates an 2d array read from a text file....
[no replies]
by abc1
dangling else statement
 
hi, I am not knowing dangling else statement.What is it?How to avoid it?Please explain me with e...
[4 replies] Last: well an 'else if' is an 'else' followed by an 'if'. It's not anything... (by Disch)
Rainfall Statistics
 
The problem is: Write a program that lets the user enter the total rainfall for each of 12 months i...
[3 replies] Last: thank you guys so much !! (by gizmo928)
Pages: 123... 27
  Archived months: [jan2015]