49,761 Topics

Member Avatar for
Member Avatar for NoUserNameHere

linked lists? I recently started learning about it and it is really confusing. What tutorial would you recommend?

Member Avatar for Narue
0
109
Member Avatar for pseudorandom21

Hello, I would like to use the QT LGPL version with my software, but I'm really not sure what I'm allowed to do with it. The license is very confusing. I'm hoping I can dynamically link to some QT DLLs and use them without too much GNU-tape. What other requirements …

0
74
Member Avatar for naveentiptur

Can anyone help me in parsing multipart foorm data.. Is there any third party lib or anyone has written some code??? waiting eagerly...

Member Avatar for GorelovGrigory
0
110
Member Avatar for stereomatching

I have some problems about promotion traits [code] template<typename T1, typename T2> class Promotion; template<bool C, typename Ta, typename Tb> class IfThenElse; template<typename Ta, typename Tb> class IfThenElse<true, Ta, Tb> { public : typedef Ta ResultT; }; template<typename Ta, typename Tb> class IfThenElse<false, Ta, Tb> { public : typedef Tb …

Member Avatar for stereomatching
0
163
Member Avatar for jeffpro

Hey guys, I'm looking for a way to obtain an SSD serial number and I'm not interested in the volume serial number. Thanks in advance, Jeff

Member Avatar for Clinton Portis
0
213
Member Avatar for Labdabeta

Can somebody help me, I wish to learn OpenGL and I don't understand how to set it up. I am using a windows XP machine with Code::Blocks 8.2 and MingGW. How do I get OpenGL working?

Member Avatar for Labdabeta
0
461
Member Avatar for jason316

When I run it starts with a junk value in the first node. I can't get the getValue function to work properly either I get error that says to few arguments when I try to call it in main. Also the minValue and maxValue doesn't output anything and I tried …

Member Avatar for VernonDozier
0
291
Member Avatar for toferdagofer

This is a mastermind game. I was trying to make sure that my twoD array was beinga ssigned right by printing it out real quick before i use it to draw a board in the console. For some reason im gettin these errors and i dont even have a clue …

Member Avatar for pseudorandom21
0
181
Member Avatar for kimkim0513

the program should check if all [U]even [/U]integers from [I]low [/I]to [I]high [/I]can be written as the sum of two prime numbers the lower limit [I]low [/I]will be greater than 2 the upper limit [I]high [/I]will not exceed 10000 assume both inputs for [I]low [/I]and [I]high [/I]are even if all …

Member Avatar for TrustyTony
0
248
Member Avatar for UltimateKnight

I saw a code that had <conio.h> and the whole code is working nice but this line seems to be the error. I know that this is old one and the .h format is replaced with using namespace but still I get an error. What is the problem? Maybe the …

Member Avatar for UltimateKnight
0
156
Member Avatar for gretty

Hello I have a Container class that will allow me to store & retrieve elements from it easily by using the member variables of the elements as their key/identifier. My problem is I am tring to store a pointer to an objects member variable, but I get a compiler error. …

Member Avatar for rubberman
-1
165
Member Avatar for goocreations

Hi all. I have detected something that I can't explain, and hope someone can help me. I have 2 functions for allocating and de-allocating arrays: [CODE]char **c; void allocate() { char **c = new char*[1000]; for(int i = 0; i < 1000; i++) { char *g = new char[10000]; for(int …

Member Avatar for rubberman
0
140
Member Avatar for CrazyMisho

Hello I try to make one linked list to double linked list but i have some probems with this .Can somebody help me? This is yhe the linked list: [CODE]typedef struct ns { int data; struct ns *next; } node; node *list_add(node **p, int i) { node *n = (node …

Member Avatar for rubberman
0
137
Member Avatar for jason316

I am having a compiler error that causes a screen to pop up that says break or continue. I know it is something wrong with my program but I am at a lost as to what it is. I was just trying to test the first function as you can …

Member Avatar for rubberman
0
250
Member Avatar for FujiFilm

I haven't programmed in sometime and am rusty. I was never an expert either. I know my code has a simple error but I can't figure out what it is. I was practicing coding when I couldn't determine why the class constructor wasn't working as intended. #include <iostream> using std::cout; …

Member Avatar for rubberman
0
139
Member Avatar for iamuser_2007

i see this code in this thread, i want to know how to get input by user or from file in this code. for example this list how to use it as input in this code. i don't know how to modify and how to use it. Daniweb thread reference …

Member Avatar for iamuser_2007
0
188
Member Avatar for daianahoney

[code=c++] int main() { Ferma *f[20]; int i=0; int e=0; do { cout<<"Alegeti optiunea:\n"; cout<<"1.rata\n" <<"2.gaina\n" <<"3.porc\n" <<"4.vaca\n" <<"0.iesire\n"; cin>>e; switch(e) { case 1: f[i]=new Pasari("rata"); //error at this kind of assignement i++; break; case 2: f[i]=new Pasari("gaina"); i++; break; case 3: f[i]=new Mamifere("porc"); i++; break; case 4: f[i]=new Mamifere("vaca"); …

Member Avatar for daianahoney
0
263
Member Avatar for daianahoney

Hello forum. I cant figure out how to overload the '+' operator or maybe theres another error? Im posting from phone so excuse the slopyness. Thanks! [CODE]#include <iostream> #include <string.h> #include <ctype.h> using namespace std; class Ferma { public: static int nr_rate; static int nr_gaini; static int nr_porci; static int …

Member Avatar for daianahoney
0
234
Member Avatar for pseudorandom21

For simulating mouse movement on windows would it be better performance-wise to move the cursor to absolute coordinates or to move it relative to it's previous location? Obviously if moving to an absolute location each pixel in between must also be reached.

Member Avatar for pseudorandom21
0
352
Member Avatar for eman 22

I want to sort array of int, strings or any data type. Therefore I decided to use comparable array as an input to my sort function. But I get an error when I using it. Comparable arr[]; the compiler says "comparable is undeclared identifier". I think I must include specific …

Member Avatar for cppgangster
0
291
Member Avatar for custurd122000

I have to modify the myqueue and mystack templates and make a new class called myerror in order to make the main.cpp work, im getting countless errors tho in the main.cpp Here are my errors [code] main.cpp: In function ‘int main()’: main.cpp:52: error: no matching function for call to ‘MyStack<double>::MyStack(int)’ …

Member Avatar for jonsca
0
283
Member Avatar for Jsplinter

I am using a map in the standard way. It holds keys and values and sorts them by key and works wonderfully. However, after I am through adding to the map, I need to rank the keys based on their associated values. What is the best solution? A) Take map<myKey, …

Member Avatar for mike_2000_17
0
4K
Member Avatar for guvenc

Hi, I need to use the libraries of a commercial solver NOMAD in my C++ code. I got error LNK2001 error. I have #include "nomad.hpp". In the NOMAD handbook, the following is written. If you are using Visual C++, your programs will not link with this version of the library …

Member Avatar for guvenc
0
355
Member Avatar for chintan_1671

[CODE] // mainfrm.h enum { logAll = 0xff }; void Log(int nIdx, LPCTSTR lpText, int nType = logAll, LPCTSTR lpDeviceName = NULL); //SesLog.h int m_nDeviceID; CString m_strDeviceName; // SesLog.cpp #include "Mainfrm.h" #include "SesLog.h" void CSessionLog::Log(LPCSTR lpText) { if(m_pParent) m_pParent->Log(m_nDeviceID, lpText, logAll, m_strDeviceName); [/CODE] error LNK2019: unresolved external symbol "public: void …

Member Avatar for Narue
0
285
Member Avatar for miguelsan

Hello I have a question regarding the function length(). I want to find out the length of the string that is inputted by the user. When I use the length() function it only counts the characters from the first word. Can somebody please take a look at my code and …

Member Avatar for Narue
0
165
Member Avatar for kimkim0513

this is an assignment homework I have defined a structure X.... [CODE]struct X{ string name; char grade; }; [/CODE] here are the questions a) Declare r as a variable of X, s as a pointer variable to X and w as a pointer variable to a pointer of X. [CODE]X …

Member Avatar for Narue
0
148
Member Avatar for something_techy

Hello, I am trying to read exact 2 bytes from binary file, and transfer it to int, whatever is it 2 or 4 bytes. Atm on my computer is 4 bytes. So I have two bytes into four bytes scenario. I am using this code [CODE]ifstream in_stream; in_stream.open("test.dat", ios::binary); streamoff …

Member Avatar for Narue
0
301
Member Avatar for jimmymack

[CODE]// student.cpp - Script 9.7 #include <iostream> #include <string> // Declare the Person class. class Person { public: Person(std::string theName); void introduce(); protected: std::string name; }; // Declare the Teacher class. // Teacher inherits Person. class Teacher: virtual public Person { public: Teacher(std::string theName, std::string theClass); void teach(); void introduce(); …

Member Avatar for jimmymack
0
131
Member Avatar for Rocker Gang

I am having a network class and a dialog class.I have to send the data recieved in network class to dialog class but not direcly i.e it should not be tightly coupled with my dialog. Help me out..............

Member Avatar for Ancient Dragon
0
130
Member Avatar for munitjsr2

[CODE] #include <iostream> #include <fstream> using namespace std; int main() { char ch; ofstream outf("ITEM.txt"); cout << "Enter item: "; char name[30]; cin >> name; outf << name << "\n"; cout << "Enter item cost: "; float cost; cin >> cost; outf << cost; cout << "written to file item.txt\n"; …

Member Avatar for munitjsr2
0
317

The End.