Beginners - January 2011 (Page 32)

How would you get the number of characters from an array?
 
Such as, if I had the user input a character sequence ranging from 0-10. Is there a function that I could use with the array to return an integer value correspo...
[5 replies] Last: @stereoMatching If it's any consolation, after correcting you ne55 ... (by Moschops)
by Crutoy
displaying a square
 
I dont want to boar anyone with this trivial questions but as im learning C++ from the book by Deitel there are questions in the end of each chaper to test your...
[3 replies] Last: Done , thanks for suggestion // drawing a triangle #include "... (by Crutoy)
Can anyone make a header for mysql? I dont have Any clue.
 
I'm making a Mobile book inventory for a friends library, It's using a mysql db so people can order a book online And pick it up later. THE online part works ...
[5 replies] Last: I found a good totorial Thanks to my friend (by roelf01)
How to create histogram?
 
Hi, i'm a total beginner for C++ and for my tutorial exercise i have been told to create a histogram (a question like this may come up in the exam as i been tol...
[6 replies] Last: Thanks friend, you just solved it for me by saying i don't have to put... (by Deadmau6)
by poisui
c++: how to input data on command line.
 
Hi. I'm trying to input 2-dimensional array data from command line (i.e. not file data). My question is how to do that? For one dimension array, I can separat...
[3 replies] Last: If it's to diffult I'd suggest that you use a debugger and going thru ... (by coder777)
Sorting
 
I just have a question with the sort command used with vectors, does it only sort in ascending order? or is it possible for it to also sort everything in descen...
[2 replies] Last: Oh I see thanks a lot :) (by wildsummerdream)
struct tm
 
I've tried this: void printings () { struct tm { int tm_mon; int tm_mday; int tm_year; ...
[4 replies] Last: Why are you all doing this? #include <iostream> #include <ctim... (by Duthomhas)
by Minute
Learning C at school and wondering if i should try to pick up C++ too
 
Basically, I am learning C at school (have had 2 classes and 1 lab so far). I need to learn it for the diploma i am getting (for trades). But I am wondering if ...
[5 replies] Last: You'd expect the answer to be yes if you ask that on a C++ forum. But... (by kbw)
Everything returns NULL
 
Ok so i've tried read(), get(), and getline(), to try and get the contents of my file as a whole in one variable string/char*/stringbuf, Each time buffer (the v...
[8 replies] Last: yes the files exist. And i understand what you're saying when you say ... (by closed account 4Gb4jE8b)
Which book is good for learning openGL?
 
I am finding a book aobut openGL because I need to do some 3D reconstruction homework, I found that openGL super bible 5th edition is pretty good for the be...
[no replies]
Histogram issues
 
Hello I've written a program that makes the user input positive numbers, and a negative number. The negative number tells the program that the user has stopped ...
[2 replies] Last: Yeah I have been told that before but this code is just for me I'm new... (by enigmaterror)
'recursive' overloaded operator
 
hi guys, I just finished reading the tutorial and im trying to understand some object programming concepts so be slow with me :D I have been trying to im...
[4 replies] Last: No reason in particular. at the beginning I was going to use ',' (c... (by RaptorX)
shared_ptr (C++0x)
 
Hi, I was wondering what's the difference between these two: triangle::Triangle doIt(void) { point::Point p0 = point::Point(point::ORIGIN); // point::O...
[no replies]
Pointers
 
So i was just wondering. Why are pointers so important in C++? lol i guess i just havent really seen any applcations for it personally yet
[2 replies] Last: Also see: http://www.cplusplus.com/doc/tutorial/pointers/ (by closed account 43RGz8AR)
3N+1
 
Does anyone knows about 3N+1?? if anyone knows could please help me understand this: Sample Input 1 10 100 200 201 210 900 1000 Sample Output ...
[1 reply] : Please post the code you are having problems with. (by rocketboy9000)
IDE Suggestion
 
i've only taught myself how to let windows know you're making a program only this #include <iostream> using namespace std; int main() { std::cout << "...
[10 replies] Last: Visual C++ is what is use. However if ur just starting out stick to s... (by paki programmer)
Using memcpy( ) With Arrays and Vectors.
 
Basically, can I use the memcpy( ) method when copying an integer from a vector to an integer array( and vice-versa )? Here is what I mean: // The vector...
[4 replies] Last: in this case, I think the assign member function of the vector itself ... (by stereoMatching)
by Krahl
Unknown parameter in array
 
Hi, I am using an array of type integer as an argument in a function, e.g. void Function(iaaArray ){} What I would like to do is have something like....
[6 replies] Last: Hey thanks ne555 I forgot I could use template functions. (by Krahl)
int argc, _TCHAR* argv[]
 
I used to use Bloodshed Dev C++ a lot in the past, but then I switched over to VS Express. The default code that comes with console applications has int argc,...
[1 reply] : argc is the number of arguments passed (ARGument Count). argv is an ... (by Moschops)
by Tiigon
Function doesn't work...?
 
I have a function which generates a random map for a game, but it just makes the game not respond at all. This is the part which calls the function: debug ...
[5 replies] Last: Managed to get it to work - I was trying to change a variable with ==. (by Tiigon)
January 2011 Pages: 1... 3031323334... 42
  Archived months: [dec2010] [feb2011]

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