51,593 Topics

Member Avatar for
Member Avatar for dreday92

For some reason I keep getting the errors: "cop4530::BST<int>::buildFromInputString(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)", referenced from: "cop4530::BST<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::buildFromInputString(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)", referenced from: Im positive that it has to do with something with the function that that begins at line 114, please help.

Member Avatar for RonalBertogi
0
283
Member Avatar for Mbokodvo

Guys i need your help i just want u to help me create a simple real life project with c++,i've just finished learning it and i passed it,so i would like to see it work in real life,besides i would also like to see my programs work out of code …

Member Avatar for ddanbe
0
285
Member Avatar for NikkiStars

# Pseudo Code # Hello, I have just joined a new class called "Programming Concepts". This subject is still very new to me. I am having trouble understanding what I need to do. If somebody could explain to me what my assignment means, I would really appreciate it. Providing some …

Member Avatar for NikkiStars
0
335
Member Avatar for stacey.rae.35

I need help running my program this is what it asks me for "Write a program that asks the user for the name of a text file. The program should display the first 10 lines of the file on the screen. If the file has fewer than 10 lines, the …

Member Avatar for nmakes
0
231
Member Avatar for LostStranger

A newb programmer here I have a project involving pedestrian simulation I'm planning to use libpedsim.dll in python with Ctypes but so far I cannot make the functions working Can anyone point out how to make use of this DLL? This is the class documentation: http://pedsim.silmaril.org/documentation/libpedsim/latest/classPed_1_1Tscene.html This is the link …

Member Avatar for vegaseat
0
467
Member Avatar for tumblinmonkeym

I am trying to implement a priority queue with an unsorted array and hit a wall when I received a Segmentation fault:11. I used gdb and got the error: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000 0x00000001000017fa in Item<std::string>::setKey (this=0x0, k=3) at PriorityQueueArray.h:27 27 …

Member Avatar for deceptikon
0
872
Member Avatar for AmerJamil

When im using fstream.h its giving an error with using namespace std, how ever when i use simple fstream without .h , it is not giving error but not reading the file, How can i use fstream object using fstream.h header file along with using namespace std? Your urgent response …

Member Avatar for deceptikon
0
982
Member Avatar for Melly3

Hi, I'm working on classes with pointers. I do have a main function that calls this. This program compiles. But the input from the user isn't getting passed to the other functions. The user_input function should take the response and pass it to the create_posting then it is outputted to …

Member Avatar for RonalBertogi
1
226
Member Avatar for tomz6
Member Avatar for Banfa
0
997
Member Avatar for owenransen

I want to port some graphics applications in C++ which compile to Windows Executables to run as WEB apps. I don't want to throw away all the code I've written in C++, so it seems to me that Microsoft Azure would be prefect. My idea is that I learn to …

Member Avatar for LastMitch
0
164
Member Avatar for James19142

I'm writing classes for widgets on a ui. While planning what I would do, I realized majority of the of the classes would look very similar. What I decided to do was to use a macro that takes a few parameters to define the similar parts of the class bodies. …

Member Avatar for James19142
0
815
Member Avatar for Akshay nand

Lab Assignment 1 - A Simple UNIX Shell Objectives: The objective of this assignment is to understand the workings of a command-line interface (CLI) and to obtain a working knowledge of process forking and signalling. Assignment: In this assignment we will build a command shell in stages. Our command shell …

Member Avatar for deltascrow
0
335
Member Avatar for huang0521

