Beginners - February 2010 (Page 9)

Passing pointer to dynamic array? making function modular...
 
#include<iostream> using namespace std; char *Decrypt(const char secret_code , int a_key); void Output(char cleartext ); int main() { const c...
[9 replies] Last: Line 5. Get rid of the brackets. Also... clear_text starts out a... (by Disch)
How do i do this?
 
Here's my code: #include <iostream> #include <string> using namespace std; int main() { int x; cin >> x; { if (x = 1) { cout << a...
[7 replies] Last: yes,, loops in general,, here is an example of a do/while loop that yo... (by BettyBoopTS)
by Jonah
What did I do wrong?
 
I am learning c++ from a book I found at the library (I have been wanted to learn for years but have been too lazy) and Ive been doing fine. but now I made it ...
[6 replies] Last: There's so many other rules to learn that the important details of ch... (by blackcoder41)
Making a library book record
 
I'm a beginner in this world, a 2 month beginner. I've given a project on making a library book record programming, mostly using functions, but I do not which k...
[15 replies] Last: do you mean that i have to set a value for s and i? (by myakhairir)
by btripp
Creating a 2 dimensional array with the new operator??
 
I cant find anything on this subject. this is what i tried. in the header file i have float* m_entries; in the constructor i wanted to have this ...
[3 replies] Last: But in fact i think it would best represent the Matrix class im tryin... (by Disch)
Implementation Of A Constructor
 
Hello all, I was given an assignment and was asked to give the implementation of the constructor using an initialization list. I'm pretty new to C++ programming...
[2 replies] Last: http://lmgtfy.com/?q=initialization+list&l=1 (by hamsterman)
expected `,' or `;' before "else"
 
//if and else #include <iostream> #include <string> using namespace std; int main () { string mystg; int x; cout << "Press 1 to talk about...
[8 replies] Last: remove } before your first if statement and add } at the end of yo... (by Maimaje Bello Abdullahi)
are global arrays dynamic ?
 
Hello, I'm trying to understand a piece of code I ran into. AS far as I knew, if you define an array of a certain size, then it could not be resized at executi...
[2 replies] Last: Alright, thanks a lot for taking the time to answer ! Really appreciat... (by czuniga)
Tyoecasting Char[] to Int
 
Hi, how do I convert a character array to a numerical value for use in operations? Or the other way around? Typecasting like with char my_var = "52"; (int...
[2 replies] Last: Ah, facepalm! I can't believe I forgot about that! Thanks. :) (by yottaflop)
Backtracking
 
I'm sure you all are familiar with the backtracking algorithms. I've studied it theoretically and I'm good at practicing recursion. I've downloaded and read ...
[4 replies] Last: thanks... I've made some of them :D (by oamsath)
by yarcee
8x8 memory gme
 
Hi, I need a hand here, our project is to make a program of an 8x8 memory game, a Chinese checkers and hang-a-roo. and "luckily" mine is the 8x8 memory game,...
[1 reply] : Your partner already went ahead and posted: http://www.cplusplus.com/f... (by Warnis)
by Regine
CHECKERS
 
can't determine the error here: 6 errors and 1 warning #include <algorithm> #include <cassert> #include <iostream> const int EMPTY = 0; const int BLA...
[1 reply] : cin >> Board b; What are you expecting this line to do? (by Warnis)
Little problem with getch()
 
char ch = toupper(getch()); while(ch != 'Y' && ch != 'N') { if ( ch == 'Y') { point = 0; } else if (ch == 'N') cout << "Sds"; } The firs ti...
[7 replies] Last: But what if i enter too many 'Y'. it will keep display SDR. void opti... (by shazlin)
unicode producing wrong language
 
Hi, I am taking my first steps in learning to use winAPI and am following a tutorial. I have run into problems because my strings are coming out as Chinese ...
[2 replies] Last: Thanks a lot Disch - I read your artlice and using TCHAR and _T solved... (by exiledAussie)
by hayksk
Using enum within struct
 
What is wrong with the code below? When I'm trying to compile it with gcc, it gives an error. What if I do want to define enum within the struct? input : ...
[3 replies] Last: Wow! Great. Thanks a lot, Duoas. I'll test it now. Thank you, too, h... (by hayksk)
Powers Problem
 
I need to assign a value 'n' using the equation n=2^k however I'm not sure how to write this in using c++ cause it is not covered with general cmath. I tried u...
[2 replies] Last: thank you very much that seemed to work, I'm just having one more prob... (by hockeyboy19)
by Ola
how i mke my .exe works on other computers..
 
hii, i was wondering how to make my .exe program works on other computer ,,i'm using C-free ...
[2 replies] Last: thx alot for infoo.. (by Ola)
error in code - c++ beginner, have searched forum and the internet for hours now
 
Hello, I'm sure this is probably a simple fix, but I have been searching for hours for a solution to no avail. I'm very new at c++ so any help here would be ...
[6 replies] Last: is the code just out of order or do i have an incomplete function some... (by spdbump08)
by Ola
A questionnn :):)
 
Hii again.... i wanna to let the user to input the file path and the file name to open any file, so i wrote that: cout<<"Please enter file name\n"; cin.getl...
[1 reply] : i declared filename and filepath as string at first doesn't work so re... (by Ola)
by Ola
Question in fstream...
 
i wanna to declare a function to write a sequnce of strings in fstream,, i wrote a function like that: static void InFileWrite(string mysr){ ofstream my...
[2 replies] Last: Thankkkkkkkkkkkkkkkkkkkkkkkkkks alotttttttttttttttttt ...it worksss... (by Ola)
February 2010 Pages: 1... 7891011... 32
  Archived months: [jan2010] [mar2010]

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