Beginners - June 2009 (Page 10)

How to get the element index of an array
 
Ok.... sorry for the ackward phrasing, but basically, if I have a certain value such a Au for gold, and I give it a certain array slot, how can I get the number...
[3 replies] Last: A boost::multi_index_container is the way to go if you need to index b... (by jsmith)
write new file..but error..
 
i am using slackware And G++ to compile i tried make a file test.cpp;; =================== #include <cstdio> #include <iostream> #include <cstdlib> #inclu...
[3 replies] Last: thanks guys..... this problem was solved with these..... enjoy.. ... (by budimulyana)
by Null
Question about __int's
 
Hello, my question is about these data types: __int64 xx; __int32 xy; __int16 yy; __int8 zz; are these c++ standart? Also i want to notice this thing ...
[4 replies] Last: I don't need to use them, i just feel bad when i don't know something. (by Null)
Call a section of code from another!
 
From a beginner's stand point, could anyone explain how to call a section of code from another section? Here in my KidzTown Awana Inventory Database System, or ...
[15 replies] Last: thanks! this topic is now officially closed. (by ClarionCoder51)
by vRltwE
Serial port rs232 start to develop
 
Hi, Now I am searching for serial rs232 in c++. I found many things, but in fact, nothing ready for my use. All I know yet is that I want to develop under...
[1 reply] : you must find on youtube about rs232.really helpful (by areyoupp)
Parsing problem
 
I don't see any problem.but it's dont working. #include <cstdlib> #include <iostream> #include <cstring> //Parsing using namespace std; const int LEN...
[9 replies] Last: it's not problem but thanks for helping again (by areyoupp)
Source file not compiled...
 
I am totally new to programing in C++, i am reading the tutorial where it gives the example: // my first program in C++ #include <iostream> using namespace...
[4 replies] Last: create project(win 32 console application) add item (.cpp file) copy... (by jloundy)
by Null
Why i can't do this?
 
Why i can't do this? switch(x) { case y: int i=anyfunction(); break; } so why it's not possible declare variable in a switch?
[5 replies] Last: Now i understan, thanks! (by Null)
Problem initializing array size to variable
 
int counter = 0; int minSol = INT_MIN; int numbers = {1,2,3,4,5,6,7,8,9,0}; string s = "", s1 = ""; ofstream fout("F:\\C\\MyProject1\\Output.txt"); t...
[1 reply] : You would have to use new to allocate that array (unless you are using... (by firedraco)
error #547: nonstandard form for taking the address of a member function
 
Hi, I'm new to c++ and have been learning on this site. I'm trying to pass the address to a member function into a function and having trouble in c++. This i...
[1 reply] : The syntax is pretty ugly. I myself can never remember it. struct ... (by helios)
how to generate a random number
 
how to generate a random number within the range of 61 to 122 and give it to g int g = ... thanks
[7 replies] Last: your need to include: #include <ctime> (by jloundy)
My code gives a mistake after i run it.
 
I got a small task to do and i wrote some code -as far as i learned till now - it should work but it shows an error when i start the program.I use the Visual St...
[6 replies] Last: I found my own mistake - thank you Disch It was in the if (a >... (by strashko)
by Joe101
Iterator for vector of pointers to other class
 
Hi, I have 2 classes: Bank and Account; the former has a vector of pointers to Account objects, but when I try to grab an iterator for this vector of pointer...
[2 replies] Last: thanks! (by Joe101)
Having trouble compiling code for a small text adventure game (1,2)
 
cin >> action; if (action == 1, 2, 3, 4, 5, 6, 7) { cout << "code"; } if (action != 1, 2, 3, 4, 5, 6, 7) { return 0; } Essentiall...
[24 replies] Last: Ok perhaps I will. But I still need a solution or I'm just going to ru... (by Loucetios)
Windows programming.....handle.?
 
What is an handle.............what are the various data types in windows programming...........
[1 reply] : A handle is basically a pointer WinAPI uses lots of them of because i... (by Bazzy)
by Bv202
Operator Overloading Question(s)
 
Hi, I'm now at Operator Overloading in the tutorials I'm following. Now it explains how to overload conversion operators, like: int varname = (int)floatv...
[14 replies] Last: Ok, I think I understand it. Thank you very much for all the replies h... (by Bv202)
How to compile this program.. T__T
 
My Lecturer give me an assignment.. to compile a program using linklist.. but im being frustated to make this program run.. can anybody help me whats wrong with...
[5 replies] Last: The error messages speak clearly so have you checked? (by wmheric)
by wretch
circular references
 
http://www.cplusplus.com/forum/beginner/2829/ http://www.cplusplus.com/forum/beginner/6075/ I have a question about forward references. Do forward/circular...
[2 replies] Last: Excellent article, thank you Disch . (by wretch)
function to initialize 2D array
 
I am completely confused about this problem. When I post the code in the main function, the initialization of the array works. When I put the code into a functi...
[1 reply] : You declaration for initializeArray() doesn't match your definition.... (by PanGalactic)
Is the streams library useful in GUI programs?
 
Hi all. I've been learning c++ since a few months and i'm still writing console programs. These days i've been looking a bit at the streams library, iostream a...
[4 replies] Last: ok thnx ;) (by arun1390)
June 2009 Pages: 1... 89101112... 18
  Archived months: [may2009] [jul2009]

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