Beginners - January 2009 (Page 10)

assistance with ping command
 
#include <iostream> using namespace std; int main() { int ip; cout << "Please Enter ...
[1 reply] : Is your executable by any chance called "ping"/"ping.exe"? By the w... (by helios)
display the characters for ASCII code
 
#include <iostream> #include <conio> int main() { for(int a = 0;a<8;a++) { cout <<endl; ...
[2 replies] Last: Well some of those characters aren't printable while others such as CR... (by jsmith)
MS Visual C++ 6.0 Errors in Code
 
Hello, Working on this assignment for class and I keep getting these errors, I have pasted the code ...
[5 replies] Last: There's no main(). (by helios)
Referencing in a Function
 
How would I properly write the following: void instance_create(baseClass& nameOfDerivedClass) ...
[10 replies] Last: I am writing an object manager that manages a base object which has de... (by ebarroga)
by xanmas
Global Variables
 
Hi, I was wondering, what are the disadvantages of using global variables? How does c++ keep trac...
[3 replies] Last: I was wondering, what are the disadvantages of using global variables... (by Zaita)
Scaffolding
 
Good afternoon all. New to C++, and have what probably is an elementary question. I am using Dev...
[2 replies] Last: Yeah just saw that. Thanks. (by woody3377)
extract bytes from certain positions
 
Say I want to extract certain amount of bytes from a certain location and copy the bytes back to the...
[1 reply] : Try with the seekg function http://www.cplusplus.com/reference/iost... (by Bazzy)
casting enums
 
I learning how to transition from C to C++, and having problems with casting. I don't know how. He...
[2 replies] Last: worked perfectly thanks. Stylistically does any one have problems w... (by nowrd2xpln)
overloading stuff for std::stack
 
G'day all. Im trying to create a stack function that will print the entire contents of the stack - ...
[11 replies] Last: ahh right, gotcha. Thanks for all your help (by bgbnbigben)
by DNRN
Function problem
 
First of all this is not some homework! I am trying to make a trajectory of a ball, which are shot f...
[4 replies] Last: Thanks for the help :D I solved my problem another way.. But my pro... (by DNRN)
cout<<00221
 
Please can somebody tell how to cout<< number like example 00844 if i want see 00 too, not only 844.
[6 replies] Last: #include <iomanip> cout << setfill( '0' ) << setw( 5 ) << 844; ... (by seymore15074)
strings- novice here
 
Working on a small script here but having some trouble getting a string to work. here is a code snip...
[1 reply] : Firstly, you need to convert your number to a string before you can jo... (by Zaita)
back gound Colour
 
How to set a background colour.........
[5 replies] Last: ...yes, that's exactly what the code does. If you read that post AT... (by demosthenes2k8)
by sadon
bits manipulation
 
Hi all I used this code to switch bit4 with bit0 a0=a & 0x01; a4=a & 0x10; aa=a & 0xEE;...
[1 reply] : Nope. That's the shortest possible. It can be made more generic, thou... (by helios)
Really basic questions about libs and dlls
 
Okay, so I've never understood libs and dlls fully, even though I've been coding on and off for almo...
[5 replies] Last: Java and all of the .NET languages (C#, VB.NET, etc.) generate bytecod... (by helios)
by dhanny
Recongising math Expression
 
Hi, mates! I want to create a binary tree, from given arithmetic expression (including numbers, ...
[3 replies] Last: Consider the Interpreter pattern. It is not easy to implement but it ... (by seymore15074)
by L J
CPU (and Memory) usage in C++
 
Hi, I need to know, how can I uncover CPU and memory usage, like in the TSKMGR. I am using Dev-Cpp...
[2 replies] Last: TSKMGR uses win32 NAPI (a simple api hooking shows it) See on Win32 n... (by george135)
Class Reference Problem
 
Hi everyone, im new to C++ and i'm having a few problems with reference. Here is my example. F...
[2 replies] Last: I just realize what i was trying to do. The command that i was looking... (by tvborda)
by kfex
What i don't get?
 
There are a few things i don't understand Can someone help me. I Want to know what this line of ...
[2 replies] Last: Question 1: Mammal():itsAge(2), itsWeight(5){} That is an initia... (by Bazzy)
bit checking
 
How do you check bits in an unsigned int eg $35 = 00110101 how would I check if the 5th bit is 0...
[2 replies] Last: There is an article on this: http://www.cplusplus.com/forum/articles/6... (by Bazzy)
January 2009 Pages: 1... 89101112... 16
  Archived months: [dec2008] [feb2009]

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