Hey guys I have some problem in my c++ program hope you guys can give a hand -------------------------------------------------------------------------------------------------------- do printf("Please key in the number of passenger >>"); scanf("%s" , &no_passenger_check); if (strlen(no_passenger_check)>3) { repeat = 1; }else { if (isdigit(no_passenger_check[0,1,2])) { repeat = 0; } else { repeat = 1; …

Member Avatar for deceptikon
0
214
Member Avatar for ahsan38

hey guyz i was trying to make a program for insertion sort but its not working please someone help... #include<iostream> #include<conio.h> using namespace std; main() { int i,m,num[5]; cout<<"Enter Integer Values"; for(int a=1;a<=5;a++) cin>>num[a]; for(int j=2;j<=5;j++) { i=1; while(num[i]>num[j]) i=i+1; m=num[j]; for(int k=0;k<=j-i-1;k++) { num[j-k]=num[j-k-1]; } num[i]=m; cout<<num[i]<<num[j]; } getch(); …

Member Avatar for deceptikon
0
166
Member Avatar for waqas.zafar.125

hey guys ! i have a problem relating to linked lists .. Make a class called Card. Each card is represented by a suit and a rank. You can keep both as strings. Implement getters and setters for the Card class as well as a print function. A 7 of …

Member Avatar for tinstaafl
0
201
Member Avatar for triumphost

I'm trying to write a cout formatter that uses the comma operator and insertion operator. I wasn't able to get that to work so I decided to write it similar to std::boolalpha. when you use `std::boolalpha`, it is able to change 0 values to true and false and you can …

0
190
Member Avatar for coolbeanbob

I am trying to get the program below to work. I keep getting the error below, and I can't figure out why??? Derived.obj : error LNK2001: unresolved external symbol "public: virtual class Other * __thiscall Derived::add(int,int)" (?add@Derived@@UAEPAVOther@@HH@Z) #ifndef _BASE_H_ #define _BASE_H_ #include "Other.h" class Base{ public: virtual Other *add(int x, …

Member Avatar for Moschops
0
242
Member Avatar for CHOCHOCHO

This program reads in some numbers then outputs the numbers, low to high, by using a bubble sory. I need some help to start how to do the bubble sort on a linked list. Here is what i have so far. .h file #include<iostream> #include<fstream> #include<cstdlib> using namespace std; struct …

Member Avatar for Schol-R-LEA
1
1K
Member Avatar for kux

ok, I've checked the forum and I don't think this topic was touched. What I would need is an open-source or at least free static analysis tool for C++ code. Does anybody have any suggestions? I mean, searching the web C++ lacks A LOT at this chapter, compared to Java, …

Member Avatar for IssamLahlali
0
255
Member Avatar for tehsmartniss

I would be very interested to read some educated speculation concerning why there is no c++ standard way to handle unbuffered input, e.g. something like getch + kbhit. For literally decades, innumerable c++ console programmers have sought a way to simply implement, "Press any key to continue..." The fact that …

Member Avatar for Schol-R-LEA
1
1K
Member Avatar for liphoso

Hope this is the correct place to put this question. i am new to linux and am runnning ubuntu 12.04. I just installed Netbeans 7.0.1 and xampp 1.8.1, both running on ubuntu. i would like to make a c++ program that uses the MySql database that comes with xampp. I …

Member Avatar for pritaeas
0
95
Member Avatar for tayyabatiq

Hi I'm coding in C++ XAML to make a windows 8 store app. Now, there are two objects in my main window: a textBox and a textBlock. What i want to do is that the user will write an equation in the textBox and the textBlock will show all the …

0
152
Member Avatar for gelmi

here's my problem, i wanted to connect void 1(); to void 2() because void 1() this is where i put the code for the employee's id and name void 2() this is where all the computation goes on.. hmm..there is gonna be a time in and time out which are …

Member Avatar for tinstaafl
0
115
Member Avatar for vindy1099

I've been working on functions which can perform arithmetic on arbitrarily large unsigned integers for sometime now. I've got add, subtract, multiply, and division with remainder all working but the division function is too slow. I would like to implement Newton-Raphson division but am having a hard time finding example …

Member Avatar for rubberman
0
307
Member Avatar for silvercats
Member Avatar for nmakes

I had a doubt in one of the usages of typedef. I want to know the meaning of this line: typedef char Text[80]; What is the meaning of this line and what does it do? Does it create an array of typedefs relating to char, or does it mean "Text …

Member Avatar for deceptikon
0
579
Member Avatar for VernonDozier

I have developed a program for a word game that reads from a text file containing a list of all legal English words, then stores those words in an array used by other parts of the program. The program works, but I am not very happy with the word list …

Member Avatar for Saumil11
0
4K
Member Avatar for tomz6

(C++ question) I need to be able make a compiled code (like a .dll?) which other programmers can use on linux, win,, mac, etc. The compiled code would simply do calculations and spit out an answer in memory. I need it to have certain functions that they can easily call …

Member Avatar for rubberman
0
182
Member Avatar for tomz6

Are there any other good/reliable hashs which are smaller than MD5 and faster? (for purposes of checking for file corruption - not for security purposes) (preferably 16bit?)

Member Avatar for rubberman
0
316
Member Avatar for iEpic

I hate being a perfectionist it's driving me crazy. I can get it to resize to the words, but when I replace them with small 3 letter words, the design messes up and everything gets out of place. I'm a beginner and you guys are probably going to laugh at …

Member Avatar for nullptr
0
2K
Member Avatar for kevin.bryant.3701

I am trying to create hashing function the algorithm requires me to take each letter of the string and converting it to ascii, multiply it by a number based on its position in the string (for example Input is STACK; ascii for S would be 344 multiply that value by …

Member Avatar for tinstaafl
0
194
Member Avatar for tomz6

What is the most efficient (fastest) way to load data from a file on HDD to RAM? (which would allow to only load a limited section of that file - eg. load only half of the file etc.)

Member Avatar for mike_2000_17
0
305
Member Avatar for SiDZMsG

Hi I am writing a program using C++ to give a menu of 25 HTML file names. The user will have to select a file name and then the file should be either displayed as text (scrollable by page) or in the default HTML browser. Could someone help me out …

Member Avatar for Moschops
0
112
Member Avatar for tensity

I was wondering how one might go about the following: I am reading in data from a file using `getline(inputFile, tempString)`. Some of this information has to stay in string format, and other information must be converted to floats, ints, etc. I anticipate there being a problem if there is …

Member Avatar for deceptikon
0
158
Member Avatar for kgizo

Hi I am using Mac OS X and I just installed eclipse but it just cant seem to read my headers. I saw a coulple of manuals on the internet but none of them seems to work, I need to know what directory should I enter in the GNU C++ …

0
78
Member Avatar for teha.sani

please do help me with this programming problem as i found it difficult. develop a c++ program to accept the number of km to travel.calculate the hours need to travel the distance. assume to travel 70km takes 1 hour. if the required hour is higher than 2 hours then for …

Member Avatar for Lucaci Andrew
0
162
Member Avatar for Taras20

hi everyone :) what i'm trying to do is to check if word in a string has numbers in it for example: if i enter string of one word "he11o" i want to show error message that says "One or more characters are numeric! Please re-enter the word!" and if …

Member Avatar for nullptr
0
419
Member Avatar for tomz6

Hi, I was just wondering if anyone can recommend a easy to use library that will work with DirectX (on top of the back-buffer) for things like creating menus, popups, tickboxes, drop-down boxes, tab-menus, etc..? Thanks in advance.

Member Avatar for mike_2000_17
0
214
Member Avatar for eric.inclan.3

Hi all. I've been learning programming from the web for almost 2 years now and this'll be my first post ever on DaniWeb (or any forum ever). I have no experience with parallel programming but read about the simplicity of working with OpenMP, and that's what I need. Something that …

Member Avatar for eric.inclan.3
0
518
Member Avatar for MRehanQadri
Member Avatar for jborden

I need to write an algorithm for finding the maximum weighted independent set of a graph, G. Any idea of where I should start?

Member Avatar for deceptikon
0
146
Member Avatar for craig.durnin.1

This is quite complicated to explain, so I will do my best, sorry if there is anything I missed out, let me know and I will rectify it. My question is, I have been tasked to draw this shape, ![Crescent Moon](http://www.learnersdictionary.com/art/ld/crescent.gif) This is to be done using C++ to write …

0
85
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
184
Member Avatar for tomz6

Is it possible to store data to CPU memory, if so how much memory can I store and how? Say I wanted to store an array, about 6MB in size?

Member Avatar for rubberman
0
242
Member Avatar for gelmi

Hi, i just don't know why does this program is wrong, the problem is if I choose 1 and 3 . after I choose choice no.1, I enter the employee id and name nothing happens after that, same as choice no.3 which I will enter the employee id to find. …

Member Avatar for rubberman
0
167
Member Avatar for tanmay.majumdar2

#include <cstdlib> #include <ctime> #include <iostream> #include<conio.h> #include<string.h> /* time */ using namespace std; char square[10] = {'o','1','2','3','4','5','6','7','8','9'}; void box(); void player1_won(); void player2_won(); void fu(); int main() { srand((unsigned)time(NULL)); int abcd[45]; char type[34]; string data[56]; again: string x[3], z="sayTanmayRoxx", p; char f, g; int a; int d; cout<<"enter password\n"; …

Member Avatar for rubberman
0
219
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
268
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
189
Member Avatar for tomz6

How can I import a font file and get the pixel information of the letters so I can make my own custom text drawing function? I basically have a pixel surface (a 2D array) and I want to draw the text to that array.

Member Avatar for rubberman
0
125
Member Avatar for elmousa

I am in the process of writing a program for our department as follows: We have about 40 field directorates in addition to the central department. Each field directorate has its own LAN and is connected to the central department through our WAN. I need to write a program that …

Member Avatar for elmousa
0
255

The End.