49,766 Topics

Member Avatar for
Member Avatar for rfrapp

I've written bucket sort, to read a list of numbers from a file, sort them, then write the sorted list to a new file. My program runs through the process just as it should, but whenever a bucket is completely sorted, it doesn't save the changes in the bucket. My …

Member Avatar for rfrapp
0
540
Member Avatar for kirenemook12

Hello everyone I am trying to make a app. witch uses windows that pop-up if a button is pressed. the problem is, i don't know how to make more than one window. Can anyone tell me how to do that? I am using Microsoft Visual Studio 2010 Express, in a …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for capton

Hello, I'm building opencv library with cmake for mingw to be used with qt and i've been able to generate the makefilelist. But when i type **mingw32-make** at the command prompt i get error when it's 44% built. error says: *Cannot export _ZN12_GLOBAL__N_13R)p3aLLEv: symbol not found Cannot export _ZN12_GLOBAL__N_17CmpType3allEv: symbol …

0
155
Member Avatar for cargito

Hi, I have a problem compiling the "pjproject.sln", and I have the following error appearing: "fatal error LNK1104: cannot open file 'dsound.lib'" Build log was saved at "file://c:\Users\SLF101\Desktop\PJ Project\pjproject-2.0.1\pjmedia\build\output\pjmedia_test-i386-Win32-vc8-Debug\BuildLog.htm". Could anyone help me solve that problem? It seems like it does not want to open the "dsound.lib" file everywhere. That …

Member Avatar for Ancient Dragon
0
983
Member Avatar for rendykvalentino.p

when we press the button ,then appear like this private: System::Void textBox1_TextChanged(System::Object^ sender, System::EventArgs^ e) { } after that if we want to appear the caracter like "A" , after press the button , how is the program for that?? thank you before

Member Avatar for tinstaafl
0
89
Member Avatar for AmrMohammed

Greetings As the titles says I wanna know what are versions of C++ other than Standard C++ and what are the differents between those version if any! Second question what is contained in the .exe file I'm using Microsoft compiler "Visual Studio 2010 IDE"? Is it contains the assembly instructions? …

Member Avatar for mike_2000_17
0
901
Member Avatar for Nethran

Hi again! So, I have an object that gets appended to a linked list now. Now I need to have all of that item's data output in a formatted manner - something similar to this: CD Artist CD Title CD Length Track Name Track Length Arist name here Title here …

Member Avatar for Nethran
0
394
Member Avatar for Nethran

Basically, I'm getting an error when I try to append a CD object to my linked list. What error? This one: > First-chance exception at 0x550257aa (msvcr100d.dll) in Programming 3 Course Project.exe: 0xC0000005: Access violation reading location 0xfeeefee2. > Unhandled exception at 0x550257aa (msvcr100d.dll) in Programming 3 Course Project.exe: 0xC0000005: …

Member Avatar for Nethran
0
406
Member Avatar for triumphost

