thanks buddy
Type: Posts; User: sayword
thanks buddy
hey i was wondering if anyone had a link to a free compiler
and i was wondering if c++ compilers work with textpad.. we are using that for java programs in my school so it would be easier to...
whoa man, thanks, something so simple
:-) thanks buddy
ok i did what you guys said, but it still dies right after i enter in both fractions, and i dont know why
Hello, well this program involves 2 self made header files and the main program file. its supposed to perform mathmatical operations with fractions, but after it promps and scans in the numbers from...
well this is the interface header file
#include <iostream.h>
#ifndef fraction_h
#define fraction_h
class numbers
{
Hey im having trouble, this is only the second program ive dont in c++, anyhow, its a group project for school dealing with math with fractions, here is the code for my header file:
...
Im having trouble, what exactly is a constructor?
oh thanks i kept doing num (float) / 25
lets say you have a bunch of ints, and you want to find the average in a float, so you add them all together and divide by how many (25 in my case), but like do i need to cast the int to a float...
thanks, question, what is bool?
ok, another problem, lol
this function is supposed to put the link list in order but it doesnt work
void order()
{
int temp;
cptr = hptr;
:-D you kick ass!! thanks alot
mkay, i fixed those, but my display function doesnt work at all :-( anyone know why thanks for all your help guys/girls
thanks :-)
thanks, well i did that
printf("0000\n");
hptr->num = rand() % 99 + 1;
hptr->next = NULL;
printf("111111\n");
Ok, basically this program is supposed to put 25 random numbers into a link list, then put them in order, print them out in order, then print the sum and average, it allows me to compile it, but when...
thanks buddy
:-)
I am having a little problem with this program
#include<stdio.h>
void printstruct(struct patient *, int);
struct patient
{
char id[8];
so.. aside from everyone bein comp nerd \m/ what else do you all like doing? what kinda music do you like? where you from? how old are you?
couldnt you always use strnlen(Nameofstring)?
because everyone knows there are only 52 playin card, D'UH lol just kiddin
everyone is telling me that void main() is wrong, thats what my teacher told us to use, so im just wondering why everyone says its wrong? all the programs i have done so far have worked with void...
ha thanks cause i was gonna just make a topic asking how to post a code in a neet fasion, thanks brotha
oh lol, i was printing out the wrong element, i tried to print the area code from the string and not the int acode, everything else was fine, thanks tho guys