so ?
Type: Posts; User: the_contractor
so ?
what(4)
1111
211
22
31
4
need to print all sum combination of integer;
void what(int sum)
{
int i;
for(i=1; i<=sum; i++)
{
printf("%d",i);
#include <stdio.h>
#include <string.h>
int what(char *str, char ch){
char *temp;
for( temp = str; *str; str++)
if(*str != ch) *temp++ = *str;
*temp = '\0';
return str-temp;
}
arr =(char **)malloc((SOME INTEGER VALUE)*sizeof(char *)))
supose there`s char **arr; declaration & the allocation succeed .
#include <stdio.h>
#define M 2
#define N 3
#define K 3
// A[M][N]*B[N][K] = C[M][K]
void main()
{
int A[M][N]={{1,2,3},{4,5,6}} , B[N][K]={{1,1,1,},{2,2,2,},{1,1,1}} , C[M][K]={0};
int i,...
Question 8:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void main(){
char data[ __ 1 __ ], tel[__ 2 __];
FILE *fptr;
int flag;
fptr = fopen("stam.txt","r");
while ((flag =...
this is the skeleton of the asiigments .
i dont know why it not compile .
can someone help .
http://www.cs.bgu.ac.il/~prog101/Assignments/Assignment_5/Main_Loop
PLZ help !
the file attached .
i dont understand the idea of this function
void reg_student(slist *students,clist *courses,int id, int number)
this function is VOID , how can add...
ohhh ok ..... .
how stupid .
thank u very much !
i dont understand what`s all the Errors about .
just want do define structures
& functions prototypes .
the code
#include <stdlib.h>
mean to skip the cell a,b .
#include <stdio.h>
#define SIZE 8
void print(int board[SIZE][SIZE])
{
int i,j;
for(i=0; i<SIZE; i++)
{
for(j=0; j<SIZE; j++)
printf("%2d",board[i][j]);
printf("\n");
supose theres an array SIZE X SIZE i getin coordinate a,b from user and i want to check all the diagonals including the cell a,b in the array .
those for loops alright ?
1.
...
supose theres an array SIZE X SIZE
the user enter coaordinate (a,b)
i want to put 9 in each coardinate on the 2 diagonals that including (a,b).
this is my try :
////// diagonal I {/} ...
so ?
there's no such thing ?
thank you .
how to fix the lines ?
i mean that
if
void func(){
if(exp)
inst1;
ok... thank you very much !
why only the first Iteration workin alright ?
#include <stdio.h>
#include <stdlib.h>
struct Node
{
int val;
i know..
hmmmm.... sorry for that im bother you , but its not workin too .
i don`t understand but thank you anyway .
why ? :)
need to swaping nodes without changing the vlue fields .
my solution
void swap(Node *X,Node *Y)
{
Node *prev, *next, *temp;
temp=X;
prev=(X->prev);