- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
5 Posted Topics
How do I write a recursive function in C++ to display a triangle of * like this using a parameter size (e.g. 4 in the following example): * ** *** **** I am able to write a recursive function to display an inverted triangle like this: **** *** ** * … | |
I am trying to write pop() function in a file but I am really stuck. It looks like it is asking to delete the top element of the stack and returns a Bookmark pointer. Please, help!! I am showing the header which explains what needs to be done. [CODE]#include "Bookmark.h" … | |
Hi! I am supposed to only use the "procedural fragment of C++", i.e. no object-oriented programming (like cin, cout etc). Vectors are not allowed either. So, one of my goals is to count the number of lines in a text file (let's call it train1.in) which contains data like: [ICODE] … | |
Element.h:15: error: using typedef-name ‘Element’ after ‘struct’ TrainToList.cc:6: error: ‘Element’ has a previous declaration here I understand that Element is getting defined twice but I do not know how to fix this. I must use Element as Car (or vice-versa??:confused:). Please suggest a fix to this problem. Now here are … | |
Hi! I am a Computer Science student and find the C++ forum very helpful. This is my first day here and am very satisfied with the helpful nature of the users here. I look forward to learn more from this webpage, especially from the forums by reading the problems/issues etc … |
The End.