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{ ...
[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> #...
[no replies]
gettoken
 
I have trouble understanding this gettoken function. Token is a name, a pair of parentheses, a pair ...
[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 ...
[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 a...
[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 c...
[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...
[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 usag...
[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...
[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...
[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...
[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 appr...
[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 i...
[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 ...
[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 ...
[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...
[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 p...
[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 ...
[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 wo...
[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...
[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.