Beginners - March 2011 (Page 10)

by mw3284
isdigit function
 
I'm creating a password verification program (using c-strings) with one of the criteria to have a number within it. My function is causing a fatal assertion err...
[7 replies] Last: Yes, thank you linx. I was entering a password of six characters and m... (by mw3284)
GetCommandLine
 
hi, I am a new C++ user. I need help in using GetCommandLine Function, I want for example a simple program that copy a file using GetCommandLine Function.
[11 replies] Last: Besides, why would you need to free memory allocated by the system rig... (by hanst99)
problem with initilazation
 
Hello, I am working on some beginer exercises that were listed here on the forums. But i am get an error during compile at an for statment. When the compiler ge...
[9 replies] Last: No i mean, you wrote for int(int i=0... before. (by hanst99)
Reading a .txt file into an array
 
I am writing a program in Dev C++ to read values from a .txt file into a series of arrays. The program I have written so far compiles and starts to run, but on...
[3 replies] Last: I declared the arrays after the value for rows and now it works thank ... (by randallson88)
by Phine
how to insert three 0 before minimum array element
 
hi guys,i need some help.i have task with class.i have done almost everything except one thing.i need before minimum element of array insert "000" ( three zeros...
[1 reply] : Do you mean that you want "array " to have the value 000? (by Stupebrett)
Dice Roller Segmentation Fault
 
Good day/night, wherever you are, My friends commissioned me to create a virtual set of dice for their Dungeons & Dragons game. I wrote the C++ program below...
[3 replies] Last: Hmm... I was curious what an ideal Q/A thread would look like. So I w... (by Albatross)
by asdf
Error
 
Hi people, My problem is the following: I am using "code blocks" to compile my programs, and I have closed the window where the errors appear, and now when I...
[3 replies] Last: Thank you very much!! :) (by asdf)
Header File for Xcode
 
I tried creating a header file using the following: #ifndef STRINGTOINT_H #define STRINGTOINT_H #include <string> function (stuff) { function I wrote....
[2 replies] Last: Did you actually save the header as "StringtInt.h", and is the header ... (by hanst99)
undefined reference to `MersenneRandomInit'
 
Hello, everyone! Thank you for your attention to my stupid problem. I am trying to use Mersenne Twister library from agner.org/random/ This is an example progra...
[2 replies] Last: ok I did it using g++ -Wall -c ./cas.cpp g++ -Wall -g cas.o randomae... (by lan1967)
error!
 
hi, how to solve these errors ? error C2668: 'exp' : ambiguous call to overloaded function error C2668: 'pow' : ambiguous call to overloaded functio...
[9 replies] Last: Yes you are right , I didn't change the type of n2 I've only added ... (by Thuraya)
by candme
Keyword this
 
Hi, as a beginner of C++ I found the C++ Language Tutorial on this site is extremely helpful. As I progress through the tutorial, I seemed to get stuck at the ...
[5 replies] Last: I went over the section again and figured it out with help from your c... (by candme)
by candme
Static members
 
Hi, as a beginner of C++ I found the C++ Language Tutorial on this site is extremely helpful. As I progress through the tutorial, I seemed to get stuck at the C...
[2 replies] Last: Thanks for your input. I re-read that section again and figured it ou... (by candme)
Problem with setw/setfill (c++)
 
Hello, I'm quite new to the programming world, and am having some trouble getting my program (for an assignment, but I'm only looking for assistance with th...
[10 replies] Last: guest - like I said, the number inside of the setw() is equal to the ... (by duke2010)
Please help with return function
 
Hi Everyone I've been struggeling for almost a whole day with one of my assignment questions. Can someone please assist me. Basicly I had to only write the ...
[4 replies] Last: Sorry for the sytax error } after calcAllowedPerChild, but that was ju... (by swanejs1)
by Sina
|=
 
Can anybody tell me what "|=" does? can you gimme an example? Any help would be appreciated. Sina
[3 replies] Last: Thanks guys (by Sina)
vector of queue segmentation fault
 
I don't understand why I get a segmentation fault in this program, where is my mistake ? #include <iostream> #include <queue> #include <vector> #de...
[2 replies] Last: You were right, that fixed it ! Thanks (by coolamula)
+ sign
 
I know that ++ is a increment of 1, but what is +? Because in my book its got: iTickTrigger = iTickCount +
[11 replies] Last: :D (by TpOreilly)
.find() programming
 
hi, the ques ==> Write a series of assignment statements that find the first three positions of the string" and " in a string variable sentence .The p...
[8 replies] Last: aha, Now I got it ^^ thanks. (by Thuraya)
by cc89
Passing by reference or pointer
 
Let's say I've got a method called addPoint that accepts an object as an argument like so... addPoint(Point a(2), Point b(5)); ...would this be the correc...
[3 replies] Last: Well, I'm actually working with a tr1::regex class. Here's the actual ... (by cc89)
EXC_BAD_ACCESS?
 
int sizeofarray(char array ) { int n; for (int i = 0; array ; i++) { n++; } return n; } This function worked fine until I...
[6 replies] Last: Wow, I just read this: http://www.cplusplus.com/doc/tutorial/arrays/.... (by webJose)
March 2011 Pages: 1... 89101112... 52
  Archived months: [feb2011] [apr2011]

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