Beginners - April 2012 (Page 35)

Array Trouble
 
EDIT: How about this...... if I have an array that has a garbage value on the odd increments, and I want to get rid of all the odds and have the even values one...
[8 replies] Last: If you use pseudocode, make it clear. You WILL get people frustrated t... (by hanst99)
Array of Chars vs. C-string
 
Am I allowed to use an array of characters the same way I would use an array of integers? ie. Do I have to use it like a C-string (with a null terminator)? I...
[1 reply] : Yes that is perfectly fine. (by Peter87)
hey guys im new to programming c++ some helperz please?
 
so see i am at lost with apis and programming. what is an "api" exactly? from what i gather its a set of code in files that operates a graphical or some kind...
[3 replies] Last: 1) You don't have to call them entities. Call them objects, instances ... (by MrHutch)
Display 3 array values per line
 
I want to display 3 array values per line but sadly what I'm trying won't work for (count3 = ray ; count3 >= ray ; count3 ) { cout << count3 <...
[3 replies] Last: You are incrementing your loop variable twice and resetting the index ... (by andywestken)
Question about constructors
 
I'm learning C++ and I don't really get the point of a constructor. I get the point of a destructor I guess, you can use those to handle memory. http://www.l...
[9 replies] Last: Just wanted to thank you all for the replies. I've learned lots and I ... (by Hungry Man)
by arooj
Zip Code and City program that writes to text file
 
I am confused on how to have a user enter a zip code, and then have to proper city to display, based on records previously added by the user. //zipcity...
[5 replies] Last: bool values are good to check if something occurs or exists. (by ui uiho)
Problems With Void Functions
 
I'm having an issue with my latest homework problem. Here's the problem as described in the book: "Write the C++ code for a void function that receives four ...
[1 reply] : Modify list of parameters to void calcSumAndDiff(int n1, int n2, int&... (by tfityo)
Question about if-else
 
Hi everyone , I wanted to write a program that calcule the surface area of cube,Rectangular Prism,Cylinder and sphere.I have coded and there is no structure ...
[4 replies] Last: system ("pause"); replace that with std::cin.ignore(); (by ui uiho)
by yo1408
Pyramid
 
Please help me find a solution for this question below. Write a C++ function display prototyped by int display(char ch, int n); that displays the chara...
[2 replies] Last: // // main.cpp // PROJECTTRIANGLES // // Created by Aaron on 2/29/... (by ui uiho)
Loop issue (1,2)
 
Having trouble getting these menu options to loop properly. #include <iostream> using namespace std; const int SENTINEL = -999; int main() //set v...
[22 replies] Last: put your main function(where execution of the program starts) before t... (by ui uiho)
Reading and writing files program
 
Write a program system that reads several lines of information from a data file and prints each word of the file on a separate line of an output file followed ...
[4 replies] Last: In fact, I suspect you're not supposed to do it this way because the i... (by cire)
General array and function question
 
There's this example in my book that has two things that I don't understand about it. #include <iostream> using namespace std; void showvalues(int , int); i...
[5 replies] Last: The default method of passing arguments is by value. In order to pass... (by cire)
by ralph5
Cellphone
 
Write a C++ program using class for the following: A cellphone is a device that can be used to make or receive calls, or send or receive text messages. A cellp...
[4 replies] Last: Ahaha. Yes I forgot to enter a return type for a couple methods. So s... (by IceThatJaw)
Declaring Values in Multidimensional Array
 
I have an array with a very large size (let's say 50x50 for the sake of argument). I need to input all of the values manually into this array but I can't fig...
[12 replies] Last: Thanks so much LB/Stew...Huge help! (by invictator)
Days of the week array?
 
Declare an array of floating point elements called week that can be referenced by using any day of the week as a subscript assume sunday is the first. I tried ...
[4 replies] Last: Array indices are strictly unsigned integers. Thus, they cannot "be re... (by LB)
by veie
Undefined References
 
I am just starting to use SFML to develop a simple game. The first part of it involves a little bit of initialization and then it starts to display credits. Whe...
[8 replies] Last: I have found a solution to the issue, when I go to my project properti... (by veie)
User Defined Function - unresolved external
 
Why does this program not get built? I'm just learning how to do user defined functions, and menu() on it's own works, but I need to get the greatest() to work ...
[3 replies] Last: thank you both very much, the information allowed me to conquer a lot ... (by marcsix)
How to make an alarm clock!?
 
Okay so I figured out how to get time in c++ but after that I dont know how to countdown to the desired time that the user set and maybe say "the alarm has gone...
[4 replies] Last: There are sleep functions available everywhere. Find one, and make you... (by TheDestroyer)
why i cant debug my coding???any problems???
 
#include <iostream> using namespace std; int binarySearch(const int , int , int ); const int size = 2; struct Staff { char name ; int ID; ch...
[2 replies] Last: so how to solve this problem. Got another way of writing this coding? (by B031110034)
G++ Compiler Error: undefined reference to (a function)
 
Hey all, I've searched the archives, the web, and other Linux/Programming websites' forums and I haven't been able to find my answer. I am writing a program...
[2 replies] Last: Wow, well I feel like a moron. I guess I didn't understand that it wo... (by jazztrmpter)
April 2012 Pages: 1... 3334353637... 66
  Archived months: [mar2012] [may2012]

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