General C++ Programming (Page 7)

Dynamic Programming : Tabulation gives time out for some cases but memoization passes successfully.
 
Hi ppl :), I was solving a DP problem and found that on submission, memoization technique passes th...
[no replies]
How to input a sentence (string with many words)
 
I have tried cin.get(t,1999);, I tried std::getline(cin,1999), I cant seem to find any solutions, in...
[3 replies] Last: Almost, you need std::getline( std:: cin, t); (by goldenchicken)
Writing to files. How?
 
I have an array of objects, whose parameters I can transform into one string, I now want to write t...
[2 replies] Last: I will try it now, thank you in advance. Lets see, it........WORKS! (I... (by Demrottens)
Some strange type-problem
 
Hey! I need some help with a strange behaviour on different types. I have a class ("clsMem" - see...
[7 replies] Last: good! That is why I was saying to deal with everything in bytes... y... (by jonnin)
by dap315
Insert function for a Binary Search Tree
 
Hi all, I'm using recursive functions to insert a node into my binary search tree. The program w...
[1 reply] : What do you do on line 4? A compiler does not accept that, because: e... (by keskiverto)
HELP PLEASE :(
 
Okay so i am trying to make an expand function for a vector class that doubles the capacity (cap) an...
[8 replies] Last: Thanks for clearing that up but i still have a destructor (declared e... (by Chervil)
by Johnn
Not too sure how to move on from here. Using linked list to search?
 
Question: Create a Linked list of nodes. Each node should have student names,age,course num,grades a...
[1 reply] : #include <iostream> #include <string> // <cstring> // using namespace... (by JLBorges)
by BJ19
I need help starting my C++ HW assignment.
 
How would I start this program off? Step 1) Declare 2 global constants: NUM_ MONKEYS = ...
[8 replies] Last: @BJ19 For #5 Create a function, like void Least(string monkeys , int ... (by whitenite1)
buggy highest element program - help needed
 
It's intentionally buggy in the book. I need to fix it. But there's also another problem for me. ...
[1 reply] : Okay, never mind about the line number; my own updated code got longer... (by DragonOsman)
Pointers as iterators - Help needed
 
A "Try this" in Chapter 20 has the following specs: Write a function void copy(int* f1, int* e1, in...
[5 replies] Last: Yeah, that seems to have worked. void copy(int *f1, int *e1, int *f2... (by DragonOsman)
Please help about the c ++ pointer
 
How to do the following with c ++. Can you help me. Please 1-Create a linked list and enter the...
[1 reply] : This is not a homework site. We won't do homework for you. Make an att... (by goldenchicken)
PPP2 Chapter 17 Exercise 11 (1,2,3,...,13,14,15,16)
 
I'm making (kind of) another thread for this. Sorry about this. Anyway, the specs for it are as fo...
[319 replies] Last: I'm looking at the pointers in just the move_nodes() function. What ... (by jlb)
by ruki97
Counting words, line and bytes in an input
 
I want to write a C++ program where the input counts the lines, words, and bytes without argument. A...
[no replies]
Need Help assignment :( c++ code
 
Binary Search Tree Create a program that accepts string as an input. The program will determine how...
[1 reply] : I don't know what is more intriguing, the fact that you believe that p... (by Golden Lizard)
MyString Class Segmentation Fault
 
I am doing a program for creating a simple string class using c-strings and dynamically allocated me...
[1 reply] : Well, one mistake seems to be in the copy constructor. Instead of st... (by Peter87)
Linked Lists
 
Question regarding linked lists vs vectors w/ regards to efficiency. I understand linked lists in...
[3 replies] Last: To insert into a vector, you then need to copy everything following th... (by Repeater)
Undefined behaviour with char arrays
 
I compiled a simple c++ program involving char arrays, i am getting serious undefined behaviour,...
[11 replies] Last: Thankyou, this solved my problem (by VeTech16)
by MegaX
Name and ID not showing up in Inheritance Assignment
 
So i have an assignment to make an Employee program with Inheritance but the name and the ID isn't s...
[2 replies] Last: Thank you its working now (by MegaX)
Moving an Enemy object in SDL
 
Hello everyone! I'm attempting to move an enemy object towards a target (player). I'm using Vectors...
[3 replies] Last: Move the function definitions to a source file, or declare them as inl... (by Peter87)
Having trouble with functions
 
I understand that to be able to invoke (is it said that way?) a function you have to have declared i...
[5 replies] Last: Oh right I got it, IT WORKS! Thank you! (by Demrottens)
Pages: 1... 56789... 29
  Archived months: [sep2017]

Cannot post in this page. To post a new message, go to the first page.