General C++ Programming (Page 8)

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)
by Quark
writing BINARY data to WIDE char streams
 
Hi there, I have noticed that writing BINARY to WIDE character streams does not work as I expected....
[2 replies] Last: you should not write a binary file using wide chars, just write it as ... (by jonnin)
Please help me solve this infinite loop
 
Please help me solve this infinite loop: There this problem does not solve. There is an infinite ...
[2 replies] Last: for (int m = 1; 1 <= 40; m++) { This line will cause your code to loo... (by PolarJ)
Reflective programming
 
In preperation for c++17 structured bindnings, been playing around with some reflection stuff (so st...
[3 replies] Last: > Compiled on MSVC, GCC does not like the CanCout for some reason. C... (by JLBorges)
CSC matrix algorithm for find the index of real matrix
 
Hi everybody, I've created a CSC (compressed storage columns) Matrix , for store sparse matrix! in ...
[1 reply] : typical sparse matrix storage consists of a list of row,column, value.... (by jonnin)
How to write huffman tree into file
 
hey guys, I am trying to write huffman tree into file but, I do not know the best way of doing it.C...
[1 reply] : the character is redundant. so for example if you just had vector<int... (by jonnin)
Pages: 1... 678910... 29
  Archived months: [sep2017]

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