General C++ Programming - July 2010 (Page 16)

mysql_real_escape_string() problem.
 
Well, it seems not to be working. If the user inputs a username with a ' in it, it gives me a sql error (if mysql_real_escape_string() was working it wouldn't)....
[no replies]
by ibtkm
problem in char* &
 
hi every body in this code void toPointer(char a ,char* &b ) { for(int i = 0;i < sizeof(a) / 4;i++) b = &a ; } i have error(this error is for char...
[10 replies] Last: i need to add: "when passing as a function argument." (by everid)
by abbi
linklist
 
if we have a link list , we need to sort it then we will use which sorting technique ( insertion, bubble, merge etc)?
[3 replies] Last: this smells like a test question. (by Seraphimsan)
by rollie
Templated Storage
 
Another user (NGen) recently asked a question here about how to implement a templated class such that it could have generic get/set methods that could get/set a...
[2 replies] Last: There's no harm reinventing the wheel if you don't look at the blue pr... (by Seraphimsan)
"Undefined Symbol" when writing socket code???
 
Hi everyone, I have a "This should be simple!" kind of problem. I need to do a little socket programming on a SunOS machine . I went back to an o...
[3 replies] Last: Figured it out - a colleague explained to me how to properly read the ... (by phummon2)
Removing whitespace
 
For some odd reason, my function isn't removing any whitespace. Can anyone see why? string Manage::RemoveWhite(string &str) { string final; for(unsi...
[4 replies] Last: Ahh, thank you, that did the trick! (by Fellixombc)
Objects holding Objects
 
Hello there, I'm steadilly progressing through some C++ Begineers textbooks, quite near to the end of them now, and I'm having a bit of difficulty with an objec...
[4 replies] Last: however this design is a bit dangerous because Dwarf cannot be guaran... (by LBHoward)
by JRevor
About the Struct syntax.
 
I'm doing an application that uses Linux signals. Searching through the internet, I came across the following struct declaration struct sigaction { ...
[5 replies] Last: Thanks a lot!. Sorry if it took me some time to mark this as solved. (by JRevor)
by abbi
stack
 
ARE we able to make stack of variables having different data types??? if yes then how?
[11 replies] Last: The union approach doesn't quite work because on retrieval, the progra... (by jsmith)
Formatting output to a flat file
 
Hi, I am trying to format data in a flat file in a particular format. The following are the steps. STEP 1: Data elements in the code. string Fix...
[4 replies] Last: Please mark this post as resolved. (by arupsarkar)
Cannot open include file: 'readline/readline.h'
 
Hi I have the following in my code. Except the stdlib.h none of them are getting resolved. Can someone please help me in finding references to the header fil...
[2 replies] Last: Thanks very much in replying, that is correct, I was able to compile i... (by arupsarkar)
editing a binary file
 
greetings to all, is there any way to edit a pre existent binary file its really so urgent to me i have made a thread at the begininers section that i want u...
[no replies]
auto_ptr inside map
 
#include <map> #include <memory> #include <string> using namespace std; template <typename T> void fns(void) { typedef auto_ptr<T> Tptr; ...
[1 reply] : As iterator is a typename the compiler needs a hint: typename map<... (by Galik)
opaque
 
Dear all, Would anyone kindly explain to me what does "opaque" mean? here is the context: "This memory is not directly accessible to the user, and objects...
[4 replies] Last: thx Smith, (by abdallahijazi)
OpenGL Textures
 
Argh..I've been trying to get this to work for over two hours now, and I just can't see what the problem is.. This code is basically NeHe's sixth tutorial us...
[no replies]
ARRAY
 
Hi guys I have a small issue in C++. I have an array arr = {1,2,3,4,5,6,7,8,9,10} I need to have a loop where I start the loop from start of the array( i....
[3 replies] Last: There's actually a pretty graceful way to accomplish this with a direc... (by stravant)
Question about for_each function
 
Hello everybody. I am new to the forums, and pretty new to C++ so I have been trying to teach myself (I am fairly familiar with Python and somewhat familiar wit...
[3 replies] Last: There are other solutions with boost::lambda that make this a one-line... (by jsmith)
by abbi
pointers
 
what is the use of **ptr? why we use it?
[8 replies] Last: [quote=abbi]then what is the difference between *ptr and **ptr as *ptr... (by Galik)
Digital Sorting or C++ VS Pascal
 
Hello, everybody! Can anyone write how to realize this code in C++; int d[-100..100]={0...0}; read(n); for i=1..n{ read(x); d =d +1; } for x...
[4 replies] Last: Isn't -100..100 201 elements? (by moorecm)
2 simple questions about hash tables and binari trees.
 
Hallo.If someone can say me are theese states are correct/incorect i will be very thankful.10x A simple open addressing strategy for collision handling in h...
[6 replies] Last: 10x for the illustration.Now i can do this kind of question with ease.... (by mindvera)
July 2010 Pages: 1... 1415161718... 20
  Archived months: [jun2010] [aug2010]

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