Beginners - April 2013 (Page 63)

Classes Query
 
Hi, Just got to a bit that isn't explained in the tutorials and I was wondering if you wouldn't mind filling me in on why it is done this way. Currently...
[8 replies] Last: So much for, "Programmer knows best" hehehe. Thank you both. (by closed account 3CXz8vqX)
Struct/Classes/Type syntax colour
 
I keep declaring classes, such as Rectangle and stuff, this in effect gives me a new type to play with, not exactly but the principle is the same. Unfortuna...
[no replies]
by elmurp
Problem with pointers
 
I am encountering a problem with the pointers in my program. I think I might have declared or implemented them wrong, as we just learned about them in class. ...
[2 replies] Last: When I change the 2nd argument to birdlist, the array of structs i am ... (by elmurp)
by Sobe
Quick question about vectors
 
Hey guys! I'm new to the forums and I have a question. I'm trying to create a program that loads users information via text file and outputs them on the screen....
[2 replies] Last: Oh, thanks for the help! (by Sobe)
Need help Building and running this
 
Hi! The first time I'm using a non standard/non me created library so I'm having trouble building it. I'm using the boost library. I've created a proje...
[8 replies] Last: ok... by recreating the project AND the file the problem is now solved... (by Jonas Wingren)
while arrays problem
 
so i want a program that reads from a file with the format: name, gender. but the name can either be 1,2 or 3 words. so i was thinking to calculate the number ...
[5 replies] Last: Well, you can check how many words there are and you know that the las... (by LB)
Multiple words from file into one string - structures
 
So i have a file that reads: Name, Mobile number, Gender, age e.g. Sarah Megan 12345678 F 19 John F Dan 12345678 M 23 Paul 12345678 M 34 by usin...
[1 reply] : You would have to find a different way to tell apart different informa... (by LB)
by M159LE
.dat file!
 
Hi! I know I had this question before but somehow my program doesn't work! I have this .dat file called VotersRoll.dat with the following data: 19810102009 1 ...
[6 replies] Last: Are you ever going to do math on the voter's ID? Probably not. Use a s... (by booradley60)
from while loop to for loop -strings
 
Hey there, i want to count the number of words on each line from an inputted file. from an input the program will look like : cout << endl << "Ente...
[7 replies] Last: Thank you :) (by xcindiix)
Help sorting array of objects
 
I have been trying to figure out what is wrong with the code below. I have taken concepts from a bubble sort tutorial on youtube. My code appears to be the same...
[2 replies] Last: I have modded the code above to use this bubble sort code. It makes it... (by IdivideBy0)
Pancake Exercise Tip
 
Hi, please can you help me on this code? How can i output in decrescent or crescent order? WARNING! PLEASE DON'T DO THE EXERCISE JUST GIVE ME TIPS. Thanks, Sky ...
[no replies]
Searching for string in structure array
 
Hi I can't get the search function in my code to work. When I type of string to search, it just does nothing at all. Any help to why it does nothing? #...
[1 reply] : for (i = 0; i < NUM_PLAYER; i++) { int getNames = player .lname.fin... (by HoneyBoy)
C-Type String Losing Data
 
Hey. I have this program that reads an input file. First it reads the answer key, and it should stay constant afterwards, but I lose data somehow. I can't figur...
[2 replies] Last: I must have checked for that a thousand times...no sleep makes me fail... (by caveman127)
Arrays in fuction not calculating division
 
So I have this code to calculate and display shareholders and their shares. It compiles fine and it all works except for the percentage of total shares functio...
[2 replies] Last: Thanks! (by joesphroth)
having trouble with functions
 
Hello I'm trying to teach my self c++ and I have run into a problem i have two functions the main program in main and another function called option that reads...
[11 replies] Last: thanks for your help i got with a friend and this is what we came up w... (by glrader)
getline loop
 
I am having a problem with reading more then the first line in this loop. The function has a loop that should read each line in a csv file and output the inform...
[2 replies] Last: What does the input data file look like please. Sample data would be u... (by Chervil)
How can I reposition the pointer of a file to a new line?
 
Hello! I have a file with the following content: ASDASDIOIOIOIOIPPOPO 1 13 4 3 2 4 3 5 2 1 More exactely: on the first line I have a string and on the...
[1 reply] : for(int i=1; i<=10; i++) Array indexing starts from 0. (by fg109)
Reading Input from Text File into Ctype String containing Whitespace
 
Hey. I am fairly new to C++ and can't figure out how to read set value of characters from a input file into a c-type string. I need to be able to read one strin...
[2 replies] Last: Thank you so much! :) (by caveman127)
Nested Loop
 
I need help creating a nested loop (it can be a while loop or a for loop) that results in this paturn: □□□□□* □□□□** □□□*** □□...
[9 replies] Last: writeonsharma's solution is about the best you're going to get. We're ... (by closed account 3CXz8vqX)
Simple Game Programming
 
what should I use to make a simple tic tac toe game which game engine can I use in c++ .
[1 reply] : Try running this tutorial http://www.cprogramming.com/tutorial/game_pr... (by Stewbond)
April 2013 Pages: 1... 6162636465... 83
  Archived months: [mar2013] [may2013]

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