General C++ Programming - October 2015 (Page 26)

Quadratic Program Question
 
My computer science teacher has instructed us to create a quadratic formula program. I am fine with everything except how to avoid this in the guidelines! Any i...
[2 replies] Last: Use the isdigit function. http://www.cplusplus.com/reference/cctype/is... (by integralfx)
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 doing based on the day of the week and other variables. ...
[2 replies] Last: your second code is working fine, i didnt used #include<sstream>...it... (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 static variable of it */ int &fun() { static int x; re...
[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=temp1; cout<<temp2; } The above code will print the lo...
[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 pounds or less $1.10 Over 2 pounds but not more than 6 poun...
[5 replies] Last: Do something along these lines for your function/module as you describ... (by closed account 48T7M4Gy)
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 simple ATM program, starting from creating an account, displa...
[9 replies] Last: Hi bro, i created the other thread (http://www.cplusplus.com/forum/ge... (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: http://www.puzzleup.com/2015/puzzle/?9 my method requires vectors. Because I use this method: http://i...
[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 command arguments to redirect of the file "<data.csv" in the d...
[no replies]
Why is strcmp not working.....
 
#include<iostream.h> #include<conio.h> #include<string.h> char *t1,*t2; void main() { clrscr(); cin>>t1; cin>>t2; if(strcmp(t1,t2)==0) cout<<"HEllo...
[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 for getting a letter grade, and one for outputting the data. ...
[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 following error: C:\..\C++ & SDL2\SDL Game Development\Player.h|1...
[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 terms, to try and get the hang of it. Thanks #include "stdafx.h...
[7 replies] Last: http://alqayyumsoft.com/introduction-of-c++.html (by John081366)
Segmentation fault (core dumped)
 
please help me figure out the error. thanks my code is : #include <fstream> #include <iostream> #include <string> using namespace std; struct Leader; struc...
[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 && pos2 == string::npos) { cout << "There is no t in your nam...
[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 Debug version, however, not successful in Release version. B...
[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 and places them into two different arrays and displays the to...
[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 inputs that i choose. So I have no clue how to fix it.Could ...
[3 replies] Last: Ah I see thanks MiiNiPaa, I thought it might be a simple mistake. (by Skycommand)
Binario
 
Hi, I'm programming right now a Binario programme that can find a solution of one of those. My program read a filed .txt with (1,0,*) where the * represent the ...
[1 reply] : Can you explain with a bit more detail what the problem is please. (by kbw)
October 2015 Pages: 1... 24252627
  Archived months: [sep2015] [nov2015]

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