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

by TriKri
Using Bost asio to read from serial port?
 
Hi, we are programming a robot in a project at the university, and I thought you might be able to answer a question about boost asio's read function. We are ...
[no replies]
Frequency of Numbers
 
Hey, I need to write a program that generates a set of 1000 numbers between 0-10. They need to be saved in a text file and the frequency of every number has to ...
[10 replies] Last: Thanks (by M4y0rMcCh335E)
DIFFEERENCE btw C and C++???
 
I have tested two little programs written using C and C++ C source code: #include <stdio.h> #include <string.h> int main(){} C++ source code: ...
[5 replies] Last: http://www.mingw.org/wiki/Large_executables MinGW can generate C++ ... (by helios)
by Gio
Code::Blocks or Visual Studio?
 
Recently, my Visual C++ Express edition expired. So, I was going to buy the professional version, but first, I want to know if I should get Code::Blocks instead...
[11 replies] Last: Yes, but the EULA for students is pretty explicit that you cannot deve... (by Duthomhas)
template functions
 
Hi, Suppose that I have a matrix template class mat and I would like to create some utility functions for this matrix class... For example, create an ident...
[4 replies] Last: okay, that was a stupid question! :) please ignore it. I have implemen... (by pozdrav)
by zsukal
Safe removal of the array - delete[]
 
Hello. I have problem. I write class witch array int. I must check that array exist, because i must delete it. // if i use it first time - array not ex...
[5 replies] Last: Its the same exact thing. It doesn't matter. And I was under the i... (by closed account S6k9GNh0)
by Giakki
BST insert problem
 
Finally my fist post! Forgive my newbieness, but i've been searching for an answer and didn't find one yet. I am trying to implement a recursive binary sear...
[no replies]
which is the best dynamic databases model?
 
Suppose I have millions of pears of strings X-Y. first string X contains from 50 to 500 characters second one X contains 20 characters. I want put in order thos...
[7 replies] Last: of course 500! is incredible large but its just all possible combinati... (by fotoni2)
by Sifis
Multiple Choise Test Program in C++
 
Hi, I have an assessment due and I would like to ask for some help as I have the foggiest idea about C++ and programming. I got a book, I started reading but I ...
[7 replies] Last: Well you saved me because i had to do that on 5 more questions and tha... (by Sifis)
Getting "Cannot convert int to FILE *" error
 
Hi All, I am getting the following error message while running the below given code snippet with xlC v8 compiler on AIX 5.3. Error: Cannot convert int t...
[4 replies] Last: The bottom line is you are using a non-standard member of fstream. May... (by Galik)
Intel's C++ Compiler V.S. Visual C++ Vs. Other GCC
 
I was looking at compilers and was told that Intel's C++ compiler for windows and Linux would be a much better option if I'm trying to work on HPC related stuff...
[1 reply] : Yes, ICC can give noticeable performance improvements over both VC++ a... (by helios)
Benchmarking
 
I made this benchmark-esque program. #include <iostream> #include <time.h> int main() { int repeat = 1; while (repeat == 1){ f...
[8 replies] Last: Oh, now I see what you mean. In this test it was more constant. Always... (by MottMan)
by Anzo
fatal error LNK1120
 
Cant compile and run this program: when trying to build it the following errors displayed: 1-- Error 1 error LNK2019: unresolved external symbol "void __cd...
[2 replies] Last: Thanks for you helps. I realized that the problem was that I wrote tha... (by Anzo)
Template inheritance
 
Hi guys, first post. I am doing a project for uni in which I have to build a vector database of shapes, computing their area and volume, and then printing said ...
[13 replies] Last: template <class T> class prism : public T { //whatever here }; ... (by hohums)
a thought on string
 
hi,every body around here watching my topic. Today, was reading the Effective STL book where i encountered a obscure statement in Item 16 .Here is the quote....
[6 replies] Last: If you don't mind the digression, a then-coworker once asked one of th... (by helios)
Head File include recursively...
 
class CFather { CFather() {} virtual ~CFather() {} }; is defined in file father.h class CSon1 : public CFather { CSon1() {} virtual ~CSon1() {...
[2 replies] Last: Perfect !! Thank you hamsterman !! It's now done !! Thank you !... (by jiapei100)
by CDS
Using .exe files from Visual C++ on other computers?
 
Hi there, So after programming all these successful project programs in Visual C++, is there a way to get the executable files in the project debug folder to...
[6 replies] Last: Thanks for the link! Wow, Duaos really gave a long list of options! Th... (by CDS)
by newmem
priority queue - prim algorithms
 
Hello, I am learning C++, i must code prim algorithms, can anyone help me? Thanks
[5 replies] Last: I suggest you look at Boost Graph Library. It already has most of thes... (by TheTSPSolver)
sementation fault[g++]
 
Hello. I am to write a program that assigns to each professor(which I sometimes call supervisor) a pupil and a project to each pupil.Here is the code for "supe...
[4 replies] Last: You might want to consider using std::string rather than char to stor... (by Galik)
error C2664:cannot convert parameter 1 from 'const char [2]' to 'char'
 
Here is my code so far... i cant figure out why im gettin this error #include <iostream> #include <iomanip> #include <fstream> #include <cmath> #include ...
[2 replies] Last: Yes. You want '' around characters. "" means it is a C-style string, w... (by Zhuge)
May 2010 Pages: 1... 1415161718... 22
  Archived months: [apr2010] [jun2010]

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