Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~10.6K People Reached
About Me

big,crazy,sweet..

Interests
video games ,iOS dev ,mobile app dev
PC Specs
mac osx , 8GB , intel i5
Favorite Tags
Member Avatar for gabby_1

#include <iostream> using namespace std; int rankfun(double left, double right){ int rank; if(left < right){ rank =-1; } else if(left > right){ rank = 1; } else{ rank = 0; } return rank; } int main(){ double number1 = 1.7; double number2 = 2.3; int result; result = rankfun(number1,number2); cout …

Member Avatar for Khalil Cooper
0
2K
Member Avatar for surfingturtle

Dear members, Am learning C++ by Yashawant Kanetkar from his book "Let us C++", its been said his books are good for beginners who do self study like me, but I find some conflict of logic in this book, please help me clear those... The book says......the following code fragment …

Member Avatar for David W
0
269
Member Avatar for iharrythomas

Hello, It would be great if someone tell me how mobile application can generate sales. I am wondering, Should I go for website marketing or app store optimization. Which is the best way to boost the direct sales Thank you

Member Avatar for rproffitt
0
255
Member Avatar for ravi_14

**Bold Text Here**I am trying to make a generic linked list . below is the code for linkedlist . #ifndef GenericLinkedList_h #define GenericLinkedList_h #include <iostream> #include "GenericLinkNode.h" //class GenericLinkedList; template <typename T> class GenericLinkedList { private : GenericLinkNode<T> *head; public: GenericLinkedList(); void traverse(); bool isEmpty() { return head == NULL …

0
176
Member Avatar for ravi_14

Hi All, I am trying to implement generic link list in c++ . But getting below error . Please assist me to correct it. LinkedList.hpp LinkNode<E>* head; errr: unknown tpe name ''LinkNode // LinkNode.hpp // cplus // // Created by Ravi Rathore on 10/12/15. #ifndef LinkNode_hpp #define LinkNode_hpp #include <stdio.h> …

Member Avatar for deceptikon
0
283
Member Avatar for Manish_10

Hi, please can anyone help me with the following issue? issue: todays date is 20150819 and my data contains date as 20141001. I want to read this date i.e. 20141001. please tell me how to read the previous year date??

Member Avatar for ravi_14
0
312
Member Avatar for ravi_14

let session = NSURLSession.sharedSession() //1 let downloadTask = session.downloadTaskWithURL( url, completionHandler: { [weak self] url, response, error in // 2 // return } ) Please explain the meaning of [weak self] inside closure . what if we dont declare it as [weak self] ? Thanks /

0
201
Member Avatar for Ahmed_62

#include <iostream> using namespace std; //Write a recursive algorithm to solve the towers of Hanoi problem. //move disc 1 A to c ACB //move disc 2 A to b ABC //move disc 1 C to b CBA //move disc 3 A to c ACB //move disc 1 B to a …

Member Avatar for Ahmed_62
0
175
Member Avatar for Cleophas_1

write a c++ program to compute compound interest. the program should be structured as follows A function to compute interest and another function to compute amount **Bold Text Here**

Member Avatar for Cleophas_1
-1
522
Member Avatar for vegaseat

Ever since I got a fancy iMac and started using the Xcode IDE, I got hooked on Apple's new Swift language. From what I heard, it is supposed to replace the aging Objective C. I left a couple of Swift code snippets in the Computer Science section about my one-month …

Member Avatar for vegaseat
1
385
Member Avatar for ravi_14

#import "Person.h" @class Asset; //i have used import "Asset.h" which contains definition for asset @interface Employee : Person { int employeeID; NSMutableArray *assets; } @property int employeeID; - (void)addAssetsObject:(Asset *)a; - (unsigned int)valueOfAssets; @end I got this snippet from objective c book. In the second line , author has used …

0
239
Member Avatar for ravi_14

assume latgeInt=2147483647 Debug.Log(largeInt); //2147483647 float largeFloat = largeInt; Debug.Log(largeFloat); ///2.147484E+09 int backAgain = (int)largeFloat; Debug.Log(backAgain); //-2147483648 *This part i did not get. I assume there was some data loss when float was explicitly casted into int . But the loss should be in right most digits. How come sign got …

Member Avatar for sandeepjkl
0
205
Member Avatar for ravi_14

the relation betwwen student and course entity is many to many.but it is not recommended .how can we convert it to two one to many relationships?

Member Avatar for hericles
0
138
Member Avatar for ravi_14

