33 lines
962 B
C
33 lines
962 B
C
#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);
|
|
|
|
} |