thanks my friend but is working for keys 1-90 ,
for keys 91,92,93,94,95,96 i get chinese why? :confused:
Type: Posts; User: dionys
thanks my friend but is working for keys 1-90 ,
for keys 91,92,93,94,95,96 i get chinese why? :confused:
p.s:i encode characters in the interval 32-127(ascii values)
so an usnigned char array is useless...
i'm worried about the key..the key is any integer so i must use mod arithmetic
char *Ceasar_enc(char text[],int key) {
char *p=text;
long int temp;
while(*p){
temp=(*p+key)%96+32;
*p++=(char)temp;
}
return text;
no i dont understand :)
sorry
when the key +ascii value are bigger than 127 then:result mod 96
how i can get the original number?
I have an exercise that is based in Caesar's encoding method.
I have to encode ASCII characters from:
32 to 127 with any key.
key may be [1, any integer].
I made two functions one for encoding...
thanks a lot :)
another thing...
can you implement int (*fuct())[20]
in an example to understand what is going on(plz)?
Hi guys
#include<stdio.h>
void p(int n){
if(n > 0){
p(n - 2);
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct lnode{
struct lnode *next;
int id;
char *name,*address;
I cant use this tip because the user must be able to create categories and give symbolic names not me.....
I have this prototype:
struct node{
struct lnode *next;
int id;
char *name,*address;
char **phones;
}
the exercise says that the user must be able to create
categories of linked lists
i.e....
Hi Guys.I have some questions for this program.
This program uses linked lists to construct a stack (lifo)
I dont understand the bold part of the code:
In general i dont understand why
Pop()...
Hi guys ...can you tell me a good tutorial for linked lists(structures)
because i'm very comfused.
THis is a program that splits a given string when it finds the
delimiter.
i.e this/is/a/boy/ delimiter is "/"
this
is
a
boy
i dont know what is the error but is alocated in split()...
but you dont help a lot :)
i tried but no results
some source code will help a lot
Hi guys i need your help for this replace_pattern program.
This is a program that takes a string
i.e.:"The boy was sitting in the room"
then it takes a string to compare
i.e.:"the"
Finally it...
This is a program for reverse polish calculator (K&R ch 4)
This is a post fix calculator
1.Additions deal with adding functions from math.h to the
calculator.
In anticipation of the following...
Hi guys...
I need your help...
I have an assignment on reverse polish notation based on the
K&R sec.edition book (chapter 4)
Because i'm a beginner ...do you know where i can find any ...
#include<stdio.h>
#define WIDTH 25
#define HEIGHT 15
int main(void)
{
char star='*',space=' ';
int y,x,c;
double y_spot,x_spot;
char my_graph[WIDTH][HEIGHT];
for(y=0;y<HEIGHT;y++)
sorry ! :)
I REALLY APRECIATE YOUR HELP SALEM
THANKS A LOT ):
Draw it in memory before you draw it on screen
Code:
char paper[25][80];
Start by filling this with spaces
Then do
paper[y][x] = '*';
at the points you want to plot
/*This program produce real numbers,x and y.
The minimum number for x is 1,... and the maximum
number is 14{...decimal places}because C is 15 spaces " "
The minimum number for y is 1,... and the...
thank you all :) i will start to do all the things you set to me :)
i have a long way....i'm a biginner
:)
--------------------------------------------------------------------------------
How i can start printing my graph starting from the left down corner
and not from the top left corner?
( (0,0)...