Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
60% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~4K People Reached
Favorite Forums
Favorite Tags
c++ x 60
java x 4
c x 2

31 Posted Topics

Member Avatar for mauro21pl

Hi to all. Could you guys help me with a little program. There is something wrong with tahat and can't find that. That's the code: [code=c] /* An employee is paid at rate of 16.78$ per hour for the first 40 hours worked in a week. Any hours over that …

Member Avatar for gacha23
0
879
Member Avatar for mauro21pl

Hi to all I have a quick question. I am going to fill an array with some inpuit of type char using member function cin.getline. After I fill an array ,I would like to do "for" loop so I need to know what is curently the size of an array. …

Member Avatar for Narue
0
139
Member Avatar for mauro21pl

Hi Could anybody help me to clear that out. Just go step by step and try to explain it to me. I would appreciate it Thanks [attach]7727[/attach] The answer for that one: At the end: c1 -- 40 (hex) and c2 -- DC (hex) [attach]7726[/attach] The answer for that one: …

Member Avatar for WaltP
0
121
Member Avatar for mauro21pl

Hi guys I have a small problem. It could be not enough information to obtain the right answer but I will try. So I have a problem regarding liked lists. It works perfectly fine when is compliled under Windows using Dev-C++ compileer. But when I try to complile under Unix …

Member Avatar for stilllearning
0
86
Member Avatar for mauro21pl

Hi I wrote that peace of code but it is not doing what is suppose to do. It should saved my numbers into linked lists in incresing order. It doesn't. What am I missing. Thanks [CODE]#include<stdio.h> #include<conio.h> struct Node { int number; struct Node *link; }; typedef struct Node* NodePtr; …

Member Avatar for Salem
0
101
Member Avatar for mauro21pl

Hi Does anybody knows what is wrong with taht code? Why it says it is empty link list? It should fill with the numbers I enter. Could anybody help to answer the question? Thanks [CODE]#include<stdio.h> #include<conio.h> struct Node { int number; struct Node *link; }; typedef struct Node* NodePtr; void …

Member Avatar for mauro21pl
0
82
Member Avatar for mauro21pl

Hi to all. I need help. Quick and easy question. Is it possible to randomize and than delate stream of character pairs(one by one) from the input file? How can I do that? The input is a stream of character pairs that represent playing cards. For example: 2C, 3H, JH... …

Member Avatar for WaltP
0
93
Member Avatar for mauro21pl

Hi I just started to learn Java and I woulkd like to make my life a little bit easier. I am looking for a good java compiler, something that works as good as Dev-c++ for c++. The application taht collor specific text of code and do the indentation. Thanks

Member Avatar for jwenting
0
191
Member Avatar for mauro21pl

Hi guys I started to learn java and have a little problem\. When I try to compile my little program it says : assgn2.java:40: variable overnight might not have been initialized System.out.println(overnight); [CODE]How is that? The code: import java.io.*; public class assgn2 { public static void main(String[] args) throws IOException …

Member Avatar for Black Box
0
138
Member Avatar for mauro21pl

Hi Does anybody knows good website with a tutorial for C++. What I really looking for is a tutorial regarding the linked list, stack and queues with a good explanaitions. It would be lovely if anybody knows the site with an practice exercises on them (I mean programs) with an …

Member Avatar for jbennet
0
88
Member Avatar for mauro21pl

Hi I have a piece of code. It's print for me the numbers I enterd but in reverse order that I would like to. How may I change that? thx [CODE] #include<iostream> #include<conio.h> using namespace std; struct Node { int data; Node* link; }; class Q { public: Q(); void …

Member Avatar for Ancient Dragon
0
85
Member Avatar for mauro21pl

Hi I try to fill linked list with names. I have one error could anyone fix it. [CODE] #include<iostream> #include<conio.h> #define MaxSize 30 using namespace std; struct Node { char name[MaxSize]; Node* link; }; class Q { public: void get_input(char array[]); void print_input(); private: Node* head; void display(Node* ); }; …

Member Avatar for mauro21pl
0
99
Member Avatar for mauro21pl

Hi Why is that wrong [CODE=cplusplus] #include<iostream> #include<conio.h> using namespace std; struct Node { char your_name; Node *link; }; typedef Node* NodePtr; class Q { public: Q(); void get_input( ); void display_input( ); private: NodePtr head; }; int main() { Q name; char your_name; cout<<"What is your name: "; name.get_input( …

Member Avatar for Ancient Dragon
0
148
Member Avatar for mauro21pl

HI I am trying to combine(I think that is the word) a node and a class together.Could anybvody try to find the error I have thx [CODE] #include<iostream> #include<conio.h> using namespace std; struct Node { int data; Node* link; }; typedef Node* NodePtr; class Q { public: void insert_data(int data); …

Member Avatar for Hamrick
0
97
Member Avatar for mauro21pl

[CODE] struct NodeType { char name[MaxNameSize]; NodeType* next; // A pointer to the next person in line }; void GetInLine(char new_person[]); int main(void) { char X[MaxNameSize]; Q q1; q1.GetInLine("Joe"); void Q::GetInLine(char new_person[]) // This function causes a person // to get in line in the appropria spot. { NodeType* temp; …

Member Avatar for Ancient Dragon
0
106
Member Avatar for mauro21pl

Hi guys I'm stll playing around with classes. I have some simple class, the program itself works but when I enter the value for your_account as a negative number it doesn't pass the right numbers to the private variables. Why is that? How may I fixed it Thanks [CODE] #include …

Member Avatar for Lerner
0
101
Member Avatar for mauro21pl

Hi I'm playing with a simple class. Looks like everething is fine, my compiler doesn't give me any error but there is no display on the screen. Can anyone tell me what did I miss? thanks [CODE] #include <iostream> #include <conio.h> using namespace std; class BankAccount { public: BankAccount(int dollar,int …

Member Avatar for mauro21pl
0
100
Member Avatar for mauro21pl

Hi I have a small code and a question concern it. What is the value of the first print of ptr2. I have 0. Why? Isn't suppose to be a memory address like for example 0xff10 thanks [CODE=cplusplus] #include<iostream> #include<conio.h> using namespace std; int main() { //a: 0xdf30 //b: 0xef41 …

Member Avatar for Ancient Dragon
0
99
Member Avatar for mauro21pl

Hi Could anybody fill the table for me. thanks Declarations and initializations int i=3,j=5,*p=&i,*q=&j,*r; double x; [code] value Equivalent expression value p==&i; **&p r=&x 7**p/*q+7 3**q-*p [/code]What excutly means: **&p and *&p Ihave seen them somewhere, but I don't know what it means thanks

Member Avatar for Bench
0
108
Member Avatar for mauro21pl

Hi I try to compile that program to see the results but I encountered a problem. The error that is guven by my comiler is : K undeclared (first use this function) e undeclared n undeclared and so on how my I make it compile thanks [code=C++]#include <iostream> int main() …

Member Avatar for Ancient Dragon
0
102
Member Avatar for mauro21pl

Hi guys where is the problem with that simple class program: #include<iostream> #include<conio.h> using namespace std; class DayOfYear { public: DayOfYear(int month,int day); void output(); void input(); private: int month_year; int day_year; }; DayOfYear::DayOfYear(int month,int day) { month_year=month; day_year=day; } void DayOfYear::output() { cout<<month_year<<"/"<<day_year; } void DayOfYear::input() { cout<<"What's your …

Member Avatar for ~s.o.s~
0
158
Member Avatar for mauro21pl

Hi What is wrong with that piece of code.Why it doeasn't let me compile. It gives me that errors on Dev-C++ : 15 expected primary-expression before "void" 15 ISO C++ forbids declaration of `privite' with no type 15 expected `;' before "void" In member function `void DayOfYear::input()': 45 `check_date' undeclared …

Member Avatar for Bench
0
143
Member Avatar for mauro21pl

[code=cplusplus] #include <iostream.h> #include <string.h> int const MaxSize = 50; Class CString { public: CString ( ); //Constructor initializes array to NULL. int GetStrLen( ); //Gets the length of the string. void ClearStr( ); //Clears the array to NULL. void DisplayStr( ); //Displays the string as written. void SetStrVal(char*); //Assigns …

Member Avatar for Bench
0
182
Member Avatar for mauro21pl

How may I clear whole array in that example? [code=cplusplus] #include <iostream.h> #include <string.h> #include<conio.h> using namespace std; class C_String { public: char* Input(); void Output( ); private: char array[30]; }; char* C_String::Input() { cin.getline(array,30); } void C_String::Output() { cout<<array; } int main() { C_String some_data; char array[30]; cout<<"enter sopme …

Member Avatar for Ancient Dragon
0
84
Member Avatar for mauro21pl

Look at that code How may I aproach that. I would like to print the middle charactert of the string, if the string has an even number character ,I would like to print the right most character on the left half of the string thanks [code=cplusplus] #include<iostream> #include<conio.h> using namespace …

Member Avatar for Bench
0
80
Member Avatar for mauro21pl

Hi Given 4 contiguous bites, how the computer know if that is an ASCII character or integer value? Thanks

Member Avatar for Bench
0
109
Member Avatar for mauro21pl

This is probably really easy question. How may I find in C++ if the number is even or odd? Thanks

Member Avatar for Hamrick
0
68
Member Avatar for mauro21pl

char MiddleCharacter( ); //Returns the "middle" character of the //string. If the string length is even //then the right-most character of the //"left" half is returned. how to find the middle character in a string Thank you

Member Avatar for mauro21pl
0
208
Member Avatar for mauro21pl

Hi Quick question. Is it possible to find the source code for the predefined functions in C++ Tnaks

Member Avatar for krnekhelesh
0
82
Member Avatar for mauro21pl

Hi again You gonna hate me, so many questions :). I will try with that one. I am working on tokanization ,it's work for many delimiters except the space. Does anyone know how may I make it work. Its have to make excutly what function strtok() does. I have to …

Member Avatar for Ancient Dragon
0
74
Member Avatar for mauro21pl

Hi to all I have a quick question. How can go through the integer to find if there is any specific number. For example my input would be 234446 (integer is of type long),and now I would like to check that integer and find how many 4's are in there …

Member Avatar for mauro21pl
0
110

The End.