Search Results

Showing results 1 to 18 of 18
Search took 0.00 seconds.
Search: Posts Made By: rowly ; Forum: C++ and child forums
Forum: C++ Nov 1st, 2006
Replies: 7
Views: 6,648
Posted By rowly
try this MDA (http://www.cplusplus.com/doc/tutorial/arrays.html)
you want my advise read every c++ program in ya book and you will understand it coz ya cant hit it from the 1st step... its not that...
Forum: C++ Oct 27th, 2006
Replies: 22
Solved: void pointers
Views: 6,501
Posted By rowly
Haha :) i did it !!!! just push and address and pop the contents hahha :)

weight.push(&student[i].weight)
printf("%2.2f",(*(double *)weight.pop()));

Ancient Dragon hehe it was your idea ;)...
Forum: C++ Oct 26th, 2006
Replies: 22
Solved: void pointers
Views: 6,501
Posted By rowly
wel pushing the whole string into the stack is a better idea when it comes to double(or probably compiler coz ~s.o.s~ got it right ) ! actually i searched the whole net for converting from double to...
Forum: C++ Oct 25th, 2006
Replies: 22
Solved: void pointers
Views: 6,501
Posted By rowly
#include"stdafx.h"
#include<stdio.h>
#include<stdlib.h>
enum sex {male, female};
typedefstruct data {
char fname[30];
sex MF;
int age;
double wit;
}records;
Forum: C++ Oct 25th, 2006
Replies: 22
Solved: void pointers
Views: 6,501
Posted By rowly
Hello guyz i'm still getting an error about conversion from double to void*
i'll appreciate any Help :)
BTW i tried to push the name and age and sex it works but when i try to push the double...
Forum: C++ Oct 19th, 2006
Replies: 22
Solved: void pointers
Views: 6,501
Posted By rowly
Anyways MAte THX aLOta :) ya da champ !
i'll work on that tomorrow ! :)
its 4 am in here cheers gnit !
Forum: C++ Oct 19th, 2006
Replies: 22
Solved: void pointers
Views: 6,501
Posted By rowly
aw ok !
is this the right conversion from int double to void ?!
... = * (int *) ...;
...= * (double*)...;
the hardest part is enum hahah lol how i'm gonna convert from sex to void* heheh...
Forum: C++ Oct 19th, 2006
Replies: 22
Solved: void pointers
Views: 6,501
Posted By rowly
#include"stdafx.h"
#include<stdio.h>
#include<stdlib.h>
enum sex {male, female};
typedefstruct data {
char fname[30];
sex MF;
int age;
double wit;
}records;
Forum: C++ Oct 19th, 2006
Replies: 22
Solved: void pointers
Views: 6,501
Posted By rowly
nop still getting the same characters هٍ↕
Forum: C++ Oct 19th, 2006
Replies: 22
Solved: void pointers
Views: 6,501
Posted By rowly
well when i run the code i got this output : هٍ↕هٍ↕ and i should get "fredy" instead !
i tried to put printf("%s",layer) in the push function, it works fine i got fredy as myobject (just for test...
Forum: C++ Oct 19th, 2006
Replies: 22
Solved: void pointers
Views: 6,501
Posted By rowly
hello guyz iv got problem with void pointers i cant work this out !
i'm trying to read from a binary file using a struct and pass this struct arrays to class object and push them to stack and...
Forum: C++ Oct 18th, 2006
Replies: 13
Views: 3,173
Posted By rowly
what activation record and what procedure ?!!
post your code mate !
Forum: C++ Oct 17th, 2006
Replies: 7
Views: 1,608
Posted By rowly
you cant use the same same name if you wonna do so
change the parameters name inside the function...

void getData(int& diam, int& pr)
{
cout << "Enter in the diameter of the pizza...
Forum: C++ Oct 17th, 2006
Replies: 7
Views: 1,608
Posted By rowly
int a,b;
getData(a,b);
Forum: C++ Oct 15th, 2006
Replies: 9
Views: 1,751
Posted By rowly
Hello, I couldnt get wt u r trying to do !
but i can tell that ya have problem with structers (http://www.cplusplus.com/doc/tutorial/structures.html) and functions...
Forum: C++ Oct 12th, 2006
Replies: 2
C++
Views: 1,171
Posted By rowly
think about it like this !

something that hold 30 numbers
a loop
{
input number
}
compare the numbers
a loop
{
Forum: C++ Oct 7th, 2006
Replies: 4
Views: 2,345
Posted By rowly
dont worry hehe lol its good to learn sumffin after all !
i'm a newbie as wel !
cheers MAte
Forum: C++ Oct 7th, 2006
Replies: 4
Views: 2,345
Posted By rowly
wel there is no syntax errors in the program ! but about logical that depends on your output !
just tell us what are you tryin to do ! or what do u expect for an output !
and by the way try to...
Showing results 1 to 18 of 18

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC