49,761 Topics

Member Avatar for
Member Avatar for sfurlow72

When trying to run, the compiler tells me that I cannot access the private data members. I'm just curious as to what's causing this error. Here's my class declaration: [CODE] #include <iostream> #include <string> using namespace std; #ifndef SALARY_H #define SALARY_H class Salary { public: const int getDepNum(); const int …

Member Avatar for sfurlow72
0
135
Member Avatar for nik2012

Hello. I am learning C++, and I am a little stuck. Right now, I'm working on pointers. The problem I'm working on requires sorting an array of structures, using pointers instead of array indices, using a selection sort. My code is not working, and I can't quite figure out why. …

Member Avatar for nik2012
0
1K
Member Avatar for exdx

hey, i am a beginner and we got stuck with my algorithm homework assignment on radixsort. question is followed: struct listnode *radixsort(struct listnode *data, int a, int k) which takes a linked list of unsigned long integers, each less than a^k, and sorts them by k rounds of bucketsort with …

0
42
Member Avatar for Fess

Me and my team are working with arduino devices for a project and we need a way to talk and respond from arduino to visual studios. any coding out there to work on this because i can not seem to find any myself

0
142
Member Avatar for tom12

[CODE]void RemoveVowels(char *str) { int i = 0; int lenght = strlen(str); for(i=0;i < lenght-1;i++) { if (str[i]=='a' || str[i]=='e' || str[i]=='i' || str[i]=='o' || str[i]=='u' || str[i]=='A' || str[i]=='E' || str[i]=='I' || str[i]=='O' || str[i]=='U') { str[i]=' '; } } } [/CODE] Hey guys having trouble trying to remove …

Member Avatar for tom12
0
86
Member Avatar for emreozpalamutcu

I'm trying to make a little disk cleaner program and I couldn't figure out how to display the results of scanned directory on list view tool on windows form application. I have a 3 columns and these are File Name, Folder Path and File Size. I want the program to …

Member Avatar for Tumlee
0
189
Member Avatar for Cosa

I am having trouble devising a method to multiply 2 matricies that are formed by dynamic one dimensional arrays, for this case i just used matrix1 and matrix2 To access elements that are on rows 0 to n-1 in either matrix i have to use this method: ((rows - 1) …

Member Avatar for kabultanha
0
4K
Member Avatar for cryonize

Hello! I have this problem with creating a linked list inside a linked list. Think of it as recording a list of customers, and at the same time, recording a list of items they bought individually. I tend to think that I might lose the head node and it's probably …

Member Avatar for Lerner
0
298
Member Avatar for nine9hours

Hi. I am a beginner and i have been facing this problem since Monday. I made a QMainWindow with name window and added an action in it. So when a user clicks the action, the QDialog dialog is displayed. In dialog i take input from user and then return it …

0
179
Member Avatar for Labdabeta

How exactly do you use a glConvolutionFilter2d() call? I know about convolution filters and kernels, but am not sure exactly how to implement them. Just a simple example with say... a gaussian blur, would be helpful.

Member Avatar for Labdabeta
0
133
Member Avatar for Emfemmi

Hello i am working on a little project called an [B]Accociation[/B] class. It is a bi-direction association, i.e. if "dog" is associated with "canine", then automatically "canine" is also associated with "dog". The core of the class is two map objects, a left-to-right and a right-to-left map. Here is a …

Member Avatar for L7Sqr
0
203
Member Avatar for newbie1234

j=h(a||b) h= pesudo random function, a and b id 128 bit key. 1. What i understand is a or b and give this as a input to h. That will be output. Is it like that? 2. and i want to know that how can i store value 128 bit …

Member Avatar for Banfa
0
94
Member Avatar for Zay

Hello; can any 1 explain to me how to find the miniumum spanning tree for a graph ? see this graph as an example :

Member Avatar for Dmitry74
0
181
Member Avatar for CombatJ

I am trying to experiment with C++ to make the command prompt function like MatLab or Octave. This is a practice file I've been doing so I could pass functions as parameters to other functions. My problem is with this function call found in line 36 [CODE]compute(gset[function-1], input);[/CODE] This is …

Member Avatar for CombatJ
0
136
Member Avatar for jonnyboy12

Hello all. I am trying to convert a c document to c++. I requires that i use the out word like this. [CODE] if (executeCommand("QUIT", out response)) [/CODE] is there and out for c, or a better way that i'm unaware of. Thanks all for your time. bye

Member Avatar for Ketsuekiame
0
167
Member Avatar for rrrose16

please find what error in this program.while run it wont display the output #include<iostream.h> #include<fstream.h> #include <stdio.h> #include<conio.h> #include <sys\stat.h> class file { private: int i; int alphabet; int space; public: void alphabets(); void spaces(); }; void file::alphabets() { alphabet=0; fstream f; char s; f.open("NNEWFILE.TXT",ios::in|ios::app|ios::binary); f.get(s); while(s!=EOF ) { if(i>63&&i<91||i>96&&i<123) …

Member Avatar for ravenous
0
178
Member Avatar for jonnyboy12

Hello all. I am trying to convert a c document to c++. I requires that i use the out word like this. [CODE] if (executeCommand("QUIT", out response)) [/CODE] is there and out for c, or a better way that i'm unaware of. Thanks all for your time. bye

Member Avatar for ravenous
0
213
Member Avatar for buckeyemike

You have been contracted by a small college named CSU that would like for you to implement a custom software system for managing students data. As a prototype you decided to show them a menu driven example. Your menu driven example has the following features: A) Show/Edit student information B) …

