Category Archives: C++

BigInteger in Java and C++

code:

for c++ this link link or google search is good but i didn’t found any goood solution yet:
http://codeforces.com/blog/entry/16380

java:

Simple addition:

BigInt Sum:

 

 

Hackerearth Min-Max

code:

partially accepted code with vector:

 

C++ Vector push_back()…pop_back()

C++ STL in Bangla

https://tanvir002700.wordpress.com/2016/04/15/c-stl-tricks1/

 

String Refreshing

//Program to assign string and display the same

//specifiying the array string size

Assigning string character by character

//Read a string and display it

//It will not allow string

so we need gets(str)
code:

with gets we can print line with space: Zaki Live

//simple printf

//using puts

//putchar

Program to find length of a given string:

Using string related library function:

//string copy with out library function

//using strcpy library function

Concatenated String:

Using library function:

 

 

C refresh for logic development

Code:

Output:

Details about Pointer

 

 

 

C Refresh

Palindrome C code

http://dharanyadevi.blogspot.com/2012/04/palindrome-in-c-without-using-string.html

String and Hackerearth

String Upper:

String Lower:

Lower Upper Both:

Hackerearth Problem:: Toggle String

Another Approach:

Another Approach:

 

Helpful Link: http://www.programmingsimplified.com/c/program/c-program-change-case

Vector in C++

Vector Codes:

Vector Copy:

String:

Stack:

Queue :

Priority Queue:

Iterator:

Set:

Map:

String Stream:

Good websites for learning by example:
http://www.sanfoundry.com/cpp-program-implement-vector-stl/

http://www.progkriya.org/gyan/stl.html

A good Array Example

Hackerrank problem:

 

A good example of pointer code at Hacker Rank

A good example of pointer code at Hacker Rank:

 

String Compare in C/C++

http://stackoverflow.com/questions/8004237/how-do-i-properly-compare-strings-in-c

Flags in C

Reference:
https://www.daniweb.com/programming/software-development/threads/201233/use-of-flag-in-c