**The special rules for inline functions require that they be defined in each file in which they are used.The easiest way to make sure that inline definitions are available to all files in a multifile program is to include the inline definition in the same header file in which the …

Member Avatar for David W
0
195
Member Avatar for ravi_14

**The special rules for inline functions require that they be defined in each file in which they are used.The easiest way to make sure that inline definitions are available to all files in a multifile program is to include the inline definition in the same header file in which the …

Member Avatar for L7Sqr
0
203
Member Avatar for ravi_14

My header file header.h #ifndef HEADER_TEST #define HEADER_TEST static test_variable; #endif now i am including this in two source files IN THE SAME PROJECT. multiple definition error. i have used static specifier in header file . please help me understand this.i think static makes internal linkage. regards, ravi

Member Avatar for Suzie999
0
139
Member Avatar for ravi_14

please help me to understand the output void main() { printf("%x",-1<<4); return ; } -1 is represented as **1111 1111** so in hexadecimal form it should be FFh but compiler displays ffff ffff

Member Avatar for ravi_14
0
114
Member Avatar for ravi_14

i read the following line from programming wiht c by byron s gottfried. **"only external and static array can be initialized"** however when i tried initialising automatic array ,the program works . please explain.

Member Avatar for hericles
0
72
Member Avatar for iblanq
Member Avatar for ravi_14

IplImage *in; CvMemStorage *storage = cvCreateMemStorage (20506); CvSeq *contours=NULL; CvPoint *PointArray=NULL; for() { //image processing and feature extraction code here cvClearMemStorage (storage); //clear memory area free (PointArray); cvReleaseImage (&in); } At the end of each iteration i ma releasing memory but still i get memory shortage error after # processing …

Member Avatar for rubberman
0
330
Member Avatar for ravi_14

i am not able to connect to the sql server on my system. SqlConnection^ connection=gcnew SqlConnection(); connection->ConnectionString ="Data Source=blueboy\sqlexpress;Initial Catalog=DCV_DB;Integrated Security=SSPI;Pooling=False"; i got the string from database properties.(i have attached the same in this post) sql service is running. tcp ports are enables too.

0
112
Member Avatar for ravi_14

i am developing a project in c++ and i need database to save details.i googled but so far have bot come across a good tutorial for c++ database . most of the articles i have found are obsolete. please suggest what are APIs for database in c++?

Member Avatar for Ancient Dragon
0
464
Member Avatar for ravi_14

i found following code to create a two dimensional array at run time if one of the dimension is known.. char (*c)[5]; c=new char[n][5]; first line is pointer to an array of 5 integers but i couldnt undesratnd the second step.

Member Avatar for Ancient Dragon
0
287
Member Avatar for Stefan_2

This is what I have to code. Input an array of numbers(any numbers that user inputs from standard input, aka keyboard), remove numbers from array that are not 0 and 1. Thay array should now be bitwise moved with << or >> (again user choses the number of spaces moved …

Member Avatar for Stefan_2
0
285
Member Avatar for ravi_14

![6b87dfe9bac7df6c309f7266d28a4ad0](/attachments/small/4/6b87dfe9bac7df6c309f7266d28a4ad0.JPG "align-left") i am reading "pointers in c by naveen toppo" .According to him program crashes when it encounter int y=*ptr; i dont understand why it should crash?i think its correct. *ptr gives int value. please refer attachement.

Member Avatar for Ancient Dragon
0
163
Member Avatar for dennis.ritchie

My IDE codeblocks 10.05 cant run a program which is overloading functions. Any help please..maybe due to settings

Member Avatar for Ancient Dragon
0
210
Member Avatar for inspire_all

What do you mean by a critical section? A critical section is a piece of code of a process that accesses a shared resource that must not be accessed by more than 1 thread of execn. 1.a thread is smallest seq of programmed instrns and process is made of many …

Member Avatar for rubberman
0
228
Member Avatar for ravi_14

i made a project using visual studio and opencv ,it worked fine. however later i thought of adding GUI. i googled and found abput QT.some how i managed to include libraries and build paths,when i use **C fucntions of opencv** the program works fine but when i use ***c++ features …

Member Avatar for Ancient Dragon
0
686
Member Avatar for kumarprashant

hi I have a project due this Monday to make an address book. need some help with that.I have some code with me but it is not working. please help me if you can. i have attached a copy of the same and given description below. program description: develop a …

Member Avatar for Bendez Thyna
0
296
Member Avatar for ravi_14

when i try to use undefined object ,i get compiler error but there is no option regarding compiler error.

Member Avatar for deceptikon
0
100