General C++ Programming (Page 32)

by coder1
Competitive Programming
 
Hello, what are the fields of work in computer science that are most related to competitive programm...
[2 replies] Last: I mean something like ACM-ICPC and IOI (by coder1)
Confusing error in pointer program
 
Hello, everyone! I'm new here and I'm hoping for some help. I'm in a C++ programming class and my pr...
[7 replies] Last: I'm not sure how exactly to update the size at the end of the functio... (by dhayden)
I need help with my project
 
(Author: Ramin Melikov) I wrote the class file, the definitions file, and the main program file, ...
[1 reply] : Here is the project requirement: Design and create a class called Com... (by cageybee)
Delete Node Error
 
Hi there.. I'm having much trouble in my following program Delete function is not working properly ...
[1 reply] : Your Search() function is wrong too. You're setting flag=false if ... (by dhayden)
by dkaip
operator += problem...
 
Why gives me 4 and not 10? Any idea why is that? struct a { int i; a() {}; a(int ii) ...
[8 replies] Last: Thank you very mutch. Worka fine ... (by dkaip)
how do I print a vector in increments of 7?
 
I am trying to print out a vector in increments of 7 following a string pattern match. I am able to...
[no replies]
extern and global classes?
 
I'm not sure where I'm going wrong here. If I have created a class (Class A) which I have declared ...
[3 replies] Last: but one of my class pointers I had not allocated space for in memory ... (by MiiNiPaa)
Question about Boost.Asio
 
As I was reading the documentation and I noticed that you can only send data that is continuously al...
[3 replies] Last: @MiiNiPaa @JLBorges Thank you so much! (by benbalach)
ask for advices on proper containers to handle my work
 
I want to maintain a plenty of elements in a container and maintain another table record the relatio...
[no replies]
Sorting Nodes in a Linked List
 
as the title says, I need to sort the Linked list from highest to lowest or in this case. The highes...
[6 replies] Last: Not sure if I have the Parameters correctly, and I haven't used PrevPt... (by Shuruki)
Reading from a .txt, replacing word, then overwritng .txt
 
My goal is to open a .txt file and replace words in it then overwrite it. My goal is half way done. ...
[3 replies] Last: Thank you both they worked great and I have used both of your suggesti... (by bertbear)
Help with C++ Game?
 
Hey, I'm making a somewhat RPG game for fun, I'm in a 10th grade CS class so don't make fun of it's ...
[14 replies] Last: Can anyone help? (by JoshuaCrotts)
Nested Loops
 
Hi I'm having a little trouble with my assignment thats due tonight was hoping someone could help me...
[no replies]
Quicksort Explanation
 
void quickSort(int arr , int left, int right) { int i = left, j = right; int tmp; ...
[2 replies] Last: http://www.cplusplus.com/faq/sequences/sequencing/sort-algorithms/quic... (by Duoas)
Pointer Question
 
So say your constructing an array of list of structs from a text file. Each struct has a pointer to ...
[2 replies] Last: Prefer to use nullptr instead of NULL . (by LB)
Bug with replacing elements in 2D Vector
 
Hi! I have a 2D Vector defined as vector void initGridFromInput(vector <vector <int> > & sud...
[2 replies] Last: line is a char . The '7' is a character that looks like, well, s... (by keskiverto)
switch statement
 
Hi i'm more confused by how the teacher worded this assignment than the fundamentals of C++ but mayb...
[1 reply] : I think the new switch statement goes between cin >> grade; and swi... (by dhayden)
heapify algorithm using array indexes
 
I need to heapify an array and I'm using an example from my book which shows the heapify process fro...
[no replies]
Mean and Variance
 
I have to write a program in which it is to compute the mean and standard deviation from a set of 1...
[2 replies] Last: Start by blocking out what you need to do: generate a set of 10 rand... (by PCrumley48)
by Maco10
error: passing ‘const …'’ as ‘this’ argument of ‘…’ discards qualifiers
 
Hello, I am making a C++ program. I have finished. but the compiler returns me this error: decharge....
[2 replies] Last: I can fix it! Your assistance was very useful. I am going to follow yo... (by Maco10)
Pages: 1... 3031323334... 55
  Archived months: [oct2014]

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