Beginners - March 2013 (Page 45)

help
how to add ceil function to my value added tax need help tnx here is my program. #include<iostream> #include<time.h> #include<cmath> using namespace std; ...
Mar 15, 2013 at 10:11am
[1 reply] : Maybe you can jut use ceil() function from <cmath> ? http://cpluspl... (by MiiNiPaa)
How to get a visual output?
For my A2 computing I'm trying to design a Simon rhythm memory game, and while the basics are fairly straightforward I'm really struggling with some aspects. Wh...
Mar 15, 2013 at 9:56am
[no replies]
if in a while loop
Well just like the title sames I am having problems with a if statement in a while loop. #include <iostream> #include <string> using namespace std; string o...
Mar 15, 2013 at 8:30am
[2 replies] Last: Well you say it like that it really makes me feel silly for missing so... (by Stormhawk)
Pointer assignment Error
Hi, Suppose this code snippet: class myClass { public: std::string* field1; std::string* field2; LONG64* id; std::string* field3;...
Mar 15, 2013 at 7:36am
[14 replies] Last: Hi, The source code is just a snippet for educational purpose only. ... (by fercascue)
triangles & pythagorean
I really need help with my c++ I need to write 4 functions: 1. findRightTriangles 2. area 3. congruent 4. similar I think I might have done the findRig...
Mar 15, 2013 at 5:59am
[3 replies] Last: Hi aquaturtle, I think understand what you want. Below is an example, ... (by osgwsy)
char * _first_switch_bit = (char *)first_switch_bit.c_str()
char * _first_switch_bit = (char *)first_switch_bit.c_str() WHat does tis code do? convert c_str into std::string?
Mar 15, 2013 at 5:52am
[2 replies] Last: @MiiNiPaa Thanks.Okay.Will try to make it a better code.Coz currently... (by jaden5165)
dequeue class implementation
i am trying to make a Deque class....the problem i am facing is that it is not inserting elements in the queue.... here is the code // deque assng2.cpp : D...
Mar 15, 2013 at 5:19am
[4 replies] Last: does this really effect if i change the data type... ? i mean the pr... (by Aqeel Abbas)
Functions & Ulam Sequence
Hello all, I have an assignment to write a program, here are the instructions: **Write a program w/ 2 functions, one to ask the user to enter an integer...
Mar 15, 2013 at 4:15am
[2 replies] Last: Thank you very much!! (by elv5022)
Turn VERTICAL letters HORIZONTAL (for loop problem)
Hi everyone! Well, this is what I have, I wrote the code using arrays to form the over-sized letters, but they display vertically when I want them to display...
Mar 15, 2013 at 3:06am
[4 replies] Last: If you don't want to fiddle with your output console, you could put it... (by booradley60)
by Fran
Jumbling words in a sentence
Hi, I have a program that can jumble one word while keeping the beginning and end characters. How do I do that to an entire sentence an entire sentence. For exa...
Mar 15, 2013 at 2:59am
[2 replies] Last: Very little testing on the following code, so beware, but hopefully it... (by cire)
function that takes coins away from a change amount
I have completed the rest of my code but I cant make a function that allows an input value CHANGE, to be calculated in coins. Example: input 184 cents to make...
Mar 15, 2013 at 2:44am
[3 replies] Last: Sorry, thank you. I've been trying to do this for a while thats why I ... (by sh129951)
question with classes
in this program i have a class set up to gather a craigslist style post from a user and save all the information to different arrays within the class (which is ...
Mar 15, 2013 at 2:42am
[10 replies] Last: I hate examples that use names that don't really feel like they mean a... (by booradley60)
converting project code to MFC
Hey guys, i'm working on a project for school where I have to make a GUI for a text based adventure game that was a previous project. I am trying to create an i...
Mar 15, 2013 at 2:36am
[2 replies] Last: Thank you very much! I don't understand that at all but it works! (by tmorlan)
calendar algrothim
hey, i was suppose that (day)1/(month)1/(year)1 it was satrday,and counter =0; for(int i=1;i<year;i++){ if year is leap conter+=2; else counter++; } counter %=...
Mar 15, 2013 at 2:31am
[4 replies] Last: what greenleaf800073 said, you should post the algorithm (by Arbondawn)
Help with C++ programming?
So i have an assignment of asking the user for five positive integers and then declaring the max, min, geometric mean, and the arithmetic mean of the user's num...
Mar 15, 2013 at 2:14am
[1 reply] : Hi safatchowdhury, it will be good if you put your code in between the... (by osgwsy)
Quick question on arguments
I have a question that asks me why does the order of arguments matter? I have looked and looked but I can't seem to find it. Any help would be great.
Mar 15, 2013 at 2:08am
[6 replies] Last: sure! np. (by Arbondawn)
Right triangle output problems
Hey guys/gals, I could use some help in finishing my code I need to be able to input whatever numbers to get a right triangle and also numbers that will show it...
Mar 15, 2013 at 1:52am
[2 replies] Last: Hi rusty4118, I need to clarify something. The aim of this program is ... (by osgwsy)
Overloading << operator
Having trouble overloading the << operator while working on a project. I made a pretty simple class to test it separately. It links fine however the program kee...
Mar 15, 2013 at 1:40am
[4 replies] Last: @OP It looked to me like you were using the overload on line 22 to cal... (by Thumper)
Pointer Syntax
What is the difference, if any, between int* i=0; and int *i=0; .
Mar 15, 2013 at 1:37am
[8 replies] Last: Eh, well that's the only way I could get myself to understand it 3 yea... (by Thumper)
Two classes, one struct
Hey! I was hoping to get some help with classes and structs. I've already read the forums relating to my problem, and they've helped so far, but now I'm stuck. ...
Mar 15, 2013 at 12:41am
[9 replies] Last: Ok, so after reading around I found that I'm supposed to declare the a... (by Arbondawn)
March 2013 Pages: 1... 4344454647... 87
  Archived months: [feb2013] [apr2013]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.