General C++ Programming - October 2011 (Page 8)

by juvan
sprintf() and free()
 
Hello all I've been trying to understand this but I just can't so I turn to you for help. I will leave most of the code out, so if you need me to post more cod...
[2 replies] Last: Hot damn! Thank you very much, I don't think I'd figure this one out ... (by juvan)
by gwiz
Dynamic Memory Allocation Question(simple I'm sure)
 
Hi, I'm a novice programmer and I'm reading about Dynamic Memory Allocation from the cplusplus.com lessons and I copied the code from the page to play with it a...
[2 replies] Last: Yes, thank you very much that was really simple I didn't realize that ... (by gwiz)
Overloading operator "put-to" (<<)
 
I don't do much operator overloading so I'm not sure if I'm on the right track. The dream is to make a logging function that can be used as such: MyLogger(0xf...
[9 replies] Last: I spent ages writing a log class like this with loads of additional fe... (by anonymous23323124)
Got blue page as ZwQuerySystemInformation hooked (SSDT Hooking)
 
Hi guys I've written a program which was described at Rootkit: Subverting ...... to hide a process like calc.exe but whenever I try to open task manager to see...
[no replies]
library program in c++ ?
 
I can't do it.Cods are here. program has read data on files ( avaiable,book,borrow) and delete book,add book,control of books. http://www.hotfile.com/dl/133...
[no replies]
by Pyrius
Object of inheriting class in base class?
 
How would I declare an object of a class in the class it inherits from? Without the "#include "Bar.h"", my compiler says Bar doesn't name a type. With it, my co...
[3 replies] Last: Thanks, Disch. I got rid of the error. (by Pyrius)
How Can I Work with a Set of Vectors??
 
I want to put some very big numbers into some vectors like this for example : |1|2|3|4|5|6|7|8|9|8|7|6|5|4|3|2|1| = 12345678987654321 (because I can't st...
[2 replies] Last: Forget those stuff. Look at this code. #include<iostream> #include<v... (by Mehran Shakerinava)
search, more than 1 word
 
Hello, i am a beginner and need some help. i need a search function for more than one word... i dont know how to do this. plz help. ######## cha...
[1 reply] : use std::string instead of array. There isn't (normally) any benefit... (by eypros)
by drew99
Complex permutation of elements of an array
 
I have written two rotation functions that operate on a character array of length equal to a perfect square. The first rotate n times each odd line to the rig...
[2 replies] Last: I've tried something similar: char txt = "abcdefghijklmnopqrstu... (by drew99)
code problems -- output generation
 
Hello all, I am confused about this piece of code that I wrote to try and numerically solve an equation like this for 100 timesteps: x(i+1) = x(i) + (sqrt(GA...
[2 replies] Last: thank you for advice, Gaminic! I understand that r25 iteration was no... (by qwertyu1234)
by memecs
Runtime Traits
 
Hello, is there a way to do something like: MatrixType<m.type()>::type, where m.type() is an unsigned int and ::type is something like typedef int/float/e...
[1 reply] : Any thoughts on this? Thanks (by memecs)
Travelling salesman problem extention.
 
Hello. I've been looking for this for long time. My problems is related with TSP, but at the same time it's really doesn't. Would it be able to set the number o...
[no replies]
Container Requirements for User Defined Types
 
What exactly are the requirements for a template container class to hold a user defined type? I'm currently in a data structures course, and we have implemente...
[6 replies] Last: [quote=rem45acp]How does the template class know what constructor to c... (by coder777)
Memory Optimization help (no debugging)
 
I need some help optimizing my memory usage. I am making a c++ program to study the effect of leads on scoring ability in soccer. I am taking data on every...
[12 replies] Last: CSV parsing is very easy. As long as your table is regular (every row ... (by Gaminic)
by Bic121
MultiTasking
 
Hi All, I'm new to programing in c++ so please bare with me. Here's the problem, I have a list/vector of external job/programs I need to run. Some of the job...
[9 replies] Last: Thanks, I think I got it working now. (by Bic121)
C++ confusion
 
Okay so im trying to create a program that will employ a recursive that will estimate the square root of a number using the approximation NextGuess = 0.5(Last...
[1 reply] : Your root function has a lot of mistakes. You should specifically tell... (by Nisheeth)
how to create object vector of pointers to functions
 
I am trying to create a vector of objects that can have pointers to functions. I would appreciate some help with this as I don't really know what to do #inc...
[1 reply] : Why do you have two definitions for TypeFunc? (by kbw)
by xop
Object Pointers
 
Hello all, I have a question regarding the use of object pointers and whether its the proper way to do things. In the main function, i would like to creat...
[1 reply] : You can sort of do that if you need to. Why do you want to do that? ... (by kbw)
Sorted Linked List
 
I am trying to make a program to add, delete, and print a sorted linked list. I have tried many different things and now I am getting a Segmentation Fault so I ...
[5 replies] Last: No, I still havent gotten it to work out. (by Shane McFarland)
by smalld
why not giving me "function double defined" error?
 
Hi, I have the following code, I am not sure why the compiler allow it to pass, I think I have double defined the function average,i have another file which h...
[4 replies] Last: The extern declaration, doesn't actually declare a function. It is si... (by closed account 1yR4jE8b)
October 2011 Pages: 1... 678910... 36
  Archived months: [sep2011] [nov2011]

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