Member Avatar for darthstewie
0
3K
Member Avatar for modaresi

Here is the program that I want to create: Calculate the grade point average for a student whose information is stored in a file named prog4Data.txt. The file contains the following information: line 1: student’s name in format First Name Middle Name (optional) Last Name – names are separated by …

0
87
Member Avatar for Labdabeta

I understand that data on computers can be compressed (I see it all the time with zip files and jpegs) but I was wondering just how compression works. Thinking it through, if you data is represented by 1s and 0s then it can be corresponded 1 to 1 with a …

Member Avatar for Labdabeta
0
245
Member Avatar for Zssffssz

My school has banned any system call (I even brought my own copy of command.com and cmd.exe) [B]but[/B] FreeDOS's FreeCOM still works (very well at that). Is there a way to make it that when I call the system function it makes the call to FreeCOM (Whitch will be bundled …

Member Avatar for Zssffssz
0
125
Member Avatar for NinjaLink

In this Quicksort algorithm, it uses the pivot in the first location of each list. I am having difficulty understanding how to do this algorithm. When I look at examples online, and work out the problem(s) myself, it seems like the book does it differently, and I'm not sure what …

Member Avatar for NinjaLink
0
139
Member Avatar for jhey_2oo5

HELP me to make this program, it's so hard to understand anyone can help me to make a program?? PLEASE!!! Using an appropriate definition of listnode, design a simple linked list class with only two member function and a defult constructor: void add(double x) boolean isMumber(double x) LinkedList(); The add …

Member Avatar for toimelin
0
248
Member Avatar for toimelin

Hello I have a problem with a part of my binary heap i am building for my a* (pathfinding) project. The program crashes on this line with debug assertion failed message, expression: (_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)): [code=c++]Comparable temp = theHeapsArray[hole];[/code] I have tried creating my heap with integers and it worked. But when …

Member Avatar for toimelin
0
114
Member Avatar for tom12

Hey Guys im looking to remove vowels, im having trouble trying to remove them, any tip or help i would appreciate it thanks. [CODE]void RemoveVowels(char *str) { int x =0; int i = 0; int lenght = strlen(str); for(i=0;i=lenght-1;i++) { if (str[i]=='a' || str[i]=='e' || str[i]=='i' || str[i]=='o' || str[i]=='u' …

Member Avatar for Ancient Dragon
0
103
Member Avatar for ambinh

I need some help in 3 files of code from a check-out program that I am playing with. I think I forgot to declare some variable, and some weird syntax with semicolon. Text file contain the info: 4101 BRAEBURN_REG 1 0.99 101.5 4021 DELICIOUS_GDN_REG 1 0.89 94.2 4020 DELICIOUS_GLDN_LG 1 …

Member Avatar for ambinh
0
158
Member Avatar for dlmagers

I am trying to put a 'Invalid' statement in my code and not sure how to do this. Could someone please help me with this? Thank you in advance. Here is my code: [code]#include <iostream> #include <iostream> #include <cctype> // is needed for toupper() #include <cstdlib> // is needed for …

Member Avatar for DeanMSands3
0
141
Member Avatar for man0987

is the following c++ code for printing the ASCII value of a number correct? [CODE]#include<iostream.h> #include<conio.h> void main() { int a=10; char ch[10]; ch=a; cout<<ch; getch(); } [/CODE]

Member Avatar for Tumlee
0
198
Member Avatar for SAM2012

Hi, I have used this [CODE]#using <System.dll> using namespace System; using namespace System::Collections::Generic; using namespace System::Linq; SortedList<double, String^>^ slist = gcnew SortedList<double, String^>();[/CODE] in one program its working well. But Now when I pasted the same code with all given headers in second program its not being identified there. Errors …

Member Avatar for SAM2012
0
819
Member Avatar for nyxxie

struct looks like this: [CODE] struct ListNode; typedef ListNode* ListType; struct details { char first_name[20]; char last_name[20]; int start_number; int end_number; }; struct ListNode { details data; ListType next; }; ListType list = NULL; ListType head = NULL; ListType * PointerToHead = &head; [/CODE] I have a circular linked list …

0
151

The End.