I have a class called Control. All other "controls" inherit from this class. Some controls need a default constructor so that I can assign or construct them later. The classes look like: class Control { private: //All Members Here.. void Swap(Control &C); public: Control(DWORD dwExStyle, std::string Class, std::string Title, ....); …

Member Avatar for triumphost
0
841
Member Avatar for mc3330418

I need to read this into a arrays. 123455 45 67 87 69 98 3456787 67 98 34 54 67 456778 87 76 89 76 34 344568 65 78 76 45 98 56789 98 76 45 34 54 Here is the code I have void getGrades(double exam[], int studentId[]) { …

Member Avatar for rubberman
0
1K
Member Avatar for billionair

I don't what's wrong with this simple piece of code I wrote. It keeps crashing. Output Screenshots: http://i.imgur.com/8xwet8m.png http://i.imgur.com/FXBa8YM.png #include <iostream> #include <stdlib.h> #include <conio.h> using namespace std; int main() { char *strg; cin>>strg; cout << "Hello world!"<< strg<<endl; getch(); return 0; }

Member Avatar for rubberman
0
403
Member Avatar for waqas.zafar.125

i have a problem regarding classes . i have been given two files vector.h and set.h the vector.h file is : #ifndef VECTOR_H #define VECTOR_H class vector{ private: int *array; int max_size; //max size of vector int elements; //total element in vector public: //initializes everything to zero/null DefaultVector(); //initializes the …

Member Avatar for rubberman
0
162
Member Avatar for farhanp

hey guys does any one has idea how to write a program which calculates all the characters in a sentence

Member Avatar for deceptikon
0
195
Member Avatar for nova37

i added libmysql.dll as resource to my project ID_LIBMYSQL RT_RCDATA "LIBMYSQL.DLL" Image view :: http://s18.postimage.org/bcpf2s9jt/Untitled.png now when i try to find it using findresource function , i get error code : 1812 mean resource not found HMODULE hMod = GetModuleHandle(_T("libmysql.dll")); HRSRC hRes = FindResource (NULL, "ID_LIBMYSQL", RT_RCDATA); // RT_RCDATA application …

Member Avatar for nova37
0
337
Member Avatar for ChainedHollow

I need to multiply 2 matrices together using threads to computer each element. Ive been working on it myself but Im stuck at this point and Im getting an error. Here is the code I have. Can someone help in explaining what is wrong here or how to correct it? …

Member Avatar for WannaDoRight
0
3K
Member Avatar for anukavi

Hi I have declared BYTE myKey[10]; and on executing the value stored in myKey is 0x9100 i need to do string compare this value with user defined value (9100) how can i do the comparison? i converted to int int tempkey = (int)myKey[i]; //(have put it in loop based on …

Member Avatar for ravenous
0
8K
Member Avatar for karandeepmalik

I was looking at the possible solution to synchronise a bounded buffer ( like queue) using condition variables and think that we probably need two condition variables to correctly implement the synchronisation, one condition varaible will have a queue where the consumer thread(s) will be waiting to see if the …

Member Avatar for rubberman
0
224
Member Avatar for triumphost

Why do I need a static class member? What are the advantages and disadvantages of it? Is there any way that I can have non-static member fuction without doing anything outside of the class (such as passing an instance)? class Control { private: HMENU ID; HWND Handle, Parent; std::string Class, …

Member Avatar for Ancient Dragon
0
309
Member Avatar for cppfml

This might be (in fact I can probably say it is) a really dumb question but it's been doing my head in since I've been looking at it. First off, I've been looking at C++ for a short time and it's confusing to me more than what Java ever was. …

Member Avatar for deceptikon
0
133
Member Avatar for James19142

I need to modify an object in a QVector. I'm the `[]` operator to point to the object, which is overloaded with a constant and a non-constant version. The problem I'm having is that I don't know how to specify the non-const version, so I get compile errors telling me …

Member Avatar for James19142
0
213
Member Avatar for murnesty

I'm designing a embedded system and we have to oftenly report system fault in different code module. So I decided to create a source file to keep the error log and I'm building a struct for that. So that, every module reporting the error log and store in a data …

Member Avatar for mike_2000_17
1
258
Member Avatar for Tujianis

Okay, so I am trying to figure out how to refernce an external file for a username and password This is a little game i am trying to make and i need help with this part When prompted, the user types in their username and password to register i want …

Member Avatar for NathanOliver
0
151
Member Avatar for helixkod

I have an XML file that is in this format: <root> Test string <Signature> WvZUJAJ/3QNqzQvwne2vvy7U5Pck8ZZ5UTa6pIwR7GE+PoGi6A1kyw==</Signature> </root> I was able to produce the SHA256 and produced a string by using the following: string CalculateSHA256(const string& input) { SHA256 hash; string digest; StringSource _(input, true, new HashFilter(hash, new HexEncoder (new StringSink(digest)))); return …

Member Avatar for plenty.groover
0
409
Member Avatar for daniel1977

I am having a hard time trying to run this excercise. This works great up until the direction to declare the member functions Once declaring romanType member functions protected: ___________________ class romanType class romanType { protected: void storeRomanInput(char RomanNum[25]); void convertToDecimal(char storage[25]); void printAsRoman(); void printAsDecimal(); }; I am unable …

Member Avatar for RonalBertogi
0
247
Member Avatar for Superfreak3

I'm looking for some C++ code or direction in writing some to close an app if it detects another instance running. Our little update utility writes a log file, which I'm thinking of using as the clue. I was thinking that before the second instance attempts to write to the …

Member Avatar for RonalBertogi
0
219
Member Avatar for k_arjun

When I try to find all subsets of a set using the following code, the iterator vit in the inner for loop of the getPowerSet function misses out on one element certain times. Can anyone tell me why? #include<iostream> #include<vector> #include<set> using namespace std; vector< set<char> > getPowerSet(const set<char> &given); …

Member Avatar for k_arjun
0
241
Member Avatar for disjes

Hi, i've got a list with nodes with this structure: private: char namefield[30]; char tam[3]; char type[1]; }; i want to find and element with the find function from alghorithm class but i want to do it with the namefield property of the item, the find function has an item …

Member Avatar for ravenous
0
152
Member Avatar for Man1919

Hi! I am Working on TimeCode Slate Project (Working with: Arduino Uno Rev. 3), Now I working on the led display(8 digit 7 segment) code. I'm trying to modify this timecode display code from: "Dan Thompson - Timecode Based Stopwatch" http://danthompsonsblog.blogspot.co.il/2008/11/timecode-based-stopwatch.html to work with led display (Originally, the code from …

Member Avatar for Man1919
0
403
Member Avatar for ankit.4aug

Hello..i tied a lot but i am not able to get the answer.. i am writing a program in which user input the array with space as delimiter eg- 4 3 5 2 3 so this value should be stored in array as a[0][0]=4 a[0][1]=3 a[0][2]=5 a[1][0]=2 a[1][1]=3 a[1][2]=0 please …

Member Avatar for tinstaafl
0
501
Member Avatar for krissmwa05

you will write a program to solve linear equations given in upper triangular form. There are N equations, and N unknowns. This is equavalent to the following matrix multiplication [A][X]=[B], where A is a square matrix (N by N), X and B are vectors with size N. Back Substitution: First, …

Member Avatar for krissmwa05
-2
243

The End.