Beginners - April 2012 (Page 38)

have a problem with array and string output
 
Hello, I have to write a program that takes in a string and outputs the ICAO words. We are using array, and index the array by positioning of the letter. I wrot...
[1 reply] : Figured it out myself. Thank you (by ettedo2000)
I can't create this program..HELP I'M DESPERATE!!
 
I want to create a program that allows the user to enter how many times to run a certain function.. For example: cout<<"Please enter how many times to run...
[2 replies] Last: Thank you so much whitenite1 !! That was so so simple !! I guess when ... (by unixbased)
How do you write the prototype for an overloaded function ?
 
Happy Friday everyone... I have an error message that reads "overloaded function not found".. in my class definition file. How do I write this correctly? I th...
[no replies]
by skarla
c++
 
i have learn all by heart all the episodes from this:http://pliroforikiatschool.blogspot.com/2011/10/c-video-tutorials.html so how i should continue??
[no replies]
by robbyk
Working with enum
 
How do I write a program to test input validation. The program asks the user for the month (by name), and validating that the number of hours entered for the mo...
[1 reply] : That's not what enums are for. What you're looking for is a map. With ... (by Athar)
by sky91
pointer_operator new
 
Hi, this is my coding. #include <iostream> using namespace std; int main() { int x, *p, *q; p = new int ; q = p; *p = 4; for (int j=0; j<10; j++) { x = *...
[6 replies] Last: So, how to modify the coding if i wan to output as 4 4 5 7 10 14 19 25... (by sky91)
by Dmahn
C++ Dice Roll Program
 
Hello; I was wondering if anyone could assist me with this problem. The end result should look like this: Roll Testrun 1 Testrun 2 Tota...
[3 replies] Last: could you give an example of how i could use the arrays to make it so ... (by Dmahn)
Help needed in Snake code
 
I want a little help in Snakes game , I have written its code as shown below but I want to modify this code using Structures , please help me I will be grateful...
[4 replies] Last: I would suggest making a struct/class called "snake" and making head, ... (by Computergeek01)
Complete Noob
 
by now you're probably thinking, " i wonder what this is going to be about, lets read and laugh ". im guessing you will laugh because i know nothing about C++. ...
[7 replies] Last: thanks for the help guys, i'll get crackin (not the cracking your prob... (by cdj2k10)
Problem with Debugging
 
Hey everyone, I recently made a simple program I named the counting program. I have it sitting on my desktop. I made another project file and have been working ...
[no replies]
Proper int-to-float conversion
 
Ok so I have this program that takes a set of times and dates (in the format of yy/mm/dd hh:mm) and creates a 'parking fee'. Only problem is some numbers are of...
[3 replies] Last: You'll have to do that with days as well. I think there's an issue w... (by Gaminic)
by brosh
Creating a Library - Visual Studio 2010
 
Hello, I'm programming C++ in Visual Studio 2010. I would like to create a library so I can just write: #include <functions.h> and not have to re-write all ...
[7 replies] Last: I've tried fallowing what you guys said to do but I don't seem to unde... (by brosh)
char to int
 
I need convert char (dont char ) specifically '1', '2' or '3' to 1, 2 or 3. I make this: char a = '1'; string b; b += a; string c = atoi(b.c_str()); I thi...
[6 replies] Last: It is logic: '0' is 48 :) (by Voroshek)
reverse a string with loops - debugging
 
So this is a function that is getting several errors(which I will list below the function). The point is to take a string and reverse it using loops, and RETURN...
[15 replies] Last: [quote=EyesOfHope]One of the first things I found too. I guess I'm suc... (by LB)
Pointers as Arrays
 
I'm trying to pass a "container" of objects into a method and from what I've been told, doing something like: container works for calling the i'th object in th...
[11 replies] Last: @Gaminic: Please do me a favour and don't interfere when you don't und... (by TheDestroyer)
getline function not working
 
Hi, I have been trying to figure out the mistake for a long time,but I failed to do.Please look at it the ode in the below and let me know where I did the mi...
[5 replies] Last: That is exactly the problem. The user will always press ENTER after e... (by Duthomhas)
Pointers Question
 
When you use a new pointer to create a new array to create a bigger array for more space, whats the best way to code it? And when you delete it, you first ne...
[2 replies] Last: What I'm saying is in my class, I have a data member that is a pointer... (by incremental)
by jmrag
Reading from file
 
Hello i have a file with entries like this: M 5 R 01/01/2010 1800 2107070770 U 01/01/2010 1810 2104570770 I'm really messed up with the function that re...
[3 replies] Last: The Output is this: funct:M strng:5 number:957468086 code:0 funct:R s... (by jmrag)
displays the character ch on the stdout device (screen) consecutively n times
 
Write a C++ function display prototyped by int display(char ch, int n); that displays the character ch on the stdout device (screen) consecutively n times if ...
[no replies]
Terminate start>finish (1,2)
 
Write a C++ program such that its execution will keep asking the user to enter a pair of integers, start and finish, and will terminate when either start>finish...
[20 replies] Last: I compiled the code, and its not what i needed the code that i had mee... (by abdulmatin1)
April 2012 Pages: 1... 3637383940... 66
  Archived months: [mar2012] [may2012]

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