General C++ Programming - December 2015 (Page 12)

Problem with struct in function
hello guys, i need some help with my code in main i have: int main(){ . . struct{ int id; string nazov; int rok; s...
Dec 13, 2015 at 7:36pm
[7 replies] Last: i need read data from imput file and put them in the struct. i did it ... (by mrvecka)
i cant run my manager function part~
i just wanna run my manager function.. #include<stdio.h> #include<stdlib.h> #include<string.h> #include<time.h> #include<windows.h> typedef struct { i...
Dec 13, 2015 at 6:38pm
[no replies]
gettoken
I have trouble understanding this gettoken function. Token is a name, a pair of parentheses, a pair of brackets perhaps including a number, or any other single ...
Dec 13, 2015 at 4:20pm
[7 replies] Last: Do you have to read the input char by char with getch() ? Can't you ju... (by Thomas1965)
converting integers to character using pointers
where i should put the pointer to make convert integers to character this is the code #include <iostream> #include <limits> using namespace std; bool en...
Dec 13, 2015 at 4:04pm
[1 reply] : I don't understand your question. Can you be more specific? Why do y... (by dhayden)
generating triangle problem
I'm trying to generate a triangle inside a 2D array , the triangle must fit completly in the array and the peak of the triangle must be in the middle of the fir...
Dec 13, 2015 at 1:52pm
[6 replies] Last: the coordinate of the center should be Y = 12/2 = 6 and X = 20/2 = 10 ... (by closed account E3h7X9L8)
Draw a map using SDL library
Hello , i'm doing a projet and i have to draw a map that shows all municipalities of France from a csv file by using SDL library. it's the first time that i us...
Dec 13, 2015 at 12:06pm
[no replies]
help please (1,2)
i have project and the time remaining to due is day and half and iam really stuck i would appreciate some help this is the project : Write a menu driven p...
Dec 13, 2015 at 9:04am
[24 replies] Last: for(i=0;fscanf(input,"%d %d %s ",&id ,&grade ,&name )!=EOF;i++){ ... (by YOSIFALAQEEL11)
Accessing members of an outer class inside nested class since c++11
"Declarations in a nested class can use any members of the enclosing class, following the usual usage rules for the non-static members." I've read it here at ...
Dec 13, 2015 at 8:08am
[5 replies] Last: Now I got the picture, thanks. (by alxprog)
works without errors!! but stops in the output!!
okay guys, this my program about employee management system. I had earlier posted this coding asking to clear the errors. Now its working fine without errors, b...
Dec 13, 2015 at 6:39am
[9 replies] Last: How to use code tags: http://www.cplusplus.com/articles/jEywvCM9/. (by SamuelAdams)
converting interger to character using pointers
Where i can put the pointer so that those intergers will be converted to character This is the code: #include <iostream> #include <limits> using namespace st...
Dec 13, 2015 at 6:36am
[1 reply] : How to use code tags: http://www.cplusplus.com/articles/jEywvCM9/ (by SamuelAdams)
QuickSort
Having trouble getting my quicksort function to work. Been trying to figure out what's wrong with it for several hours. I'm trying to sort the following arra...
Dec 13, 2015 at 6:35am
[1 reply] : well I can't run incomplete code and I'm too lazy to try and read unfo... (by SamuelAdams)
Biinary Tree Adding Problem
Hi, I'm having trouble getting my output function to output in the correct order. Help would be appreciated. Edit: I figured it out
Dec 13, 2015 at 5:48am
[no replies]
program to display most repeatitive character in a sentence using array
there is one more issue if suppose to be there are two alphabets who occurs same time for example in a sentence :hello hey: h occurs 2 times e occurs 2 time an...
Dec 13, 2015 at 5:38am
[6 replies] Last: If you want your code to show all letters that have the highest freque... (by cire)
Are these both same?
I have a heap insert function in c++ Void insert(int n){ Size++; Array = n; //percolateup } Void insert(int n){ Array[size+1]= n: Size++; //...
Dec 13, 2015 at 4:56am
[1 reply] : Yes, both snippets change the program state in equivalent ways. (by helios)
by Ozzy69
Help with my program
Hello, my program dont behave; If this program were in C extension, it would work quietly, but in C ++ extension it does not work, why? Look my code: #in...
Dec 13, 2015 at 3:51am
[1 reply] : It looks like you went to a lot of trouble in order to suppress the co... (by Chervil)
Unable to access a protected variable in a derived class.
I'm trying to understand my following error. Q1.cpp:27: error: ‘double Dessert::calories’ is protected Q1.cpp:46: error: within this context But I ...
Dec 13, 2015 at 1:34am
[1 reply] : // ... class Chef : public Dessert { private: bool qualified; p... (by cire)
Segmentation fault occurring weirdly UPDATE
EDIT: I found a new segmentation fault. I am getting a segmentation fault whenever I derefernce pointer entries to Segment object within segmentTable ins...
Dec 13, 2015 at 12:48am
[12 replies] Last: That would do it. (by cire)
checking each structure element
I'm having trouble with this part of the assignment in the "void display(Leads x)" section: Ask the user if they would like to see only active leads Y or N for ...
Dec 13, 2015 at 12:27am
[3 replies] Last: How can I check the active member of the element? Loop over the arra... (by MikeyBoy)
Validating user entry not working..
Hey all, I'm using the code below and similar to validate user entry but can't seem to get it to work... NOTE_LENGTH is declared as an integer, previously.. ...
Dec 12, 2015 at 9:37pm
[6 replies] Last: https://stackoverflow.com/questions/13281669/how-do-i-sanitise-cin (by Moschops)
Detecting Empty Lines ??
I am having a trouble on Detecting Empty Lines in my program . my input.txt files looks like this: <code> 4 4 0 0 1 2 1 0 0 0 1 3 5 4 0 6 3 2 ...
Dec 12, 2015 at 8:28pm
[3 replies] Last: If the line is empty, then you need to set the next array element to "... (by andywestken)
December 2015 Pages: 1... 1011121314... 22
  Archived months: [nov2015] [jan2016]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.