Posts
 
Reputation
Joined
Last Seen
Ranked #123
Strength to Increase Rep
+11
Strength to Decrease Rep
-2
96% Quality Score
Upvotes Received
84
Posts with Upvotes
63
Upvoting Members
44
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
31 Commented Posts
5 Endorsements
Ranked #347
Ranked #176
~191.31K People Reached
Interests
Reading/Music/Cricket/Football/Amateur Astronomy
PC Specs
Windows 7 and Ubuntu 9.10. Using acer aspire 5738 currently
Favorite Tags
c++ x 564
c x 22
java x 7
Member Avatar for NinjaLink

"Write a program that reads in ten numbers to an array. The program then reads the array and displays distinct numbers (i.e. if a number appears multiple times, it is displayed only once)" for example: 1 2 3 4 [B]5 5 [/B]6 7 [B]8 8[/B] 9 1 2 3 4 …

Member Avatar for Nor_492
0
7K
Member Avatar for Agni

Hi, i have seen a lot of ppl say things like, 'this piece of code is more efficient than the other', 'this gives better performance' or 'more efficient memory wise' etc.. but i fail to understand that how in a normal coding scenario can i find out the efficiency of …

Member Avatar for Magee_1
0
3K
Member Avatar for spiriad

Hi, I am trying to make small game , but I am confronting with a problem. I have a function that should add a new button to my form when it's called. The problem is that I don't know how to create a new object (a button, a shape or …

Member Avatar for Itamir
1
3K
Member Avatar for waqas.zafar.125

hey guys ! i am working on a card game .. so far i have printed the cards and then shuffled them .. Now it says that Each player has a stack of cards. At the beginning of the game before dealing, this stack is empty. When dealing the cards, …

Member Avatar for Agni
0
163
Member Avatar for Agni

We have a small team of 5 software developers and we are handling products A & B. Last month we were also handed over products C & D from another team which moved to doing something else. Suddenly we have double the work and same number of people. Though we …

Member Avatar for Agni
0
271
Member Avatar for waqas.zafar.125

hey guys ! i am unable to understand how to implement the function insert at head and insert at tail .. class Book { public: char * title; float price; // constructor for class Book Book () { char* title = new char[20]; strcpy(title,"untitled"); price = 0 ; } void …

Member Avatar for rubberman
1
174
Member Avatar for dreday92

I am having a few compiling errors due to the syntax confusion on some the functions, Im confused to what im doing wrong, I know its a simple solution I've just been looking at this for hours and cant figure it out. //Header File #ifndef BST_H #define BST_H #include <iostream> …

Member Avatar for rubberman
0
250
Member Avatar for ireallyneedhelp

ok guys i really need help my friend asked me to help him with his assignment can help me at least give a guide where and what to do? Accept the month. Accept the name of each staff. (Assume that there are only 5 marketing staffs) Accept the number of …

Member Avatar for rubberman
0
185
Member Avatar for Agni

I have a some libraries which have a lot of common classes but the namespaces are different. Most of the code I was writing could be easily reused by classes in both libraries so after some reading I tried a technique of using the templates to pass namespace. As you …

Member Avatar for Agni
0
123
Member Avatar for ShEeRMiLiTaNt

Hello, I am tryinng to write a program that uses the cin.getline() function to get a users input, but I only need the numbers from this. The problem I am having is when I enter a number then other character it will count the characters after the numbers as numbers …

Member Avatar for Agni
0
144
Member Avatar for soujanya.bhat.184

I am not able to understand the concept of virtual functions. When a member function of base class is redefined in derived class,the redefined function can be used to get desired output. Then why there is a need to use virtual functions? For instance, the following two codes produce the …

Member Avatar for Agni
1
196
Member Avatar for asha12@gmail

what are arrays in c++ programming how to do or what is meant by swaping?

Member Avatar for Agni
0
91
Member Avatar for xxwikkixx

Hey everyone need some help again with finding the min and max from a text file. its my college lab assignment. here is my code till now. #include <iostream> #include <fstream> using namespace std; int main() { ofstream fout; fout.open("Text.txt"); ifstream fin; fin.open("Lab6.txt"); float c; int count = 0; float …

Member Avatar for xxwikkixx
0
1K
Member Avatar for Batcher

New to Python and programming. I want to start with a txt file with different names per line Output a program that will create a directory for each entry in txt file I'm having problems getting txt file values into Python list, and using that as input for directory name, …

Member Avatar for TrustyTony
0
178
Member Avatar for israruval007

I need help designing an automata that accepts the following words "hello" and "hello world" The alphabet includes the english alphabet and numbers. I just need to know how to start designing this automata.

Member Avatar for Taywin
0
153
Member Avatar for smichels

Good Day all! Looking for a little help here. I have to open a file containing a few words, some of which ending in "ed" and print the only the words ending in "ed" back to file. Here is what I have so far. I cannot seem to open the …

Member Avatar for Agni
0
575
Member Avatar for ShEeRMiLiTaNt

I need to write a program that takes in two big integers from the user and puts them into a dynamic array so that we can add them together. It says to use "paper-and-pencil" mehtod meaning to pretty much reverse the dynamic arrays and carry the ones over as you …

Member Avatar for Agni
0
241
Member Avatar for danpe

WORKS: [CODE] LLGroupMgrGroupData* LLGroupMgr::getGroupData(const LLUUID& id) { group_map_t::iterator gi = mGroups.find(id); if (gi != mGroups.end()) { return gi->second; } return NULL; } [/CODE] DOESN'T WORK: [CODE]// static LLGroupMgrGroupData* LLGroupMgr::getStaticGroupData(const LLUUID& id) { group_map_t::iterator gi = mGroups.find(id); if (gi != mGroups.end()) { return gi->second; } return NULL; }[/CODE] Error 1 error …

Member Avatar for neil.a.hudson
0
547
Member Avatar for Scuppery

Ok everyone the object of this game is to simply - answer the post above without saying "yes", "no", or "sometimes" or any variation of them. For example: Do you like rock music? Wrong Answer: "yes or yep, yeah, etc. Correct Answer: "I love rock music, i think it is …

Member Avatar for azareth
0
1K
Member Avatar for Sariscos

Imagine this: You go to your local 7-11 convenience store, and you’re at the counter to buy a coffee. You realize you forgot your wallet or pocketbook in the car and all you have is your phone on you. Your phone happens to be a smart phone with the required …

Member Avatar for Jashandeep
1
485
Member Avatar for Aniqa Shaikh

Hay guys, i wanted to get the code for a very large factorial but i was unable to do so. Now, i had to work and develop the code myself, which i did. This code calculates factorial of numbers uptil 14000. . i havent tried more. But i guarantee this …

Member Avatar for sameershah21
1
624
Member Avatar for n8thatsme

Ok, my problem is that I'm reading from a file 3 values, a last name, first name and salary, for example: Key Bobby 43000 I have an array of objects for each person, so I neeed to read this file and assign the last name, first name, and salary to …

Member Avatar for mike_2000_17
1
4K
Member Avatar for learnersunakshi

[CODE]// Program Dictionary // Proogram that uses linked list to maintain a dictionary #include <iostream.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #include <string.h> #include <ctype.h> class dict { private : struct node { char data[20] ; char m[100] ; int mcount ; struct node * link ; } *dic[22] ; …

Member Avatar for Agni
0
1K
Member Avatar for sachinchandora

i have a error in c graphics "segment exceeds _TEXT 64K" i reduce some lines but i have no solution please help me as soon as possible i want to complete my program as soon as possible please help me some one

Member Avatar for Salem
0
1K
Member Avatar for aquarian

hi all, hop all r fine. i want source code of "Apriori Algorithm for finding frequent itemsets" in c/c++ or any other language. can anyone plz send me that. i'll be realy v thankful.

Member Avatar for Ezzaral
0
1K
Member Avatar for Agni

I have been reading the 'inside the c++ object model' by Lippman and one of the sections has me a little confused. It is the section where the author explains how virtual tables are created and virtual pointers assigned, in the scenario of multilevel, single inheritance. If anyone here has …

Member Avatar for Agni
0
316
Member Avatar for Rimojenkins

I'm getting a segmentation fault at this line. So far, my program has classes. A blahpod with class of songs in them. Then there is the node class. I call the operator= which is supposed to put one pod into another. It looks like so [CODE]bobcatPod bp2( bp1 );[/CODE] That …

Member Avatar for Rimojenkins
0
155
Member Avatar for Agni

Have been reading about the facebook commenting API for a few days now. Sites like Techcrunch have gone ahead and implemented the feature. I tried imagining if it will make sense for a forum like Daniweb to enable facebook commenting ? To me it seemed that it will not make …

Member Avatar for Dani
0
273
Member Avatar for ROTC89

Hi whenever I compile my program, I am getting this as a a error. well.cpp: In function âvoid printmaze(CELL (*)[20], std::string)â: well.cpp:234: error: a function-definition is not allowed here before â{â token well.cpp:416: error: expected `}' at end of input well.cpp:416: error: expected `}' at end of input well.cpp:416: error: …

Member Avatar for ROTC89
0
108
Member Avatar for arjunaw

In a unix pthreads based app I'm working on, I have objects of a particular class (call it class foo) being created in multiple threads. I need a specific public method of class foo invoked at or after 60 seconds of the object coming into existence (it is not imperative …

Member Avatar for arjunaw
0
4K