General C++ Programming - February 2012

Multidimensional Array Table(sum)
 
i have this C++ problem to write a C++ program that asks for 5 integers for each of the 5 rows. the program displays the values by row along with the sum per ro...
[2 replies] Last: thanks Texan40... did that.. still i'm still confused on how to have t... (by SpeeDemon201)
by Quebec
Cannot access char array
 
Hi I'm new to c++ but I'm basically trying to access a 2D char array in my code, but it always exits the program when it gets to this point. I have no error mes...
[3 replies] Last: If you run your code under a debugger, it will tell you which line cau... (by Moschops)
help with overloading
 
#include <iostream> #include <cstdio> using namespace std; void grade_converter(char); char grade_converter(int,char); int main(){ char testOne, ...
[2 replies] Last: Ahh thank you very much bro! (by Rampie12)
by JnrGD
Making DLL class which is a wrapper for another class
 
I have created a DLL in C++ which I want to use in a C# app. I tested the C++ code in a standalone C++ program before I converted it to a DLL and it all worked ...
[3 replies] Last: bump? (by JnrGD)
C++11 Variadic Templates and Functor with a variable number of member variables?
 
So, I have been playing with C++11 for a few days now, and determined that I REALLY like "Variadic Templates". I have been changing over all of my templates to ...
[5 replies] Last: auto plus = arg1 + arg2 ; ... plus(i,j) My heart just stopped.... (by LB)
how does a keylogger capture special keys
 
I wanna write a keylogger, but how to capture special keys like crt,alt,crt+v,crt+c,crt+alt+del,etc... Anyone help me?
[8 replies] Last: Reference: http://msdn.microsoft.com/en-us/library/windows/desktop/ff4... (by LB)
by AcarX
Help me for Linker error rpls
 
When i use IMG_Load function i get this error:Undefined reference to IMG_Load I'm using this linker: -lSDLmain -lSDL -lmingw32 -lSDL_image Using Codeblocks ...
[3 replies] Last: I have linked libraries .As you said its probaly compiler problem.I'm ... (by AcarX)
writting in .csv file
 
Hi , I am trying to saggrigate some data and trying to write into different columns of .csv or .xls file . But not knowing how to start . making it short i ha...
[1 reply] : This code will segfault because you haven't allocated any space to hol... (by Texan40)
binary search (bsearch) with 2 keys
 
Hi Folks, i´m focusing the following problem: I want to select from the persons table the entry which matches 2 keys: FirstName & Age. However, the below...
[15 replies] Last: The simplest body of the function is int rc; if ( !( rc = strcm... (by vlad from moscow)
by jeezy
help with calling the function to validate
 
In the program i have to ask the user to input a password that contains: -at least 6 characters in length -must contain at least one uppercase letter and at l...
[4 replies] Last: #include <algorithm> #include <cctype> #include <cstring> bool v... (by vlad from moscow)
String[ ], Vector<String> ?
 
I used to program in C++ from about its start in 1990 to 2010 but changed to java since I wanted to equip my Android gsm with HP32S2. And because I had proble...
[3 replies] Last: std::string strArr = {"Monday", "Tuesday", "Wednesday", "Thursday", ... (by bluecoder)
Problem with an open Buffer
 
Well the sorting isnt the problem. The problem is whenever I go to do it again in a loop I guess the buffer is still open and it doesn't work. Here's the code a...
[1 reply] : adding a c=getchar() after cin>> go; fixed it. (by johnv24)
Linked List not Sorting
 
Hello, I am trying to make a linked list program that will take two parameters and sort first by age (least to greatest), then by name (alphabetically). The li...
[2 replies] Last: That fixed it, thank you very much! (by Bickinator)
by codrgi
problem sorting a list
 
solved, thanks.
[1 reply] : I guess the const in Pred() are the problems (by coder777)
Number of paths ques
 
Hi, for my assignment, for the given function: public int getValue(int x, int y, int z) { if (x != 0) y = 5; else z = z-x; if (z > 1) z...
[3 replies] Last: int getValue( int x, int y, int z ) { if( x != 0 ) y = 5; ... (by JLBorges)
by zepher
difference betw synchronous and asynchronous sockets
 
Hi, Can someone please explain to me the difference between synchronous and asynchronous sockets w.r.t. my following understanding: I understand that on w...
[5 replies] Last: Quite right, my mistake. (by kbw)
Understanding this UML diagram?
 
I have an assignment which comes with a UML diagram but I'm having trouble understanding one line: + solve(INOUT solution: JumpSequence): boolean What d...
[3 replies] Last: Just out is a tipical return: outType solve(In/OutType & myVariable)... (by Aikon)
by shamjs
GetShortPathNameW problem
 
Hi all, im strucked with GetShortPathNameW ,it returns 0 here is my code wstring tempws = L"\\\\?\\"; wstring filep(pchar); if (filep.find(L"\\\\...
[4 replies] Last: im strucked with GetShortPathNameW ,it returns 0 If it returns zero (... (by closed account z05DSL3A)
error C2440: '=' : cannot convert from 'float *' to 'float'
 
I am trying to retreive a floating point value from an array. I am still a bit rusty with pointers so I'm not sure how to fix this. void Lightwave::GetColou...
[5 replies] Last: I used the second method and it works well. Thanks for the help. (by reaktor24)
Chess programming, help please!
 
So I've been writing this small chess program for my college project with my friends. And I am pretty much finished with other tasks like move generation and mi...
[13 replies] Last: @therockon7throw: I've never done it, but someone I trust on the matte... (by Gaminic)
February 2012 Pages: 123... 43
  Archived months: [jan2012] [mar2012]

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