Beginners - October 2013 (Page 28)

advance problem 02
 
In this expamle everything seems to be fine # include <iostream> # include <map> using namespace std; class c_map { map<int,int> classMap; public: ...
[5 replies] Last: PM me links to the threads and I'll check them out. (by Disch)
by Vigii
Printing same results for all iterations in a loop
 
Hi, Here is my part of my code with issues. I'm trying to carry forward the results of the previous iteration value to the current iteration. But I cant u...
[3 replies] Last: #include <iostream> You don't seem to use `direct.h' (I don't have i... (by ne555)
by sea711
cannot convert double
 
Beginner here, how do i get this double to work? error:cpp:12: error: cannot convert ‘double’ to ‘double*’ for argument ‘1’ to ‘void thai(doubl...
[1 reply] : 'input' is a double thai takes a double* as a parameter. Note th... (by Disch)
problem with return
 
hi, i need your help .... I want to coding find function in my class, that search in array of item and return 1 if it is found the item and return 0 if it is n...
[17 replies] Last: mmmm Thanks giblit my code is now working in a goodway (by mohammed1112)
INFINITE LOOP PROBLEM
 
Im making a casino program for a project. Im making the craps game and right now Im just getting the basics out the way like the menu and the betting down. So e...
[5 replies] Last: ok to fix this basically only option is instead of using int for the b... (by ericjets)
Why cant this work
 
/// Why cant this work Edit Sorry I forget to tag code # include <iostream> # include <iomanip> using namespace std; ostream &manip(ostream &stream) { ...
[5 replies] Last: @Duoas, always honnored to read your posts,thanks hope you read my nex... (by closed account 28poGNh0)
by man24
Somebody can help me!
 
What wrong with this coding, try to compile and get result like this: "g++.exe -x c++ -c M:\MAN@PO~1\SEM3~1\DATAST~1\test -o M:\MAN@PO~1\SEM3~1\DATAST~1\tes...
[5 replies] Last: lines 23 and 24. (by Manga)
Using a pointer in functions
 
Hi, I'm working on an assignment that wants me to calculate Personal Income Tax. I'm being limited to using pointers instead of passing by reference. I know tha...
[2 replies] Last: Thanks I'll be sure to do that before I turn this in. :) By the way, ... (by ZedjayCoder)
pointes problem
 
/// I knew that it is a bad thing to declare a pointer that points to nowhere so Is this fine ? char *str = ""; //is this correcte thanks
[7 replies] Last: Thanks alot @a k n , @BHXSpecter,@NwN, @Catfish4 and @Techno01 ,oh I... (by closed account 28poGNh0)
Two problems
 
First : What is an unary operator,and a binary operator ,can you site them all to me Second : What is the difference between unary minus and minus coz in th...
[5 replies] Last: Thanks @NwN again and again and speeking of trolling! I still got more... (by closed account 28poGNh0)
Please help me with simple program
 
any one will ocde this program for your practise or help. Create a class CEmployee. The class contains the attributes of type int, character and character ar...
[1 reply] : Hi there, This seems very much like a homework assignment. Per the fo... (by closed account o3hC5Di1)
putting array of class in self-created function
 
How do i write down array of class inside another function class xc { private: const char *username; public: void setusername(const char *in) { ...
[4 replies] Last: the code is works thank you (by ryukils)
need some info about new/delete
 
Hiii everyone /// Is this fragment of code fine int main() { char *ptr; ptr = new char ; ptr = new char ; delete ptr; ...
[2 replies] Last: Thanks @coder777 (by closed account 28poGNh0)
by kay19
Calculating Sum
 
Well I can get the sum every time the user inputs an integer until they either input a negative number, or put a non-integer character. Problem: My sum calcula...
[5 replies] Last: No problem. noob myself;) (by Icedoe)
C++ help
 
write a set of functions that will be used by an interactive menu-driven program that will perform various calculations and operations. A menu of calculati...
[2 replies] Last: Why not simplify the user choice part and get rid of that error? wh... (by Mats)
Some mistake in my code ?
 
Question 1 (15 marks) Build a “Point of Sales” C program for BIGSALES mall that fulfil the below requirements: 1. Print a unique greeting message and...
[1 reply] : Please use code tags in future! And be more specific about what erro... (by Mats)
Farey/Stern-Brocot approximation to a real number
 
I have to create a program that approximates a real number using two endpoints (-0,1) and (1,0). I have to compute the mediant and decide whether x is smaller ...
[7 replies] Last: Well, a variable declared inside braces { ) cannot be accessed from... (by Chervil)
by Rbroke
Adding side length to task for square
 
I am suppose to: Create an instance of Square, called s1,with a side length of 5. Print the side length of s1. Print the area of s1. Print the perimeter of ...
[1 reply] : # include <iostream> using namespace std; # define pi 3.14 class squ... (by closed account 28poGNh0)
Move zeros to the end of the array
 
This problem must move all the zeros found in an array to the end of it. for ex : array a={12,0,0,-3,-8,0} after the program executed it needs to output a={1...
[2 replies] Last: Thank you so much! (by antirsi96)
Assertion failure, string subscript out of range.
 
This is my first post, so sorry for any issues. This a basic program for my class that is to compute a palindrome by getline-ing a string, reversing it, and ...
[4 replies] Last: Thank you, that worked and it runs, but now I'm having trouble with wh... (by OptimusBerger)
October 2013 Pages: 1... 2627282930... 86
  Archived months: [sep2013] [nov2013]

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