Beginners - May 2014 (Page 49)

by mfa323
Help creating Address Book Using class and struct
 
Hey everyone. I am currently having trouble figuring out what is wrong with my code when attempting to alphabetize my contact list in my address book. Any help ...
[5 replies] Last: The below is your sort function; not being a part of your createBook c... (by closed account j3Rz8vqX)
Best files operation library
 
What's the best files operation library, because the one I'm currently working with, the standard built in one, stdio, is a real pain in the butt.
[1 reply] : Check out boost.filesystem http://www.boost.org/doc/libs/1_55_0/libs/... (by nvrmnd)
Planning a program
 
I am attempting to plan a text-adventure RPG, and have tried a couple of times to jump right into the coding and kind of get lost on what to do next, so I need ...
[5 replies] Last: I'm in the middle of writing my own RPG game myself. So far I have ov... (by prestokeys)
pointers help
 
Hello This is a very simple question but i did not figured it out yet I was asked to do a small program with pointers and during the work i faced with some...
[3 replies] Last: FirstVar is the address of the first int in myArray. (by Duthomhas)
by allekj
How to make an error statement
 
I wrote the code to ask the user to input 5 numbers. They are then passed to a new function named sum where they are added together and then sent back to the ma...
[1 reply] : When you post please use codetags http://www.cplusplus.com/articles/z1... (by Yanson)
by mrspam
Order number display screen
 
I know how to do It now
[1 reply] : #include <iostream> #include <algorithm> #include <vector> #include <... (by Yanson)
by quayda
IDE/Compiler troubles
 
I'm running DEV C++ 5 and Codeblocks. Both are giving me the same error: undefined reference to `WinMain@16' . I have no earthly idea what that means, or how t...
[3 replies] Last: Make sure you have a main function, and that it is declared as eithe... (by long double main)
For Loops
 
I'm just writing a lottery game so that the computer randomly generates 3 sets of 3 numbers : ex) 123 456 789 My problem is finding to see if the players numb...
[6 replies] Last: Ok. This guy isn't the most professional teacher of C++ but he will t... (by strife)
by Rholar
Inputting numbers from text file into an array
 
So i am writing a program that is supposed to take numbers from a text file and input them into an array. The array then proceeds to get the average and find th...
[6 replies] Last: Thanks for the help. I got the program running nicely now and learned ... (by Rholar)
Intialising Global data-type
 
Why does it give intializing error when i try to write tempe within function but works fine when i try to make tempe global int int tempe ;//does not giv...
[4 replies] Last: Yeah, statics and globals really are, from a data storage POV, exactly... (by Duthomhas)
Question (not sure about title)
 
Hello, I'm working on a generator and I've put the code (see code below) at every item and I come on a final ammount of 18k lines of code. I want to short th...
[17 replies] Last: That might help out a lot, thanks! (by Darryl123)
Design issue - please help
 
I am creating a text adventure. There is a player class, and a map class. I will create many objects of class map, each one contains a 5 by 5 two-dimensional ar...
[2 replies] Last: Yea and the duplicate was resolved lol.. oh well. :) (by Codermik)
Question about C++ Program
 
so .. im doing programming in visual c++ ultimate 2010 .. but i want to ask you something .. sometimes when you download software from internet you must sele...
[5 replies] Last: alright (by SrgjanLDTeam)
Compare structs
 
Hello. How do you compare two structs by 2 arguments. Lets says I have a struct; struct s { char a ; char b ; }; I use qsort and first I comp...
[4 replies] Last: Thank you :) (by theanswer)
Global & Local objects
 
Hi I wanna ask a simple question what is the differences between global and local objects and whats the usage for it Thank you
[1 reply] : Global objects can be used by anyone. Local objects are limited in sc... (by Stewbond)
Can't understand logic of perimeters
 
Hi, I am student currently studying computer games development. I am having trouble coming to terms with what parameters are really used for. A lot of the t...
[4 replies] Last: Autocorrect drives me bonkers -- and I still can't figure out how to t... (by Duthomhas)
int vs *char
 
friends i compiled this code and i dont understand how the output is 42.the condition in if should be an int but we put a string and still we got 42.i expected ...
[5 replies] Last: Ok Thanks for the answer. (by Pter0dactyl)
by chofs
problem computing if statements in 2d array
 
hey guys am having a problem using if statements in my nested loop....am searching for an element(x) in my 2d array if the element is found a coordinate positio...
[1 reply] : The problem is at lines 51-52, you're displaying -1 on the first non-m... (by AbstractionAnon)
Lottery game only using if conditions
 
I need to write a lottery game application that will generate three random numbers each between 0 and 9. The user should guess three numbers and the program sho...
[7 replies] Last: Thanks so much guys! Thanks JLBorges! (by AnEndingAscent)
Problem with If statement
 
I am writing a program in which a single letter in form of char variable is taken from the user, then if the value is "m" then print "You r Male" otherwise "You...
[2 replies] Last: If you're checking to see if the user entered the character M, check f... (by wildblue)
May 2014 Pages: 1... 4748495051... 55
  Archived months: [apr2014] [jun2014]

This is an archived page. To post a new message, go to the current page.