Beginners - March 2014 (Page 15)

Currency calculator
 
Hello, So i am making calculator from euros to all kinds of currencies. But first i would like you if this is the right way or should i fix something? #incl...
[no replies]
open dat file and print on screen
 
Can some one help me that plzzzzzzz!!!!!! Why I cant open the .dat file and print on screen with this code? Thank you varrrry much #include <stdio.h> #includ...
[13 replies] Last: Well your datafile isn't ASCII but its binary and explains why my exa... (by Codermik)
use of struct
 
why cant i use the function deletecontactname and deletecontactroll? actually i want to put any deleted or garbaged contact bottom most ... please help... also...
[no replies]
by cnsk90
TERMINATING THE SWITCH FUNCTION!!HELP!!
 
I DID MOST OF THE CODING I JUST COULDNT FIGURE OUT HOW TO LAST SECTION (NUMBER 3) THANK YOU GUYS!!! Design a program in C using the SWITCH statement which...
[4 replies] Last: thank you !!! (by cnsk90)
Error handling problem
 
Hi! I'm trying to make some error messages in my program in case a user tries to input a string or character in an int. Only problem now is if the user in...
[3 replies] Last: http://www.cplusplus.com/reference/cctype/isdigit/ http://en.cpprefere... (by LB)
by rm5393
Help with Posting Winner
 
Having problems with posting which contestant is the winner for my assignment, how do I connect my void findwinner function to my main function? Thanks in advan...
[4 replies] Last: I was able to get it looking at another example, thanks anyway. (by rm5393)
Comparing 2 elements in array's and counting how many of them are the same.
 
Just as the title states. I have the code of how to compare each array; however I'm not sure how to implement a code such that it would count the number of elem...
[3 replies] Last: Ah, what's happening is that the compiler sees that the loops do nothi... (by LB)
Money Program
 
Why is "operator" used in this program or better yet what is its purpose? #include<iostream> using namespace std; class Money { private: ...
[1 reply] : Please use code tags: http://www.cplusplus.com/articles/jEywvCM9/ The... (by LB)
by rshoe
Working with arrays
 
I was wondering if anyone can help me with finding information on arrays? I am trying to find out the following: 1. Using the array name, ARRAY, calcu...
[3 replies] Last: Of course, glad I could help. (by MagicalForestElf)
How to read text file (1,2)
 
I am having trouble understand how to read a file and then print it out. Below the code is suppose to write name and grade to a text file and then read the text...
[20 replies] Last: Show your whole program as it is now. (by LB)
Count occurrences of every character in a string
 
(Count occurrence of each letter in a string) Write a function that counts the occurrence of each letter in the string using the following header: void count(c...
[9 replies] Last: if(counts >0) { cout << static_cast<char>(i + 'a') << ": " << count... (by slothybear)
How to use arrays from user input in seperate functions
 
This is really hard to describe but for computer science we have to create an array that asks for ten numbers, which I got working great, then it has to print ...
[3 replies] Last: Thank you so much! Helped a lot! (by liquifiednate)
c++ pointer in void function
 
I am writing a program that takes in the amount of test scores the user chooses to enter and calculates the average and the amount of passing grades. I need to...
[6 replies] Last: Now I get it, thank you very much (by Salright)
Merge Sort (Template)
 
When I try to run this program, I get this error: " 'void KW::merge(RI, RI, RI, RI, RI, RI)' : template parameter 'RI' is ambiguous". I'm not sure if there is a...
[1 reply] : Ok, so I figured out that it works when I use the correct parameters f... (by verdude)
Passing Array to Function
 
Hello all, I'm assigned a project for school (due in 2 weeks) and I need to pass multiple array to a function. I've done it before, but Xcode is giving me the...
[2 replies] Last: I inspected my code and I declared 'vol' as a double but tried to pass... (by Jayhawk)
How do you get doubles to round to the nearest tenth or hundreth?
 
Hello all, I'm doing a program that calculates money based on user inputs. I know I was taught how to get a double to round to the nearest second decimal pl...
[1 reply] : Have a look at this: http://www.cplusplus.com/reference/iomanip/setpre... (by booradley60)
Goto
 
Ok so i've been working on this menu program for a while now, using various methods. I decided to give Goto a try even though people recommened not using it. Ho...
[8 replies] Last: It restarts the program from where Menu() was first called No, it doe... (by helios)
by ckratz
Validating a phone number
 
I need some direction on how to validate a phone number that is entered by the user. My instructor says I cannot use brute force (checking each individual char...
[4 replies] Last: Oh, c'mon. With that hint in front of you, can't you translate it into... (by JLBorges)
by ak16
Difference beteween Heap and Freestore?
 
Hi friends, Most of the time i came across this "free store" in C++ instead of Heap. Is there any difference between this two? Thank you for reply in advance....
[1 reply] : https://stackoverflow.com/questions/1350819/c-free-store-vs-heap (by Smac89)
by Emilov
Bubble sort exercise problem
 
Hello :) Can somebody help me in writing a code, which arranges the letters in a word (for example "Hello"), if the letters are being typed in wrong order ("...
[7 replies] Last: Then why didn't you start your topic by stating exactly this? Instead ... (by Smac89)
March 2014 Pages: 1... 1314151617... 79
  Archived months: [feb2014] [apr2014]

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