Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #3K
~4K People Reached
Favorite Forums
Favorite Tags

14 Posted Topics

Member Avatar for HeartBalloon

Hi, I've just installed netbeans, cause I found out I need to work with C and windows doesn't allow the use of pid_t and fork(). Awesome Job, Gates. Anyway I've found this pretty compiler which is NetBeans. In pair with cygwin it should work out all the C stuff I …

Member Avatar for papanyquiL
0
82
Member Avatar for SacredFootball
Member Avatar for HeartBalloon

Hi, I have to write a code which should allow to append and item to a list. That is FIFO Logic, First In First Out, but I cannot think of anything of that kind actually. I mean, I should run the list until the last pointer, and then make it …

Member Avatar for HeartBalloon
0
638
Member Avatar for HeartBalloon

[CODE] int findWord(char ma[][iSize], char ca[],int iRing,int& X, int& Y){ int ring=0,i=0,j=0,x=0,y=0,k=0,i2p=0, iLSide=0,iSSide=0; bool bOkay=true, bOver=false; ring = iRing--; iLSide=(iSize-(ring*2)); iSSide=(iSize-((ring*2)+3)); i2p=(iLSide*2)+(iSSide*2); x=y=i=ring; while(i>=ring && i<i2p && bOver==false){ j=i; switch(i){ // WHAT'S WRONG WITH THIS?!? WHY CAN'T I ASK A CASE MINOR OR EQUAL? case =< iLSide: x=ring; y=j; break; …

Member Avatar for HeartBalloon
0
177
Member Avatar for HeartBalloon

Hi, I'd like to have a for condition with two interrupting conditions: [CODE] for(temp=hl;temp!=NULL,bOver1==true; temp=temp->next){ bOver=false; int I=0; while(bOver==false){ if(cu.Chars('S')[I]>temp->custs.Chars('S')[I]){ bOver=true; prev=temp; }else if(cu.Chars('S')[I]<temp->custs.Chars('S')[I]){ //FOUND THE ONE GREATER: PREV STAYS THE ONE BEFORE AND LOOP MUST END HERE! bOver=true; bOver1=true; } i++; } } [/CODE] This is a part of …

Member Avatar for HeartBalloon
0
168
Member Avatar for HeartBalloon

Class homework: cannot use strings. How do I declare a function that passes me a cstring? char[5] for example. I need it to explicit a private member of a class. [CODE] class Customers{ private: caName[kiArraySize]; //kiArraySize is 30 public: //this is what I need help for char[] passName(Customers); }; char[] …

Member Avatar for gerard4143
0
93
Member Avatar for HeartBalloon

Hi, I have this simple code: [CODE] const int kiCharSize=30; const int kiDate=7; struct Customer{ char caName[kiCharSize]; char caSurname[kiCharSize]; char caCity[kiCharSize]; char caPhone[kiCharSize]; char caDate[kiDate]; char cDay; enum eDay{M,A}; char caBrand[kiCharSize]; }; blablabla Customers::Customers(int x){ switch(x){ case 1: Cust.caBrand="HolyBrand"; Cust.caCity="Heaven"; Cust.caDate="110205"; Cust.caName="Jeesus"; Cust.caPhone="999333999"; Cust.caSurname="HolySpirit"; Cust.cDay='M'; break; case 2: Cust.caBrand="Brandutsu"; Cust.caCity="Japan"; …

Member Avatar for Nandomo
0
146
Member Avatar for HeartBalloon

I don't know what it means: [CODE] class Tree{ friend ostream& operator<<(ostream&, const Tree&); private: TreeNode *Root; void insert(TreeNode*&,int); void PrintInOrder(TreeNode*); int Median(int[],int&); public: Tree(); Tree(int); void insa(int[]); void ins(int); void print(); }; ostream& operator<<(ostream& out, const Tree& tree){ out << tree.Root ->GiveValue(tree.Root); return out; } Tree::Tree (){ Root = …

Member Avatar for HeartBalloon
0
998
Member Avatar for HeartBalloon

I have to write a code to build an array like this: 1,6 1,0 2,3 3,4 5,6 4,5 7,6 1,2 9,7 Where the numbers are coordinates which have to be "separated" when taken in consideration Like: cell[2][2]---> x=5 y=6 I decided to make a char array, so that with atoi() …

Member Avatar for HeartBalloon
0
110
Member Avatar for saumya_kapila

Well, first of all you should study how to print a string into a file, life fprintf or fputs. Second, explain yourself: You mean you have a file like this: pplea Which becomes apple OR like this rtyeppleasfg and becomes apple, leaf, fags, please What do you mean by "find …

Member Avatar for HeartBalloon
-1
185
Member Avatar for Akill10

Well, DataType will get the type you pass it, no? So if it's a char, it may take just a numeric value and then convert it to ASCII. If it's a int, it'll be a zero. The same for double, float and bool Maybe you SHOULD initialize it to NULL. …

Member Avatar for Akill10
0
153
Member Avatar for ashwinrox123

You installed what c++ compiler? Visual C++, Dev c++, NetBeans, Borland, Turbo c++...?

Member Avatar for HeartBalloon
-2
60
Member Avatar for Mayank23
Member Avatar for HeartBalloon

[QUOTE]You said the function returns just a single character yet you are trying to return a character array. You can't have it both ways. What you should have done is [icode]char* getEmpName()const[/icode] -- notice there is a * after char to indicate it will return an array of characters.[/QUOTE] Hi, …

Member Avatar for HeartBalloon
0
382

The End.