Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to split a string in C++?

// A C++ program for splitting a string using strtok() #include <stdio.h> #include <string.h> int main() { char str[] = "First-Demo-Example"; char *token = strtok(str, "-"); // Returns first token while (token != NUL

Button always showing text in uppercase-solution

I found that sometimes button showing text in upper case. I have found the solution that we just need to define property textAllCaps in the xml file. For example <Button android:layout_width="match_parent" andr

Printing something without using main method

Printing hello without using main method: We can use static block to print something without using main method as static block executes as soon as the class is loaded. To ignore exception "System.exit(0);"  is used which terminates th

Can someone explain the algorithm of this java program?

I found it in the net and I want to know the explanation of it's algorithm. I'm having a hard time to understand this. thank you so much :) import java.util.Scanner; class BinarySearch { public static void main(String args[]) { int c, firs

Quantifiers Of Regular Expression

The quantifiers describes the number of event of a character to match against. For ease of use we divide three types of quantifier: Greedy Reluctant Possessive   1. Greedy quantifier: With the help of greedy quantifier match

PHP 7 new feature: The null coalesce operator

Hello Friends, Today we will discuss about PHP 7 another new feature which is The null coalesce operator. This operator denoted by ??  (double question mark) and it replace the ternary operator feature in a single line with less code than terna

Does Microsoft Security Essential Properly Scan and Protect System from Virus?

Hi, I have a question related to system attack I recently faced. My system was attacked by a virus, which also resulted in issues with the portable hard drive. Since I didn’t have any antivirus installed, my portable Hard Drive Data is infecte

Exceptions in Ruby

Exception is a unexpected output during execution of code in programing language. Due to exception execution of program stops.In Ruby, Exceptions are basically used to handle different type of errors, which may raise during execution of program and w

Understanding Single, SingleOrDefault, First and FirstOrDefault

There are element operators provided by LINQ which are capable of returning single or specific element from a collection. These element operators can be defined as follows :-   Single : This element operator is capable of returning single sp

help need please quick

Implement a C program that, using a modular structure, is able to handle simple strings. For that, implement the following functions. A function with the prototype int CountSpaces(char *str) that, making use of pointer notation only, ret

1 31 115
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: