Beginners - June 2012 (Page 15)

Serial Port C++
 
Hi, I have no idea how to start programming C++ for a serial port. I need some help/ examples for me to start. I tried looking through the net but I have no l...
[1 reply] : Duplicate: http://cplusplus.com/forum/general/73795/ (by cnoeval)
cant understand error..help plz
 
#include<iostream> #include<conio.h> using namespace std; class distance { private: int feet; float inches; public: distance():feet(0),inches(0) {...
[4 replies] Last: got it..didnt know it..thankx alot sir.. (by nomijigr)
index VS iterator
 
Dear all, I cannot really get the significance of iterators. Illustrating below: vector<int> V; using std::vector<int>::iterator iter; OPTION 1: for ...
[4 replies] Last: You would need to understand templates first. It's straight forward i... (by kbw)
Help! int,cin,cout, and %!!
 
Can someone explain what int,cin,cout, and % briefly!? NO THE TUTORIAL doesn't help.... :D
[2 replies] Last: Int is short for integer; if you have been to middle school you know w... (by awesomeprograms)
by ToniAz
Returning array in C
 
Hello everyone! I've been away from low level statement in C for a while. I'm having trouble with a function that should return an array of numbers. ...
[1 reply] : double * p = (double **) malloc(a * b * sizeof(double)); modify... (by SirSmilesaLot)
Creating Directory with Optional Name
 
hi guys I'm new to programming and I have searched for this topic for quite a while. Yet I ccouldn't fully understand many of them so please forgive me if this ...
[1 reply] : #include <iostream> #include <cstdlib> #include <string> int main() ... (by Volatile Pulse)
Changing Disk File Name Failed
 
This is my C++ homework for college... My problem is when I use "change" the disk file doesn`t really change its name and I don`t know how to fix. Anyone ha...
[3 replies] Last: But my teacher`s example shows exactly like that just without the prob... (by wzt8112)
Improving code. Vectors
 
Is this my most efficient way to do this? Sometime my logic gets weird, so I just want to make sure I'm not doing anything crazy. Also, this my first time work...
[5 replies] Last: [quote=Da0omph] "Also, can you initialize an array member inside of a ... (by closed account zb0S216C)
Help understanding virtual destructors
 
i've been learning about virtual methods, and i can grasp the concept pretty easily. But i don't understand the use of virtual destructors,i tried creating a pr...
[2 replies] Last: Consider the following simple example. #include <iostream> struct A... (by vlad from moscow)
Struggling with this code
 
Hey guys, I am struggling with this code. . I have gotten this far, and can't seem to pull it off. Please see if you can find out what the issues are. This is ...
[17 replies] Last: ok I see exactly what you are saying now. . I still have a problem tho... (by CPPRaven)
Which library to use?
 
Ok so I know this has been asked a thousand times, but I'm gonna ask it again. I've come to the conclusion that I'm migrating a game in Java to C++, as my part...
[8 replies] Last: Ah well I sent a PM. I'll send an email just to get contact info out. ... (by ResidentBiscuit)
trouble with getline
 
I am new to programming and I am trying to do a problem out of a book. The problem is relatively simple but I encountered something along the way that I would l...
[1 reply] : The problem with mixing cin and getline, is that cin leaves in the new... (by ResidentBiscuit)
PLZ help Me !! plz help me ! my assignment is due tommorrow ! IN Need of an ANGEL!!
 
Plz check these codes ! there's no problem when i compile'em but it doesnt run : #include<iostream.h> class linklist { private: struct node { int ...
[2 replies] Last: #include<iostream> using namespace std; class linklist { private: ... (by Catfish2)
by ndavis
trouble with a tip calculator code
 
I am making a code for a simple tip calculator but im having some troubles getting the right results. #include <iostream> #include <iomanip> using names...
[2 replies] Last: Oh ok. That makes sense thank you very much :) (by ndavis)
How difficult is it to write a device driver for ethernet card?
 
On a scale of 1 to 10 if i wanted to write a device driver for a wired ethernet card, say a Realtek or Broadcom, how much code are we talking about - roughly? H...
[2 replies] Last: It is not difficult to write a device driver if you know its specifica... (by vlad from moscow)
Copy constructor for derived class
 
I'm just wondering how to write the copy constructor, along with the operator =, for a derive class, properly. // base class class Base { public...
[19 replies] Last: @ne555 Framework wrote: Base b2( Base() ); it's a function prototy... (by vlad from moscow)
by Reewr
Array & Review code
 
The summer vacation has just started after I finished my first year for my bachelor's degree in computer engineering. I was thinking that I could probably war...
[4 replies] Last: Cheers! (by Reewr)
Using timing to create objects
 
I am wondering if someone could help with this problem I am having with trying to create 'Enemies@ after a certain amount of time has passed. I am trying to mak...
[1 reply] : Make two global SYSTEMTIME structures. Fill one in at the start of the... (by Computergeek01)
Comparing several strings
 
Hello, I am running into a small problem. Let's say I have 32 strings declared such as: string strArray ; So I have the array and I want to compare all of t...
[7 replies] Last: Thank you, i was able to get it working. (by n0br41ner)
calendar program help
 
I have a calendar program pretty much all the way built, but for whatever reason the day the first falls on is off on about half of the months. This is my code...
[5 replies] Last: I got it. The algorithm was designed to only take input of numbers lar... (by dannytimpone)
June 2012 Pages: 1... 1314151617... 51
  Archived months: [may2012] [jul2012]

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