Does anyone know what is the following two function does. Can i have an explaination of that??
void reverse(char s[])
{
int i=0,j;
char a,b;
j=strlen(s)-1;
while(i<j)
Type: Posts; User: dianazheng
Does anyone know what is the following two function does. Can i have an explaination of that??
void reverse(char s[])
{
int i=0,j;
char a,b;
j=strlen(s)-1;
while(i<j)
Thanks.... i know where i have gone wrong, i did not put the printf statement properly, causing it to print out the answer that i don't want.....
#include <stdio.h>
#include <string.h>
void reverse(char []);
int
main(void)
{
char s[100];
Thanks.... i got it...
Hi,
I have write out a code that use a pointer and print out the sum of two squared value. I am not sure where i go wrong in the code, can anyone correct my error??
Thanks.
#include...
Ya.. got it, thanks everyone......
why do you want to use "-2" in the "for" loop.
for ( i = strlen(s) - 2; i >= 0; i-- ) {
I try it with "-1" and it produce the same result...
Hi all,
I know that there is something wrong with my code, can anyone pls help me to edit my code.
What the code did was to take in a character and produce the reverse of that character.
...
Ya, i know that its better to use the functions available.
But i just want to know that how can we do that without using the available function.
Also how the code will look like and exposed...
Ya i have tried and both give the same out put...
But both uses the function "toupper()" and "tolower()", is there any examples that does not use this two given functions and still produce the...
Hi all,
First of all, i have to make it clear that i am not asking anyone to do my homework.
All i want is, do anyone have sample C code that change all the lower case chacter to upper case...
Thanks i finally got my makefile working in cygwin....
It should be
CFLAGS = -Wall -g -I/usr/include/libxml2
I have try each and everyone of the "CFLAGS" in my "makefile" and i am sure that i have the "libxml2.a" , "libxml2.dll.a" , "libxml2.la" and "xmlmemory.h" in the all the directory.
CC = gcc...
yap ass ==> assignment....
No offend for that, that is just my shortcut for my assignment
I change my Makefile a little, to like this
CC = gcc
# CFLAGS = -Wall -g -L/cygwin/usr/include/libxml2/libxml
CFLAGS = -Wall -g -L/cygwin/home/Diana/ass1/ass/bin/labweek11/libxml
LIBS =...
This is my make file:
CC = gcc
CFLAGS = -Wall -g -I/cygwin/home/Diana/ass1/ass/bin/labweek11/libxml
LIBS = -lxml2
outline: outline.o
$(CC) $(CFLAGS) $(LIBS) -o $@ outline.o
Hi all,
I am currently writing a program that will involve C and libxml. The probelm is, when i run my program, it say something like "undefined reference to '_xmlNewNode ' ", so is there any way...
yap i have got them, thanks...
I try using gdb to debug but i couldn't get anything to print out, did i miss out something somewhere.
This were the steps:
$ ./solvemaze1 ulimit -c unlimited
Segmentation fault (core...
you could give me a mulitple solutions, that might not be the solution that i wanted but al least i would know that, oh they are so actually so many ways to do one thing and maybe from the solution,...
Sorry i wasn't meant to be rude or what, but i feel that if every helper here is like you, no one will ask questions or ask for help in a forum.... Because all they get fort he reply will be, you...
If every helper is like you, no one will ask question in a forum....
Does anyone have any solutions or somthings about this error...
Yap my header files is in the same folder as my all other files.
This is one robot2 header file
#include "navigation.h"
char *robot_name();
void start_at(int x,int y);
enum Dir...
let say i have a maze like this.
6x6
#E####
#.#.##
#...##
###.##
##X.##