Beginners - August 2008 (Page 10)

Need to understand this random number program
 
Hey, I am trying to learn the rand() function in C++ I got this program that prints 10 random nos but i dont get this program Please clear the doubts i h...
[7 replies] Last: I also have this problem almost the same. I have a project which inclu... (by gianfaye)
Questions about Xcode
 
I was wondering if anyone could point me toward some good xCode tutorials. I'm not looking for C++ tutorials but rather tutorials about how to use the xCode int...
[3 replies] Last: As I am on a Linux system, I have seen the power of both Qt and wxWidg... (by kacko)
by kacko
ENUM or ARRAY or NIETHER
 
Here is what I would like to do, input a value and check whether the first value is a digit or a alpha char. Can I do this by declaring an array with the value...
[5 replies] Last: Thanks Helios I appreciate it!! (by kacko)
How do i goto a new function?
 
I was wondering how or what command to use to get from the middle of one function and go into a new one from that function, like a goto statement but not within...
[18 replies] Last: Thanks, The article answered my question. (by kacko)
trouble with inheritance(inital problem solved)
 
I know its been a while since I had a problem, but this chapter has been kicking my butt. I got the program to compile. The data for fist printreport is fine. T...
[1 reply] : Believe it or not I solved the issue but not sure if that was right wa... (by tdigdug)
Removing individual characters from a string
 
//Vigenere cipher program #include <iostream> using namespace std; void begde(); void begen(); string decrypt(string s, string code); string encrypt(...
[15 replies] Last: Nope, just a typo. It doesn't show the encoded version of the string,... (by QWERTYman)
by haubke
find member doesn't work in my case haha
 
hello people i'm am a litle bit new to programming in c++ i did some assembly in microcontrollers and now i'm trying to learn c++ i'm doing this for about a we...
[2 replies] Last: aha i did read something about the npos haha i'm so stupid:P i'm goi... (by haubke)
copy constructor
 
class fraction { private: int *num; int *denom; public: fraction(int =0, int =1); // constrctr fraction(const fraction &); //copy constrctr ~f...
[3 replies] Last: Yes, when you assign to an object using another object of the same cla... (by Mitsakos)
sum with a pointer
 
Hi all, i've got some problems with pointers if i write: int* plen; /* some code */ *plen = *plen + sizeof(struct ip) + sizeof(struct tcphdr) ...
[1 reply] : You are using an uninitialised pointer. You should first make the... (by guestgulkan)
vector exit code
 
I have a program with vector and it exits with code -1073741811. I think this happens becouse I erase the last element and should use pop_back instead, but how ...
[11 replies] Last: I dont want to push_back something in the middle. I want that if some ... (by hamsterman)
Hello World Problem
 
I've just finished installing the Borland C++ 5.5.1 version. Now, the problem is that, my hello world program (the very first thing the I tried for this version...
[9 replies] Last: Is Borland 5.5.1 a command-line compiler? You might need to include t... (by psault)
Can I do...?
 
As you can see, I'm new... ... Anyways, I've always wanted to learn a programming language just for the hell of it, but have always been discouraged with th...
[2 replies] Last: Haha I suppose, but it's more rewarding this way. Thank you for the r... (by sdkelso)
Gargbage out but no garbage in...
 
Ok, so I have been working on this little calculation program. I am using it to test different C++ functions and whatnot. It seems as if each section works alri...
[5 replies] Last: It was the use of the fGallonsNeeded that threw me. I thought why giv... (by guestgulkan)
functions
 
While observing an existing code, i see a following statements sometime...can anyone help me to understand what do they mean..? 1- func1(cl1 a, cl2 b) { ...
[3 replies] Last: It seems to me like an utter waste of time to declare anything like t... (by Zhuge)
by kacko
Uderstanding terminology
 
This may sound stupid, but I am so it doesn't matter :-) Is there a site I could go to, or a 'Dictionary' I could use to quickly look up terms/short hand/sla...
[3 replies] Last: Ill check them out, Thanks! (by kacko)
file input counting problem
 
the following code is part of a program i am working on. i want to use the stu_count variable to find averages later in the program. it counts to 13 when there ...
[3 replies] Last: It's some garbage at the end of the file. It get picked up because of ... (by guestgulkan)
A very simple C++ program question
 
I'm using Microsoft Visual Studio's C++ 2008 win 32.. How do I assign a variable to exit the program?...I didn't quite get the explanation on this web site...w...
[3 replies] Last: #include <iostream> using namespace std; int main() { int ... (by OleFowdie)
seg faults with lists
 
ok, so im getting a seg fault when im trying to add to a list. what im trying to do is get a list of pointers to players (or the class they inherit from to a...
[10 replies] Last: hmmmm why does that compile (after removing #inculde <conio.h> and ... (by arathalion)
structures inside STL List
 
Hello im a newbie in C++ programming.. Pls Help... I declared a structure struct mystruct{ firstname ; lastname ; }; then i defined a list wit...
[5 replies] Last: wow thanks a lot Faldrax.. Ive finally figured it out.. i only have t... (by jodeen20)
How to convert Binary to Decimal?
 
Hi guyz! I know how to convert decimal to binary but I've found that converting binary to decimal is much much harder. Maybe my knowledge about the codes i...
[5 replies] Last: You can read the input into an array or a string. And then access each... (by Mitsakos)
August 2008 Pages: 1... 89101112... 14
  Archived months: [jul2008] [sep2008]

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