Showing posts with label 1year-1sem. Show all posts
Showing posts with label 1year-1sem. Show all posts

Sunday, June 5, 2016

Files in C++

Hello reader, today my tutorial is about Files in C++. We use Files in C++ to add values to programme to outer source.

     Imagine we have an outer file called "data.txt" and it has two value 10 and 20. We need to add this value to our c++ programme.

Sunday, April 17, 2016

PastPaper Answers For 1st Year 1st Semester(Final)

Year

Subject

2008 MIT
2009 IPE
MIT
CF
2010 IPE
MIT
CF
DCCN
2011 IPE
MIT
CF
DCCN
2012 IPE
MIT
CF
DCCN
2013 IPE
MIT
CF
DCCN
2014 IPE
MIT
CF
DCCN
2015 IPE
MIT
CF
DCCN
Note:Contributors aren't responsible for any mistakes in the answers as these are not actual marking schemes and do not get too attached and depend on given sample answers. Use them with your own risk.

Monday, February 22, 2016

Basic shapes in Ncurses

First of all I will give you a brief introduction about the Ncurses.
It is a special library in C++ where you need to get downloaded from internet.It is a GUI toolkit provided that the output is not given out from normal terminal(terminal independent).It provides functions to move the cursor, create windows, produce colors, play with mouse and provide several GUI features.Hope you'll search for more details :)

Color Codes
COLOR_BLACK           0
COLOR_RED                1
COLOR_GREEN          2
COLOR_YELLOW       3
COLOR_BLUE             4
COLOR_MAGENTA   5
COLOR_CYAN            6
COLOR_WHITE         7


1)
#include<ncurses.h>
Output
 int main(){
initscr();
start_color();
init_pair(1,3,4);
attrset(COLOR_PAIR(1));
int row=5,no=1;
for(int i=1;i<=5;i++){//i=no of rows
move(row,10);
for(int j=1;j<=no;j++){
//j=no of columns
printw("* ");
}
no+=2;
//each line increment by 2 *

Sunday, February 14, 2016

AM and FM (Additional information for DCCN)

As you know, we have to do additional readings for DCCN (Data Communication and Computer Networks) modules. This video will help you to understand how AM (Amplitude Modulation) and FM (Frequency Modulation) works. This is quite old video created by USA army, but really useful and simple one.

Monday, February 8, 2016

PastPaper Answers 1st Year 1st Semester(mid)

Download PastPapers From Here

1st Year 1st Semester(mid)

Click Here to get answers for 2005 papers
Click Here to get answers for 2006 papers
Click Here to get answers for 2007 papers
Click Here to get answers for 2008 papers
Click Here to get answers for 2009 papers
Click Here to get answers for 2010 papers
Click Here to get answers for 2011 papers
Click Here to get answers for 2012 papers
Click Here to get answers for 2013 papers

Note:Contributors aren't responsible for any mistakes in the answers as these are not actual marking schemes and do not get too attached and depend on given sample answers. Use them with your own risk.

Friday, January 15, 2016

Learn C++

One important subject in the 1st year 1st semester is IPE. For that we are learning C++ programming Language.Important thing is that we code C++ in the Linux Environment not in the Windows.Most Probably we use Fedora as the OS.So before learning C++ you should learn about the Fedora and it's features.We use Fedora Terminal for coding and there are some codings which you need to learn when handling the terminal because Linux environment is not user friendly as Windows. 

There are plenty of video series available in the Youtube to learn C++.I recommend this for the Beginners