General C++ Programming - October 2016 (Page 15)

by Hengry
fatal error condition: SIGSEGV - Segmentation violation signal
 
Hello I need help figuring out why I get SIGSEGV error. My classroom.cpp utilizes my UniqueVector class as the underlying data structure, and my UniqueVector p...
[6 replies] Last: http://stackoverflow.com/questions/5856628/program-received-signal-sig... (by Robles11)
Need guidance for " this"keyword
 
Hey everyone, I need help on how to use the "this" pointer. And how can it be used in file handling stuff. . (like that seekg and seekp )pls can someone help me...
[1 reply] : A less crucial use is to write explicitly clear code: T Foo::bar( con... (by keskiverto)
Code help please can not debug
 
Create a program that allows the user to enter the gender (either F or M) and GPA (0.0 through 4.0) for any number of students. The program should calculate and...
[1 reply] : Don't Double Post. It's nothing but spam. Original Post: http://www.cp... (by TarikNeaj)
POS system
 
Hi guys can you help me this program output is: F1 carbonarra 2 110 F1 carbonarra 2 110 F1 carbonarra 2 110 ...
[2 replies] Last: Thanks.. :-) it was a great help but there is one problem if I enter... (by kimrobert)
Re-assigning an istream&...
 
Consider: class X{ //... istream& source; public: //... void set_source(const istream& ist){/*???*/} } How can something of this manner be i...
[2 replies] Last: Ty sir this is the kind of thing I was looking for. I understand that ... (by TinyTertle)
by CZZ
INI file
 
Hi guys! I'm making a program that receives input parameters from a .ini external file. I would like to create a constructor able to read these parameters and...
[2 replies] Last: Since .INI is a fairly standard (albeit archaic) format, there are bou... (by MikeyBoy)
by Ruthra
need help identifying cause of "segmentation fault"
 
can anybody help me identify why the code causes "segmentation fault" at line 65 "colCount != 0". But colCount is defined and Initialized as an array in the cl...
[4 replies] Last: You're welcome - glad it helped. (by MikeyBoy)
Is it correct to use std::array<std::vector<int>, ?> in this situation?
 
Hi everyone, I wanted to know which is the best way of dealing with the following issue: I want to store a data structure that has n elements (where n is ...
[7 replies] Last: Thank you mbozzi, that is a important point (by dariodem)
C++ Begginer - errors
 
#include <iostream> int main() { int a; int b; int c; int d; cin>>a>>b; c=a+b ; d=a*b; if(a%2==0) std::cout<<c<<d; else ...
[8 replies] Last: #include <iostream> int main() { int a; int b; int c; int d; cin>>a>>... (by SakurasouBusters)
need help with Array coding
 
Hello everybody, I wrote a program to output the name, ID, department, position using Class, Array, and object. my professor give me a hint by using Pointer for...
[2 replies] Last: TinyTertle, i have learned how to prefixes my code . i apologize about... (by Superman99)
Help: reading and writing to the same file.
 
Lets say I want to take every character in a file and make it lower case. I could do something like this: string path = "file.txt"; ifstream in{path};...
[4 replies] Last: Something more like //... while(in) { file.get(ch); file.s... (by TinyTertle)
by Revert
Calculating a future day
 
Hey guys I need some help with my code to calculate a future day. Everything seems to be almost there, but I need the future day to pop up. Here's my code, ...
[4 replies] Last: Do you mind explaining it more to me? I'm not sure what you want ex... (by cire)
by helo12
trouble with deques
 
So two things first off I am taking a data structures class so you cannot use the Standard Library at all none of the standard deque templates this is a purely ...
[1 reply] : First, I don't recommend this kind queue; Second, you should modify nu... (by HITZJP)
by zakk
error C2371: 'DATE' : redefinition; different basic types
 
class DATE { public: void extend_date(int,int,int,int ); int diff(int, int, int, int, int, int); int day,mon,ye...
[2 replies] Last: Conventionally, names in ALL_CAPS are preprocessor macros. Maybe you ... (by mbozzi)
Need help with Vectors
 
I have a couple of questions through out the code. I will try to ask them. Please help answer the ones possible. My first concern is that is my person.cpp fi...
[2 replies] Last: My first concern is that is my person.cpp file correct? or does it se... (by cire)
".exe has stopped working"
 
I am pretty new to C++ and programming in general, so I decided to make a cipher program that changes each letter to the letter 4 spaces after it. I know its no...
[1 reply] : string ans[msg.length()]; //The list of characters(as strings) of the... (by cire)
by RRO
Can someone help me with me code?
 
Ive been programing this menu for a while. its rather simple but I cant figure out how to get back to the previous menu. I could really use help. thanks.
[1 reply] : Not to be that guy but, it would be helpful if we could see the code t... (by TarikNeaj)
Can someone help me with my code?
 
Currently I'm stuck at one point, I'm trying to write something like this: class Rectangle : public Movable { private: sf::RectangleShape rs; ...
[1 reply] : I created a very simple program for you, that lets you move around a c... (by TarikNeaj)
tic tac toe program not running
 
So I got motivated to write a 2 Player tic tac toe program,where a user enters a column no. to change it into X or O but the program doesnt after the first use...
[2 replies] Last: oh it works now! Thanks a lot you saved my day. Plus you just reminded... (by Blazinteen)
how do i display the min value from output table and print three asterisk?
 
Here is question: rite a program that will calculate the functional values of the function f(x)on some selected points from a domain, where f(x)=e^-x*(x+3)*c...
[1 reply] : First, please use code tags when posting code. See http://www.cplusplu... (by keskiverto)
October 2016 Pages: 1... 1314151617... 23
  Archived months: [sep2016] [nov2016]

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