Beginners - April 2010 (Page 23)

by Leydin
Declaring variables and you..
 
I recently finished the tutorials and am now going through the C++ Primer Plus 3rd edition. The book states that it is standard practice for variables to be dec...
[3 replies] Last: Ok thank you that was helpful and also explains the variance with what... (by Leydin)
by ndic
reading binary file
 
hi all i'm trying to open a file as binary using this command: FILE* testRead = fopen ("test.txt", "rb"); and read a structure from the file: struct msq_t...
[no replies]
find consonants
 
i wrote the following function to find consonants in a series of strings. My program compiles fine but I am not getting the right number of consonants. I used...
[7 replies] Last: figured it out :-)..... i = 0 not i = 1 and >=A && <= Z (by flyraf821)
(New to programming)Homework, can somebody point me in the right direction?
 
I have an assignment due after these holidays. The aim of this assignment is to create a program that allows the user to enter in an Employee number, how many h...
[2 replies] Last: Hey oghmaosiris, thank you so very much. I used the 'TotalPay += Norma... (by SeanyBoii)
How to loop chars (*)
 
Hey guys! I am brand new to c++ programming and found a site on google: http://issc.uj.ac.za/appliedmaths/excpp.html for some beginner c++ exercises, i know ...
[5 replies] Last: ... No I didn't. I got ahead of myself, sorry for the dumb reply! (by closed account jwC5fSEw)
counting digits
 
I need the count_digits function to count the number of digits in a series of strings. The function seems logically sound to me but my program is no compiling....
[3 replies] Last: On line 26 you are passing an int to count digit as the first paramete... (by firedraco)
(newbie) how to make a pinetree using for
 
Pinetree using stars I need to make a program that asks the user the number of lines the pinetree will have then it should make a pinetree using the correspo...
[3 replies] Last: When I created this kind of program,I used 3 loops,1 for horizontal as... (by qtpan)
Animated Character
 
I'm busy atm making a game almost everthing works except I want to put a animated character in it how do I do this? Im using a cpp extension but if someone s...
[4 replies] Last: bump (by Zpie)
Search in C using Files
 
can any one help me in search function it didn't work can anyone help me #include <stdio.h> #include <stdlib.h> struct Student { char id ; cha...
[1 reply] : while( ( c = getchar() ) != EOF ) { i... (by kbw)
Vector pointer of char
 
Im having some trouble with this concept. I need to make a program that keeps on a asking the user for a string. Takes that string and puts it in a vector of ch...
[2 replies] Last: There is the problem to consider - that if more than one pointer poin... (by guestgulkan)
by miles
basic 2 dimensional arrays and function
 
Hi, im new to the forums and am trying to do a project for school. I just cant seem to figure out what im doing wrong and my teacher is never available to talk...
[no replies]
Im having some trouble with a programming assignment
 
Im am working on a program for class and I am a beginner C++ programmer. I am having trouble passing pointers and arrays. I am going to post the assignment and...
[4 replies] Last: Check this out: http://www.cplusplus.com/forum/articles/6046/ (by moorecm)
by omgaga
Array and Matrix
 
Declare a 2-D array that will contain up to 20 rows and 15 columns. The template for this lab that has been posted on ANGEL contains code to prompt the user t...
[1 reply] : Well you are going to have to dynamically allocate the 2d array, you c... (by genuwine21)
Selling seats in a theater program for school.
 
Ok so for school I have to sell tickets for a theater and I will ask the user what seat they want to buy, they will tell me what ROW and what COLUMN they wish t...
[2 replies] Last: I would recommend you have some error checking, in case the user enter... (by genuwine21)
by robe
problem with array using the average function
 
need to use an array to hold the values read from the file. Use average function should average values in an array. Sort the array and print the sorted array ...
[1 reply] : In response to your first error, you have a prototype to the find_aver... (by genuwine21)
Madlib with multiple .cpp's and .h's
 
Rewrite the assignment 6 submission, the Mad Lib Game, so that there is a new object, a storyWordManager object, instantiated from a StoryWordManager class. A...
[1 reply] : You have two classes, you can put their prototypes in the .h's, Madlib... (by genuwine21)
by b33p
C++ beginner birth rate program
 
Hey guys, I am very new to c++ and I need to write a program that asks the user "How many sheeps do you have?" and "How many generations do you want to wait?". ...
[5 replies] Last: First, here it is in [cod e] tags: #include <iostream> using name... (by moorecm)
how to use isdigit(ch)
 
I need to count the number of digits in a series of strings. I have found the isdigit(ch) function in the cctype header but I am not sure of how to use it. I ...
[1 reply] : word accesses the ith character of the string. isdigit( ch ) returns... (by jsmith)
School Project Problem - Non-static member functions
 
Hello folks, I'm new here, and just beginning my programming knowledge. I'm working on this program for school and I'm getting an error about accessing non-s...
[1 reply] : Your pilot class does not have any Ultralight members, so you can't ca... (by firedraco)
Trouble with formatting
 
I can't seem to figure out what I am doing wrong here. I am supposed to format a format text so that fist letter is capitalized and all other are lower case. ...
[2 replies] Last: thank you, I thought the logic was right just a silly mistake like alw... (by flyraf821)
April 2010 Pages: 1... 2122232425... 35
  Archived months: [mar2010] [may2010]

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