thanks
Type: Posts; User: chasingxsuns
thanks
Hmm I used to the example the FAQ gave,
#include <iostream>
using namespace std;
void mypause()
{
cout<<"Press [Enter] to continue...";
#include <iostream>
using namespace std;
int main()
{
int age;
char name[8];
cout<<"How old are you?";
this is my program----------
#include <iostream>
#include <cstdlib>
class rectangle
{
public:
eh...that didnt work lol. it just made more parse errors and made deposit undeclared.
i did a code similar to one posted on here not too long ago. i only get 2 errors but i cant figure out how to fix them.
heres the code--
#include <iostream>
#include <cstdlib>
using namespace...
okay so i got this..
#include <stdio.h>
#include <string.h>
#define FIRSTNAMES
#define LASTNAMES
#define NAMES
if ((ptr = strchr(firstname, '\n')) != NULL)
*ptr = '\0';
can you explain what this does?i cant figure it out lol.
#include <stdio.h>
#include <string.h>
#define firstnames 15
#define lastnames 15
#define names 30
int main ()
{
char firstname[firstnames];
oh im sorry i didnt see xeddiex's post. lol sorry for the extra trouble guys.
i tried changing the actor inside main to both 'person' and 'aaa' and changing the actor inside oz to 'uuu' and it did the same thing. know anything else that could be wrong?
is oz a type of variable? what can i do to fix this?
#include <stdio.h>
#include <string.h>
void main()
{
struct oz
{
char actor[30];
char character[30];
int age;
ha...wow. it works now and i feel like an idiot. oh well. thanks for the help!
i use the new version of bloodshed. its free and a lot of source codes from my book dont work with it lol. i use windows so i use void and just start>run>exe my programs. is it possible that its...
#include <stdio.h>
#include <math.h>
void main()
{
char input[20];
double miles, kilometers;
printf("Enter a value in miles:\n");
miles=atof(gets(input));
i entered this simple code from a book and its not working.
#include <stdio.h>
#include <math.h>
void main()
{
char input[20];
/sigh for some reason it wont show the sorted array correctly. the unsorted/random comes up fine...but once i press enter only about 10 numbers come up.
#include <stdio.h>
#include <time.h>...
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#define SIZE 200
void sort(int *array, int size);
int rnd(int range);
void seedrnd(void);
ummm.. i know question is extremely noob, but what does strchr do? i looked on the C programming.com tutorials and couldnt find it. and how does the if loop make when the user presses backspace not...
lol its from C for dummies volume 2. if its not too much trobule, can you explain the if loop? i dont understand it too much :-\
whoops...messed up with the }'s on the last few lines...
should be like this
#include <stdio.h>
#include <conio.h>
#define CR 0x0d
when i run this program, it doesnt do the last printf that says 'darn glad to meet you...' it just CR+LF. ive copied this straight from a book, i dont understand why it wont work.
#include...
ehh....its still doing the same thing : \
they pause the program until i press enter. i try to use void main with the program and take out the getch()s but then i cant see the program at all, it just comes up for like a second then goes...