Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
33% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
1 Commented Post
~5K People Reached
Favorite Forums
Favorite Tags
Member Avatar for codeyy

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: **** *** ** * …

Member Avatar for Gonbe
1
3K
Member Avatar for codeyy

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" …

Member Avatar for Narue
0
160
Member Avatar for codeyy

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] …

Member Avatar for Adak
-1
549
Member Avatar for codeyy

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 …

Member Avatar for rubberman
0
2K
Member Avatar for codeyy

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 …

0
35