49,757 Topics
| |
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 … | |
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) … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
Hello; can any 1 explain to me how to find the miniumum spanning tree for a graph ? see this graph as an example : | |
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 … | |
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 | |
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) … | |
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 | |
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) … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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' … | |
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 … | |
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 … | |
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] | |
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 … | |
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 … | |
I wrote the following code, so that whenever an item from the list is deleted, the file associated with the name of the items below the delted items get updated. But the program isn't working, i have been reviewing this code for last 2 days but worthless. Please help. void … | |
i have a combo box control in a INTERNET EXPLORER TOOLBAR. the backspace key of keyboard works fine if this combobox is made dropdown enabled But if i disable the drop down feature of this combo box then backspace doesn't work . Moreover if i add a EDIT CONTROL instead … | |
Hi friend, I want to use connector for mysql data base. I am follow this page [url]http://dev.mysql.com/tech-resources/articles/mysql-connector-cpp.html[/url] But it seems hard . Is there any other tutorial present. Please let me know. | |
[CODE]#include <iostream> #include <string.h> #include <ctype.h> using namespace std; void RemoveSpaces(char *str); void RemoveVowels(char *str); int main() { char clear[256]; char cipher[256]; int x,i; int opt; cout<<"Encryption (1) 0r Decryption (2):"<<endl; cin>>opt; cin.ignore(); if(opt==1) { cout<<" Enter a string(sentence):"; cin.getline(clear,sizeof(clear)); RemoveSpaces(clear); x = strlen(clear); for(i=0;i<=x-1;i++) { cipher[i] = clear[i]+3; } … | |
I am trying to create a program that lets you enter an account number and it tells you it is valid or not based if it is in the list. it needs to be a single-dimensional array . this is what i have so far but it does not work. … |
The End.