General C++ Programming (Page 51)

if/else not working
I'm new to c++ and im trying to make a program that will allow a user to figure out what Gregory is ...
[2 replies] Last: your second code is working fine, i didnt used #include<sstream> (by imii)
by imii
function on left of = operation in c++ still works why?
#include<iostream> using namespace std; /* such a function will not be safe if x is non s...
[8 replies] Last: ya *j can't be written... thankyou guys :) (by imii)
How to know where the pointer is pointing in char *?
#include <iostream> using namespace std; int main() { int temp1={1,2,3}; int *temp2=temp...
[3 replies] Last: std::cout has a overload for char* that prints out the C-string, so yo... (by firedraco)
Help on programming exercise with if else statements
The Fast Freight Shipping Company charges the following rates: Weight of Package Rate per Pound 2 ...
[5 replies] Last: Do something along these lines for your function/module as you describ... (by kemort)
Simple ATM Program
Hi guys, i'm back again. This is the 4th and last machine problem for me to do. I need to create a s...
[9 replies] Last: Hi bro, i created the other thread ( (by abujuguluy)
by guru23
While loop problem
[8 replies] Last: @garen: please don't delete your posts after receiving help, it's incr... (by LB)
why bruteforce losts its fuctionlaity at some point in this code?
I am trying to solve a puzzle again! this is the link: my ...
[10 replies] Last: > I am sharing the final code that works correctly. it is missing some... (by ne555)
how to read input from csv file and display output of csv file
I need to read input from a csv file using only cin and display it only using cout. I changed the co...
[no replies]
Why is strcmp not working.....
#include<iostream.h> #include<conio.h> #include<string.h> char *t1,*t2; void main() { clrsc...
[2 replies] Last: Both programs are incorrect. You must make t1 and t2 point to the memo... (by Peter87)
Populate a parallel array in one function and output the data in a separate function
Hello. I am working on an assignment that requires three functions, one for populating arrays, one f...
[5 replies] Last: // function definition for calculateGrade() char void calculateGr... (by JLBorges)
how to add border to console screen
guys pls help me in adding border to console screen
[6 replies] Last: Getting off of DOSBox would be mine. Seriously, just for my own curios... (by Computergeek01)
Error: expected class-name before '{' token
Hi guys I was once again working on a Framework using inheritance when I encountered the followin...
[12 replies] Last: You have a circular dependency. Game.h includes Player.h Player.h i... (by Peter87)
by teddsy
Beginner! Please help explain what each line of code means?
Hiya! I'm new to all this and I want to know what each line of this code means please, in basic term...
[7 replies] Last: (by John081366)
Segmentation fault (core dumped)
please help me figure out the error. thanks my code is : #include <fstream> #include <iostream> #...
[5 replies] Last: As kbw pointed out: Line 144 makes the pointer invalid and it crashes ... (by coder777)
Find Functions
Hey guys, int pos = name.find('t'); int pos2 = name.find('T'); if (pos == string::npos && p...
[6 replies] Last: @LB I agree on that ;) (by Ericool)
by jmlong
Release version doesn't work
Hi all, I tried to use GSL DLL and its relevant functions of Histogram. My program is working in ...
[3 replies] Last: Thanks guys! I was surprised because the code is short and very simpl... (by jmlong)
by nj1995
Can't figure out what's wrong
For class I have to create a program that fills a 2d array and gets the sum of each row and column a...
[4 replies] Last: #include <stdlib.h> #include <iomanip> #include <iostream> using name... (by imii)
I can not figure this mistake out
So Whenever I run this program I get choice number 3 even when I know that it shouldn't be.with the ...
[3 replies] Last: Ah I see thanks MiiNiPaa, I thought it might be a simple mistake. (by Skycommand)
Hi, I'm programming right now a Binario programme that can find a solution of one of those. My progr...
[1 reply] : Can you explain with a bit more detail what the problem is please. (by kbw)
Need Help Writing a Program
I am in a college level C++ class and i need help writing a program here it is: Write an applic...
[2 replies] Last: If you've tried, post your code. (What I think is the)#1 rule of learn... (by YFGHNG)
Pages: 1... 49505152
  Archived months: [sep2015]

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