Beginners - September 2008 (Page 9)

Substring Issue
 
I have a code that takes your birthdate in the format YYYYMMDD and break it up into MM DD YYYY but I'm getting some issues. Here is my code: [code=cpp]#...
[3 replies] Last: Ok, well I noticed several errors...first of all, the ' ' around a sym... (by firedraco)
Deleting a single character from a string
 
This one should be nice and easy for all the experienced programmers out there, but I've been struggling to find a way to delete a single character from a short...
[2 replies] Last: Golly Gosh... Who would have thought that to fix it all I needed wa... (by rapture2048)
C++ virgin. INVENTORY PROGRAM
 
I am brand new to C++. I havent done any programming whatsoever. I am taking a class in school for it and need a lot of advice/hints from you experts out there....
[4 replies] Last: You use the for loop like poke386 shows. When all the data is stored... (by Umz)
Calling a class from a class?
 
I'm working on a card game program. I have a class called Deck and a class called Card I'm trying to do something like this: class Deck { private: ...
[3 replies] Last: Thanks. I didn't realize order mattered. I would've assumed the compil... (by slythfox)
easy to solve doubt
 
Hello I need to know what means ::? is an operator? are there other operators like that? where can I find the complete documentation about this kind of comma...
[2 replies] Last: :: is the scope operator. One of its uses is as firedraco says. But ... (by jsmith)
Colon use in function call
 
I need to understand the purpose of the colon in the below function call. DigitList (unsigned d, DigitList* prv = 0, DigitList* nxt = 0) : data(d)...
[3 replies] Last: Curt, the syntax you are referring to is called an initializer list .... (by jsmith)
What happens if you put ';' after for(...)?
 
Look at this code for (a=0; a<10; a++) { printf ("%d",matrix1 ); } for (a=0; a<10; a++); { printf ("%d",matrix1 ); } ...
[3 replies] Last: Oh, I didn't notice. That's weird. Fixed. (by helios)
Learning Arrays. Questions...
 
Since I'm learning Arrays and I haven't learned them when I was studying C++ I excpect to have many questions, so I will gather all of them here instead of cre...
[2 replies] Last: when you set the pointer to v, which is an adress, you re settin gthe ... (by Path Seeker)
by Umz
Can't figure out this warning (Resolved)
 
I've created a program that reduces damage, I want to use it in a game a characters defense. The program works fine, and I've got rid of all but one of the bugs...
[8 replies] Last: Wow, yea... um I apologise for the infinite loop. I am deeply sorry to... (by Umz)
Template object creation problem
 
hi i wnt to create a template object which takes templates as arguments . The below code gives me error length_type nrange = 4; typedef Convolution<...
[no replies]
by Syx
Goto and return 1
 
Ok so, I read that goto and return 1 shouldn't be used and although I don't quite understand why, I'll take the word of more experienced programmers for it. Be...
[4 replies] Last: Thanks for the replies guys, I can see why goto should be avoided by l... (by Syx)
student in a chaos..
 
anyone pls help me to program a multiplication table in c++ using the iostream.h library thnx!
[4 replies] Last: #include <iostream> using namespace std; int main() { for ... (by YesIAm)
by akama
Random
 
I have a question. I was looking at a script and it used "rand" as a function but it did not declare it. I thought that this was not a function and that you had...
[9 replies] Last: #include <iostream> #include <ctime> int random(int low, int high... (by YesIAm)
by Roads
newbie function question
 
In the tut example below I cannot understand why "a" is reduced by 1 everytime "factorial" is called. It looks like to me if "a" was originally 5 then it would...
[10 replies] Last: Oddly enough, once you understand recursion, it's easier to write a re... (by helios)
Cuple questions
 
Hello C++ commuity. I'm new to programming and I've learned allot in the past few weeks. Right now I'm in the process of creating my own program. But I am st...
[3 replies] Last: Thank you for your help! (by joltting)
by Claymz
Search key problem
 
first of all hi, im trying to make a "search key" of some sort (- Linear search), but when i want to output the array number, in which the number user typed ...
[2 replies] Last: ty :) (by Claymz)
by Xyzk
[Solved]An Access Violation in merge-sort
 
Well, in my long (not yet) and hard (already) journey to become a great alghoritm guru, I met an obstacle, obstacle which on paper is logical, and easy to find....
[2 replies] Last: Ah... Ah... .... I think i should go outside ;P Thank you. (by Xyzk)
Simple Sort 2D Char & Binary Serch C++ Part 2
 
Ello Konrad Zuses of the of the C++ forums I have another issue for you guys to easily solve and simultaneously prove my skill is subpar. Simply put this progra...
[3 replies] Last: http://www.cplusplus.com/reference/clibrary/cstring/strcmp.html (by helios)
by Syx
Windows form question
 
Hello everyone, I'm pretty much just starting to learn C++ and I got a question about windows form. I'm using Visual C++ 2008 Express Edition and there is an o...
[7 replies] Last: Making the switch to a Windows Form application would not be very easy... (by Dudester)
Run Program again loop.
 
Ok, I have searched for the past 15mins and cant find anything. I kind of remember doing this but cant get the syntax right. What I want is to prompt the user i...
[7 replies] Last: "Hurr durr. I sacrifice structure for 2 extra nanoseconds." Seriously... (by helios)
September 2008 Pages: 1... 7891011... 16
  Archived months: [aug2008] [oct2008]

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