Beginners (Page 61)

Reading Data from a File
 
Hi all! I'm kind of stuck here. I'm creating a program that accepts a name or number as input from t...
[8 replies] Last: Of course you can ignore the operator overloading, but you will have t... (by megatron 0)
2D array with linked lists.
 
I need to create a 2d array with linked lists. I need to use the command line input to do the follow...
[no replies]
Random Number guessing program
 
Can someone check this program for me? It's supposed to create a random number with a max given by ...
[12 replies] Last: Okay, I think I got. Can someone check for me? #include <iostream> #... (by and kand 97)
by Horry
Logical gates calculator
 
Hello guys, This is my first post so sorry if I misspell anything. I need to make a program which ...
[no replies]
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)
Pages: 1... 5960616263... 111
  Archived months: [oct2014]

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