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

problem with smart pointer
 
#include <iostream> #include <memory> using namespace std; template <class T> ostream& operator<<(ostream & os,const auto_ptr<T> & p) {if(p.get() == N...
[1 reply] : It's with your platform. VC++ 6.0 is known to be broken and buggy. You... (by Athar)
boost library for File in Java
 
Hi, Is there any boost library for C++ which include all the functionalities of File (i.e., the File class in java.io.File)? If it is so, please let me know ...
[1 reply] : boost::filesystem (by rapidcoder)
by Woltan
Link gcc libs with g++
 
Hello, I have a problem concerning the linking of a library built with gcc using g++. The linker error message is: undefined reference to 'some_function(char*...
[6 replies] Last: Great, I finally see what is going on. I just love C/C++ :), especiall... (by Woltan)
randomizing elements in an array
 
how would I go about randomizing both objects and integers in an array of any size?
[4 replies] Last: +1 sohguanh Yes, above randomize_array functions are very easy to m... (by jsmith)
by ajitup
NList ??
 
hi! I am new to C++ I would appreciate if somebody can explain me this line of code: Partition::Partition (char *nm, FILE *f) : NList (nm) regards, ...
[1 reply] : This is a member initialisation list. It tells that the NList is initi... (by rapidcoder)
Converting long to char* issue.
 
#include <stdio.h> #include <iostream> #include <string> #include <fstream> #include <string> #include <sstream> #include <iostream> using namespace st...
[3 replies] Last: I don't know your platform a long datatype is how big but for me it is... (by sohguanh)
Need A Sample Script For Replace A String
 
Hi , Am new to C++, i just need a sample script for replaceing a string, that scripts accepts two arguments serach string(STR1) and Replace string(ST2) then...
[7 replies] Last: #include <stdio.h> #include <string.h> int main() { char *... (by sohguanh)
New member, first question
 
Hello! Let me start with this..I have absolutely no previous programming experience and have taken an introductory C++ class. I've had no problems with our prev...
[1 reply] : The problem is in these two lines: #define B 3.15; #define MAX 100;... (by rocketboy9000)
by suds
ending a loop correctly
 
I need some assistance on how to make this loop end with this "Sorry no good" or "See you later" It has several function calls in the middle (that I have ta...
[4 replies] Last: Your brackets are wrong, it should be: if(doThis == 'Y')//one statem... (by rocketboy9000)
by nssn44
calculator in C++
 
Hello, I am trying to write a C++ code to calculate big numbers, I do need to use the pow function in C++, however my code fails, can anyone tell me if there i...
[3 replies] Last: pow doesn't take an int and a double. it's double pow(double, doubl... (by rocketboy9000)
Parking Fee
 
ok i am working on a parking fee problem and i have no idea what is wrong with my program, still pretty new to c++, any help would be appreciated. The error ...
[1 reply] : The prototypes don't match [co de] double totaltime(double); double... (by ne555)
by pizet
Detecting end of line (1,2)
 
Hi! I'm testing a graph algorithm. I'm representing the graph by a list of sons. But I have a problem with detecting the end of line while reading the input ...
[21 replies] Last: ... and ended up with both having very similar performance, after the ... (by rapidcoder)
How To Print Large Amount of Data to File
 
Hello again, In this example of my code, it will skip the first 3804 bytes of data and print Ô at the 3805 byte and 1 at the 3806 byte. I want to be able to...
[5 replies] Last: Thanks guys! I really appreciate the help. (by streamline)
Java Server and C++ Client
 
Hi everyone. I have some experience on Matlab, Java and C++, but fot the type of programming I'm trying to do here, I'm basically a beginner. Eventually, ...
[10 replies] Last: You don't need JNI for this. You are accessing the Java code by commun... (by Galik)
DirectX Tutorial
 
Are there any good DirectX C++ tutorials (perhaps a book)? I have searched, but found nothing.
[6 replies] Last: http://toymaker.info/Games/index.html (by quirkyusername)
Problems with fscanf
 
I haven't needed to use fscanf before, so I'm not very familiar with it... Everything is working fine except that the numbers it inputs are not what's in the fi...
[2 replies] Last: Yea, sorry I wasn't sure if I had posted in the right forum to get hel... (by knifty09)
Great Lessons on Youtube
 
Has anybody else watched these? http://www.youtube.com/user/UNSWelearning#g/c/E621E25B3BF8B9D1 What do you think about them, are they a good way of learni...
[no replies]
by wizard
warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs
 
Hello All, I am doing a program on VC8 with .NET 3.5 frame work. I generated my program using MFC. My program using a two third party libraries. One libra...
[no replies]
Array of Structs ASAP
 
I cant get my array to print in the output, i dont know whats going on please help! #include <cstdlib> #include <iostream> #include <fstream> #inc...
[3 replies] Last: Whereas I hate the idea of bit shifting a file by a football player. ... (by rocketboy9000)
Access Violation (Segmentation Fault) Error
 
I'm creating a program that will count and display total and unique words from user input. The program would have to display the unique words and their total co...
[13 replies] Last: To everyone else, here is the working code for your convenience: /... (by g2mali1)
November 2010 Pages: 1... 910111213... 21
  Archived months: [oct2010] [dec2010]

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