General C++ Programming - May 2010 (Page 11)

using list class.. stuck...
 
Okay.. so I have a list <wordListType> dic ; and class wordListType is defined as follows: class wordListType { list <string> words; int wordSize...
[1 reply] : If you've ever tried to implement a linked list or thought about what ... (by kbw)
by indigo
winsock client server
 
I have a client program and a server program that runs on winsock. When i run the server and in the client type address 127.0.0.1 as server address it connects ...
[10 replies] Last: Yes, now i can send data fine from any computer :) (by indigo)
by AegonT
Build Error 1
 
Hey fellas, I'm using Dev C++ and building a very basic networking application, just to get acquainted with the system. However, whenever I try to build my p...
[1 reply] : Not from that information. Can you post the sode and the makefile and... (by guestgulkan)
Can anyone please tell me where the error is?
 
void EnumDiv(int size, int result, vector<vector<int> > &store) { for (int i = 1; i <= size; i++) for (int j = 1; j <= size; j++) if ((i % j ==...
[1 reply] : vector<int> store = new vector<int>(); C++ is not Java. vector.Add(... (by helios)
event
 
Can someone explain to me the details about the "event" keyword? I am confused with this code (event->event). let say I have this code. void passAnEven...
[2 replies] Last: (*event) is different from "event" right? from (*event).event. If I'm... (by olredixsis)
Calling a function
 
Can anyone assist me calling this function to compare and then display teh returned values. map<int, Bid*> Auctioneer::compareBidList(map<int, Bid*>& one, m...
[no replies]
how to check if a file is empty or does not exist
 
im trying to create a program the asks the user for a file name and then opens it and if he enters the wrong name it asks again! but when i purposely enter the ...
[3 replies] Last: Yes, you are mixing two variables. A more correct way: ifstream ... (by Duthomhas)
Comparing values of two maps.
 
Trying to compare the prices of the bids in the two maps.Sellers map and the buyers map. Conditions for comparison. 1) One bid is A and the other is B 2...
[11 replies] Last: the honest fact is that this is and assignment due today!I done the al... (by gnwillix88)
returning an int vector
 
I've created a class Vertices that returns an int vector that corresponds to a collection of vertex indexes which that Vertices object connects to. However, ...
[6 replies] Last: Ah, well then, you are still declaring an extraneous local variable on... (by Duthomhas)
where can i get resources on algorithms
 
Hi,all i like programming but it seems that every time it is how-to-programme (i.e algorithms) that sucks me into being inefficient. Can any body recomme...
[4 replies] Last: thank you all. it might take quite a long time to digest those all. (by sysabod)
Problem with Class Template!
 
hi everybody! i don't know what's wrong with this class template declaration! #include <iostream> #include <conio.h> using namespace std; template<class T...
[2 replies] Last: thank u very much! i really appreciate you! (by hamed2005)
C++ matrix library
 
I need to perform some calculations with matrices (a vector multiplied by a matrix, access to specific rows, order columns, etc..) I tried to use boost libra...
[3 replies] Last: What engine does matlab use? Maybe if I use its same engine.. (by paulnoel33)
quicksort algorithm
 
Hi, I wrote a quicksort algorithm that takes two RandomAccessIterators and sorts the array. The function definition is like:- template<typename _RandomAc...
[1 reply] : Yes. However, the call doesn't make for all containers. For example, s... (by helios)
Typecast cross-platform compatability question
 
Hi, I'm just curious as to if the following statement could possibly be unsafe/undefined behavior/etc on certain a platform: int number = 5; printf("%s", (...
[4 replies] Last: er... I guess technically that's safe but it won't print "5" like you ... (by Disch)
Keystate "in" an other window?
 
Good morning, community I was searching around but couldn't find anything. I'd like to "receive" the key state without my program focused, like AutoIt can do...
[2 replies] Last: Okay, thank you. (by DarkDragon1993)
passing vector from one class to another (1,2)
 
I am still trying to pass the vector from the Base class to middle class which has to pass it to a final class. Error: expected primary-expression before '&'...
[30 replies] Last: Thanks a lot for the efforts and time! (by gnwillix88)
Bug in GCC or am I just missing something?
 
Alright, I've been defining a templated Matrix class with some basic matrix ops and I've noticed some strange behaviour when implementing the operator* In ...
[3 replies] Last: I just installed Visual C++ 2010 Express Edition to test the code with... (by closed account 1yR4jE8b)
Warning - declares a non-template function
 
Hello experts i get strange warning message/ cont.h:8: warning: friend declaration `bool operator==(const Container<T>&, const Container<T>&)' declares a non...
[1 reply] : You have the friend statement inside of your class, and the operator i... (by closed account 1yR4jE8b)
how to arrange this data?
 
hi guys...i'm a new member here..i have a problem in my work and i hope anyone here can help me. i have a data and this data actually is read from .txt file ...
[2 replies] Last: thanks master. i already try ur idea code into my others data...it's w... (by sitikhadijahali)
[C] getchar() returns too quickly
 
Hi, I am trying to get user input through getchar(). However, it seems that the second time I call it, it returns immediately. #include <stdio.h> int mai...
[4 replies] Last: Keep the console open long enough to see your program's output http:/... (by Duthomhas)
May 2010 Pages: 1... 910111213... 22
  Archived months: [apr2010] [jun2010]

This is an archived page. To post a new message, go to the current page.