- Strength to Increase Rep
- +11
- Strength to Decrease Rep
- -2
- Upvotes Received
- 84
- Posts with Upvotes
- 63
- Upvoting Members
- 44
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
- Interests
- Reading/Music/Cricket/Football/Amateur Astronomy
- PC Specs
- Windows 7 and Ubuntu 9.10. Using acer aspire 5738 currently
"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 … |
|
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 … |
|
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 … |
|
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, … |
|
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 … |
|
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 … |
|
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> … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
what are arrays in c++ programming how to do or what is meant by swaping? |
|
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 … |
|
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, … |
|
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. |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
[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] ; … |
|
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 |
|
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. |
|
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 … |
|
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 … |
|
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 … |
|
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: … |
|
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 … |