- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
4 Posted Topics
Hi, Found this forum on Internet and This forum is one of the interestings. So Joinded and hopefuly may learn many more things from this forum. Thanks to all.
Check this Code: #include <iostream> #include <stack> #include <string> #include <cstring> #include <cstdio> using namespace std; stack <char> Stk; int main() { char str[100],temp; gets(str); int len = strlen(str); for(int i=0;i<len;i++) { if(str[i]=='(' || str[i]=='{' || str[i]=='[') Stk.push(str[i]); else { temp = Stk.top(); if(temp=='(' && str[i]==')' || temp=='[' && str[i]==']' …
It's a simple statement to Code.. #include <stdio.h> #include <string.h> int main() { char studentName[20],studentID[10]; int marksInMath,marksInScience; printf("Welcome, I am your computerized study advisor...\n"); printf("\nPlease enter your student ID: "); scanf("%s",studentID); getchar(); printf("\nEnter your Name: "); gets(studentName); printf("\nEnter Your marks in Math's subject: "); scanf("%d",&marksInMath); if(marksInMath>=50) { printf("\nEnter Your marks …
This algo is fine. Source: [WikiPedia](http://en.wikipedia.org/wiki/Selection_sort)
The End.