First Upload
This commit is contained in:
33
9/ex2.c
Normal file
33
9/ex2.c
Normal file
@@ -0,0 +1,33 @@
|
||||
#include "IdanStringLib.h"
|
||||
#include "IdanLib.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#define STRING_MAX_SIZE 256
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------------------
|
||||
// Exercise 2
|
||||
// ----------
|
||||
//
|
||||
// General : The program checks if the string is a good equation.
|
||||
//
|
||||
// Input : String.
|
||||
//
|
||||
// Process : The program checks how many times a barcket '(' and a bracket ')' is in the
|
||||
// string and if the first one is a closer.
|
||||
//
|
||||
// Output : If the equation is ok.
|
||||
//
|
||||
//---------------------------------------------------------------------------------------
|
||||
// Programmer : Cohen Idan
|
||||
// Student No : 211675038
|
||||
// Date : 04.11.2019
|
||||
//---------------------------------------------------------------------------------------
|
||||
void main(void)
|
||||
{
|
||||
typedef char string[STRING_MAX_SIZE];
|
||||
string str1 = "";
|
||||
|
||||
ValidParenthesesTemplate(str1);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user