Beginners - February 2009 (Page 15)

Simple menu, infinite loop
 
Hey guys (and gals). I'm pretty new to programming, and was hoping that somebody could help me figure out where I've gone wrong. Here's my code: #includ...
[1 reply] : http://www.cplusplus.com/forum/articles/6046/ (by Zaita)
by MPKMM
How to do run time monitoring?
 
I have a program which has 10.000 loops. But in the run-time, the program gets stuck in a certain loop and cannot continue. How can I know what is going on whi...
[5 replies] Last: Debugger :) (by Zaita)
tic tac toe Class, printing a 2D Array board issue
 
I'm not sure what I'm doing. Any suggestions will be greatly appreciated. I have to make a tic tac toe class. First obstacle, print a 2D array. I’m trying ...
[4 replies] Last: http://www.cplusplus.com/forum/articles/7459/ (by Zaita)
Array dimensions
 
Alright this i found interesting.. i was playing with arrays and i tried to do an (x,y,z) array to try to have three dimensions to it instead of two. I understa...
[4 replies] Last: http://www.cplusplus.com/forum/articles/7459/ (by Zaita)
nested case problem
 
hello guys...i am new in this forum... i just need help coz im kinda confused how to solve our assignment... our assignment is this: Given as input three...
[2 replies] Last: Err if I may interrupt :P This question has been asked a lot on this ... (by hannad)
Question about this function
 
Can someone tell me what I am doing wrong? #include <iostream> #include <string> using namespace std; void string replace (string base, string pot...
[1 reply] : Read: http://www.cplusplus.com/doc/tutorial/functions2.html (by closed account z05DSL3A)
by Marcel
using string::find with a pointer?
 
hey, Is there any way that you can use the string::find command with a pointer? Here's what i've got sofar string one ; string * point; int a = 0 ...
[2 replies] Last: Are you looking for a specific value in the array, or a substring? Th... (by seymore15074)
In c++, how to store different strings in an array?
 
for example, storing names in an array like this: string name[ ]={ bob, mary, calvin}; is it correct? after that how do i output ALL the 3 names? when i...
[10 replies] Last: hmm.. ok tks a lot. sorry for ur time (by ahgal06)
by turke
Why does this always return same number? (1,2)
 
I've wrote a small function and included random number generator but it always returns the same number... WHY??? color = rand() % 4 + 1; ...
[29 replies] Last: Ok sry this could be closed now... I've read that vector tutorial on... (by turke)
Manipulating an output stream
 
Hello everyone, I have a class called entry. For this class I have defined the operator<< to be able to write entry item; std::cout << item; output:...
[2 replies] Last: entry item; filter f(item); std::cout << f Yes, this would... (by ReedWood)
by jjs2
generate random number
 
hi all, i would like to ask a question about how to generate a random number between 0 and 1 using float. In this random number should include the floating poi...
[1 reply] : See: Uniform random number between(0.1] http://www.cplusplus.com/... (by closed account z05DSL3A)
Cant Compile "Hello world"
 
Hello Im using this online book to study C++ http://www.cesis.lv/learn/C++/htm/ch01.htm And when im trying to Compile the project there are errors that i ...
[4 replies] Last: You can also do: #include<iostream> using std::cout; using std::en... (by closed account z05DSL3A)
by emraan
pyramid
 
i dont know how to make a pyramid of stars..... * *** *****
[1 reply] : It's easy. U jst have to use a nested for-loop structure for this (o... (by harryp)
polynomial: problem with overloading operator =
 
Hey everyone, I'm very new to c++ and need some help with overloading operator= for a polynomial class. Here's my relevant code: // i can't change the ...
[1 reply] : never mind, I think i figured out (by msalman)
by Jet89
Loop nonstop
 
Hello everyone..im new here and seeking help..hope you guys can help me.. I got this question and need to this in modular programming ( i need to create my o...
[16 replies] Last: Sorry i forgot to mention this.. the program not complete yet.. - r... (by Jet89)
by memoc3
Sory.. anyway looking for some hint
 
i would like to ask how to compare a string that similiar to a word from the file. As i know compare string exactly can be done by (if str1==str2) but how if it...
[8 replies] Last: i quite not understand about 'read your dictionary file into a set'.. ... (by memoc3)
by Sathed
Finding a string inside a string...
 
First, I can't use .find()... I have to create a function and a helper function to find a string inside a string and return the index location where it start...
[1 reply] : 1) You could use strtok() to split string b. The length of the first r... (by Zaita)
by memoc3
Spelling checker...
 
I got a question to ask. i realy no idea to do this. plz help. write a program for a spell checker application. Program should ask a user to enter a word. Th...
[3 replies] Last: What do you have so far? (by Sathed)
Trying to use string class member function
 
I have this code to test whether or not the user is inputting bad data. static bool intOK(string s) { bool OK = true; int p1, p2; int f; //fin...
[1 reply] : If you want to remove any leading whitespace. Just use the string.find... (by Zaita)
about n!
 
One of my exercise is to calculate a number's factorial; #include<iostream> using namespace std; int main() { int a=1,i,n; cin>>n; for(i=1;i<=n;i++) ...
[4 replies] Last: http://www.cplusplus.com/forum/general/7630/ This was recently disc... (by Zaita)
February 2009 Pages: 1... 1314151617... 22
  Archived months: [jan2009] [mar2009]

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