General C++ Programming - January 2012 (Page 13)

rs232 communication
 
I would like to write a C++ program to communicate (via rs232) with a temperature oven. I will be using a USB to RS232 adapter. I have never done any serial com...
[no replies]
Barcode reading from TIFF file (Optical Barcode Recognition)
 
I am trying to start in the right place and I've done a lot of searching and reading on this forum. I have searched for the topic a lot over the last couple wee...
[no replies]
virtual destructors
 
Can anyone tell me the proper way to implement a virtual destructor? any maybe even why it is the way it is. I read that the derived objects destructor will a...
[9 replies] Last: sweet, thanks guys! (by closed account zwA4jE8b)
by ddre20
limiitng float value
 
i am writing a program that uses times but for times i am entering them as float values HH.MM obviously the problem will come if cin a number like 15.75 what ...
[1 reply] : It is probably better to not use float for this because they are not a... (by Peter87)
Files
 
What is the difference between source files and object files?
[2 replies] Last: Source files contain your source code as you write it. An object file ... (by Jessy V)
c++, SDL- Method/Function issue
 
Hey there. I am making this 2D game, like tiggy. You must catch the other guy. It is two player either on the same keyboard or AI. I have trouble making the CP...
[1 reply] : You forgot to put () after the function name bot.move () ; ... (by Peter87)
setting default value for the function
 
Hi, I am trying the set the default value of the function of the class. but this code gives me error . I am not able to find how to set the default value of t...
[4 replies] Last: Thanks naraku9333 , and Moschops ,, for your tips it worked . . cheers... (by bluecoder)
Leak in this function: How do I get rid of it?
 
Okay, I'm having trouble with this function. Basically it's supposed to read in a bunch of stats and names and assign them to a list of Character objects. Now t...
[2 replies] Last: I'm trying to make this code friendly to the C++98 so that my partner ... (by ciphermagi)
by Zanje
If-else To Switch Statement
 
else if (menu =='B' || menu == 'b') { printf("\n\nGuessing Game"); printf("Choose from 1 to 10"); printf("\nEnter He...
[7 replies] Last: The compiler needs to know the number of a switch statement before it'... (by closed account o1vk4iN6)
Self-modifying programs
 
So, for a course I'm in I have to partake in a discussion on how self-modifying code is possible in the von Neumann architecture, and what implications it has a...
[14 replies] Last: Yea it's more of modification, that during runtime, may be unknown. Li... (by ResidentBiscuit)
Vectors capacity question
 
Well I've been learning about vectors in this C++ book and then came across the memory reallocation and deallocation process for them but I don't really get how...
[7 replies] Last: > it massively reduces peak memory usage. Yes. During the buffer res... (by JLBorges)
Does this book suck? Or just me..
 
Hi, I've been reading C++ without fear (2nd edition) and at the beginning it's proved quite resourceful and helpful. However at later exercises it started to be...
[2 replies] Last: Last question first: good C++ books? Maybe you should use sites such a... (by Catfish)
pionter to 2D array..??
 
int (*p) ;/* Syntax for pointer to 1D array which can point to any integer array of size 5. */ I need to know what is the syntax of pointer to 2D array.. I...
[2 replies] Last: Thank u.. (by Abhijit Kulkarni)
help somebody..
 
Input: Weight: 202 Output: 100 lbs: 50lbs: 10lbs: 5lbs: 1lb: 202- 2 0 0 0 1 How to make this a program? Help.
[3 replies] Last: You should at least think of an algorithm, then only we will help you ... (by SameerThigale)
C++ Server sending message back to client simple solution?
 
Alright, I am writing this server for my own good and I am not doing it for school or anything like that. It is pretty simple and it works great with no problem...
[5 replies] Last: I am reading about the lacewing library now but I usually have trouble... (by mrmodest)
Visit website and enter ID and pass
 
So the language I know best is C++, I've completed 1 class on it in college, and in a second now. We just started classes in my current course. We covered just ...
[5 replies] Last: Hi, I found a solution to your problem: Visit website and enter ID an... (by codekiddy)
by emjei
Linked List
 
i'm having a trouble about my program. it is having an unhandled exception. here it is. //MyLinkedList.h #ifndef MyLinkedList_h #define MyLinkedList_h ...
[4 replies] Last: ohh. thanks. (by emjei)
by Bobu
Reading in specific data-file via C++-Strings
 
Hey, I'm feeling I've searched the whole net, without finding any solution to my problem... I want to read in a data-file, where the data is formatted lik...
[3 replies] Last: Thank you very much for your quick replies!! Everything works fine!! ;... (by Bobu)
Creating a Login Database
 
So basically I have been trying to create a Login Database in C++, in which you must register first. So to do that I think I need to take the two string values,...
[4 replies] Last: Well, if you're working with webpages and online stuff, then look up S... (by Stewbond)
Calculating grades with Decimals
 
Alright, this is a refresher assignment for my Advanced C++ class, and I have the program doing everything it is supposed to, except it is not recognizing the c...
[3 replies] Last: I tried that before, but forgot to change one of the variables to the ... (by KaraPardue)
January 2012 Pages: 1... 1112131415... 36
  Archived months: [dec2011] [feb2012]

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