Beginners - June 2009 (Page 12)

Bits in a byte
 
I've read that the bits in a byte (in c++) are implementation or system dependent. What does that mean? Does it mean implementation of c++ compiler or the proce...
[6 replies] Last: A unicode character is 21 bits, or 3-bytes. This typically translates ... (by Duthomhas)
Reading from serial port problem
 
Hello, I've got an application that simply reads the data from the serial port. It goes something like this: Windows: Send string "int" Microcontroller: ...
[5 replies] Last: Well looks like Im the loser here. I have a line "#define ECHO" in my... (by tkurowski)
About climits
 
I have this sample code from a book: // limits.cpp -- some integer limits #include <iostream> #include <climits> // use limits.h for older systems i...
[5 replies] Last: More in the spirit of C++ (since you are using iostreams) would be to ... (by jsmith)
Question about division and double values
 
Hi, I'm a newbie playing with fire C++ for the very first time, (I'm a VB 6 developer) I have been reading a beginners book on C++ and I'm trying to create...
[7 replies] Last: Hi, Many thanks to all, as I suspected it was my own wrongdoings. I... (by jpfsanders)
What does the compiler do with multiple #include of same header
 
What does the compiler do? I mean if you include iostream it includes other #include. What if you included a header file already included in one of you earlier ...
[8 replies] Last: Ok, it's still not too clear to me but im just beginning and I was jus... (by gnobber)
the difference between 'printf' and 'cin/out' is...?
 
Hello Everyone. This is my first post and I've been studying programming for almost a year now. Basically all of the stuff we did in win32 C console applica...
[1 reply] : printf and scanf exist to maintain compatibility with C, C++ input and... (by Bazzy)
by aura
implementing a portion of template class list
 
Using friend of class to access private data member for insert(), here's what I have: template<class T> typename list<T>::iterator list<T>::insert(iterator...
[1 reply] : Not sure what your question is, but I can see that both erase and inse... (by jsmith)
Symbols
 
Hey Guys Can someone please explain to me the following symbols in C++, what they mean and how they work. I've searched around but all the information I've f...
[1 reply] : 1) Ternary operator: http://www.cplusplus.com/doc/tutorial/operators/ ... (by Bazzy)
by pooh
doubt related to recursive functions
 
Is it possible to break/exit out of a recursive function? I'm trying to write a code where I'm generating the binary representation of a number for several dif...
[3 replies] Last: hey thanks..i just realised i was calling the function instead of retu... (by pooh)
Airline Reservation System
 
hi guys im a newbie in programing... im geting a very hard time just to understand this course all about.. i just tried to visit this site to learn more about p...
[17 replies] Last: here it is: http://uploads.bizhat.com/file/406520 hope to benefit (by LOLY)
User-Defined function
 
Hi I need help with my code... #include <cstdlib> #include <iostream> #include <cmath> using namespace std; int main() { double periTriangle...
[1 reply] : You can't define a function inside a function. Just move the definiti... (by Tevsky)
by Dodle
How to convert back to a string?
 
I am trying to create a class that scans a directory to find which files are in it and return the value as a string. But I can't convert the value of "value2" ...
[3 replies] Last: while (entry = readdir(directory)) { if( strcmp( ... (by Hammurabi)
enquiry about pointer
 
hello friends i would like to know why i cann't use the following code.. int* ptr; *ptr=23; i already know that there is a segmentation fault if i use...
[1 reply] : Because your pointer does not point to anything, and thus when you der... (by Disch)
New to C++ Embedded Systems Programming
 
Hi all, I'm generally not a poster, however, I am being introduced to C++ Embedded Systems Programming (a field I am admittedly relatively ignorant to--the embe...
[3 replies] Last: And here is the code... I do recommend to try this on your own though.... (by datta016)
I think I went in the wrong direction (1,2)
 
I needed to create a grid so I did #include <iostream> using namespace std; int main() { int length; int hieght; int row; int collom; dou...
[20 replies] Last: thank you all so much that was completely awesome, you rock!!!!!!!!!!!... (by fire child)
Ambiguous Error
 
Doing an exercise from my C++ book and got asked to create a program that takes a double value and using a function rounds it to nearest whole value. I made my ...
[12 replies] Last: Yeah you're right. (by Return 0)
MS Visual C++ Express 2008 problems
 
Hi, I'm new to C++ and I'm taking a course in college to learn it. It's quite frustrating, especially when you're professor doesn't know anything about most of ...
[11 replies] Last: h=999 isnt doing anything, just lettin u know (by jloundy)
arrays as integers.
 
Hello, i am working on an assignment where we have to allocate an array of short integers as one single number (an arbitrarily large int with 30+ digits) and pe...
[2 replies] Last: The modulo operator is what you are looking for. For example, the n... (by Duthomhas)
syntax error assistance please
 
ok first off, im extremely new to C++. taking my first c++ class. i have to write a program, which ive done, but i keep getting the same 5 errors over and ove...
[4 replies] Last: your code program...... // Circle.cpp : Defines the entry point... (by jloundy)
C++ Game Programming
 
Ok I am not trying to make games like World of Warcraft and Starcraft, things like that, I know I'm never going to make that. 1. What do I need to make games...
[2 replies] Last: In order to be successful at creating any decent game you're going to ... (by Return 0)
June 2009 Pages: 1... 1011121314... 18
  Archived months: [may2009] [jul2009]

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