Update cv1/program.c
This commit is contained in:
parent
2422f297f6
commit
058d465404
@ -1,9 +1,13 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
// /
|
//
|
||||||
bool check(char* s2, char *pz)
|
bool check(char* s2, char *pz)
|
||||||
{
|
{
|
||||||
|
if(s2==NULL || pz==NULL)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
char *s=(char*) malloc(strlen(s2)+1);
|
char *s=(char*) malloc(strlen(s2)+1);
|
||||||
if(s==NULL)
|
if(s==NULL)
|
||||||
{
|
{
|
||||||
@ -30,8 +34,8 @@ bool check(char* s2, char *pz)
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
|
||||||
char r[300];//="8ryNd20va P1zza";
|
char r[3000];//="8ryNd20va P1zza";
|
||||||
char pizz[99];//="piz";
|
char pizz[990];//="piz";
|
||||||
char *p;
|
char *p;
|
||||||
float price;
|
float price;
|
||||||
int count =0;
|
int count =0;
|
||||||
|
Loading…
Reference in New Issue
Block a user