Beginners (Page 58)

Valgrind is complaing about freed memory
hello, I got a clean bill of health from valgrind before I added the check function. Now valgrind is...
[no replies]
Dynamic 2D Array
Hello, I have a dynamic 2D array that I'm decreasing size by one by a function. It may not always b...
[2 replies] Last: And for the rows I could just switch around the variable in the array,... (by danghotties)
Pass the calculator!
I have to do a game using a calculator and the first step is to choose who starts, the player or the...
[1 reply] : Before worrying about what to do at line 35, you need to get rid of yo... (by AbstractionAnon)
Finding the lead horse.
When I the code comes up to decide if the current horse is in the lead, it will choose that horse re...
[1 reply] : Line 203: You've determined the winner and turned the racing flag off... (by AbstractionAnon)
to lower case
Having trouble with this dictionary spellchecker. I am able to hash the dictionary, and search th...
[16 replies] Last: The thing is, you output everything before line 236. Try outputting ag... (by giblit)
Time complexity (O notation)
If I have 3 parts of the code each part takes 1) O(n) 2) O(m) 3) O(k) n, m, k can be the sam...
[2 replies] Last: It depends on how those 3 parts relate to each other. If they execute ... (by Smac89)
by Scizor
Binary Search for Char Array?
Hello, I definitely know how to implement binary search when it comes to integers but I need to do i...
[3 replies] Last: Don't know what you had, so can't tell you why you got an error. Th... (by AbstractionAnon)
struct pointers to functions
I'm currently stuck on a homework problem. The question asks "Create your own Date struct that conta...
[5 replies] Last: Lines 40-42: you're outputting a number. Not the most user friendly, ... (by AbstractionAnon)
Appending objects
I have a class which consist of an vector.. I want to create a merge function which appends a obj...
[7 replies] Last: Good to know. (by shadowCODE)
by markat
Stuck on creating a separate function for bubble sort
Hello, I've been charged with the following task: •Write a program that: •1) Creates an array c...
[5 replies] Last: Oh you're right, that was careless reading on my part. I'll change the... (by markat)
Help with simple (I think) function
Hey, I'm trying to write a function that will return the value before x in a linear equation, note: ...
[4 replies] Last: I actually get 0 warnings :) But I am saying you should have had mo... (by TheIdeasMan)
How to get the index number of an element into an array?
I tried to use find() function but it returns the element not the position. int ar ={1,2,3,4,3...
[2 replies] Last: Yes. find returns an iterator to that position. To get the index,... (by shadowCODE)
by Scizor
Binary Search Issues
Hello! So below, I have a piece of code that is part of a hangman game. What I am doing is asking fo...
[no replies]
Dividing into rooms
I trying to write some code which able to detect rooms in a map. The map is represented in an matrix...
[no replies]
True Object Oriented Programming
Hello all, I've been learning c++ and have gotten fairly comfortable with many of the concepts, to t...
[11 replies] Last: everyone has his own learning strategy. you read 130 pages in two days... (by anup30)
by KMagic
Convert char to int
I have googled this basic problem and find this solotion fastest: char a = '4'; int ia = a...
[4 replies] Last: Got it. Thank you very much. (by KMagic)
help me with classes pls
Can someone send me a tutorial where I can learn about classes, objects and constructors? The prof...
[2 replies] Last: Made a thread about the concepts the other day. http://www.cplusplus.c... (by d1ff1cul1010)
Double Factorial without recursion, just a while loop
I've got a very specific homework problem I am working on. I am supposed to find the semi or double ...
[1 reply] : I'd try something like this. Note: It still breaks on the odd numbers... (by killingthemonkey)
by Pet124
Saving and Writing to a txt file
I'm trying to create an inventory program that you can save the data and open it again. But every ti...
[3 replies] Last: follow the link I've given. and use fstream object to read and write s... (by anup30)
Is this a decent example of using virtual functions?
(Sorry if this is considered a duplicate) I am trying to understand "polymorphing" and so far, th...
[4 replies] Last: Thank you so much! i finally understand polymorphing! (by SomeAmazingGuy)
Pages: 1... 5657585960... 108
  Archived months: [oct2014]

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