Beginners - December 2008 (Page 11)

why doesnt it work?
 
#include <iostream> #include <iomanip> #include <stdlib.h> #include <time.h> void wait ( int )...
[3 replies] Last: I mean that you're creating an array without first giving n a value. ... (by scythe)
2D dynamic array?
 
Is this the real function for two dimensional dynamic array? int *a = new int ; for(int i; i < r...
[1 reply] : You probably want int i = 0; but other then that...have you tried comp... (by firedraco)
dice roll problem
 
hello im fairly new to programing and i need help with his programing question Ima making a program...
[4 replies] Last: A couple of problems with your program. 1. You're for loop only loo... (by Return 0)
Question on Wide-character
 
What exactly is a wide-character? I've tried to read explanation from other sources but I don't real...
[4 replies] Last: Do you realize you can declare one by just doing typedef std::string<... (by helios)
by alket
understanding file processing
 
Hi, I have a problem understanding the way file processing works. I want to open a file, then rep...
[2 replies] Last: Picture the file as a long single queue of characters with a pointer m... (by anders43)
by mahi
search in char array
 
i ve to make a code in which i ve a charcter array that ve some sentences in it then i ll ve to inpu...
[8 replies] Last: No problem :) (by hannad)
Having problems with classes
 
I have finals tomorrow and I'm still having some problems with classes. It's 4 in the morning and I ...
[9 replies] Last: A semicolon is missing. Is the point of the question really just to sp... (by Zettai Baka)
how do i copy the 3 arrays into the fourth array
 
Excersice 4 says Write a program that contains four arrays. Three of the arrays should contain your...
[4 replies] Last: So use strcpy() ( http://www.cplusplus.com/reference/clibrary/cstrin... (by Bazzy)
read text file with specifications
 
I am trying to read a text file that looks something like this: 0 5 9 0 4 15 1 3 5 2 15 4 11 ...
[3 replies] Last: Couldn't you just use a char array to buffer the non-printable charact... (by Zettai Baka)
by Foe89
Sorting Parallel Arrays?
 
I'm going over sorting arrays and am wondering how I would sort parallel arrays. I've got the algor...
[2 replies] Last: Thanks, took a while to grasp but I got it ^_^ (by Foe89)
C++ extended ASCII
 
Hi again guys, my question is this now, how can I use the extended ASCII code in my C++ programs? I'...
[5 replies] Last: a shorter way is this: cout << '\xB3'; (by Bazzy)
by gulu
Passing parameters, arrays, functions
 
Hi, I have this assignment to do and I'm trying to figure out some concepts so any help would be app...
[9 replies] Last: Yes thats it.Thank you very mutch helios.I will fix it. P.S:Somethi... (by DarkFire21)
by Timbo1
Dev C++ icon trouble
 
I have tried to add my own icon file to a dev c++ file bt it just says icon is invalid help
[1 reply] : What you mean with that? Are you trying to set an icon for your progr... (by Bazzy)
changing switch statements to if-else statements
 
Im having problems changing this switch statement to and if-else statement. Can I please get some as...
[16 replies] Last: Okay, Whatever. (by hannad)
Having trouble assigning value to an array (1,2,3)
 
I'm trying to assign a value to an array. To be specific I'm trying to prompt the user to put in mul...
[53 replies] Last: Congrats :D (by Mythios)
by Zinox
I have a simple code.... error: call of overloaded âabs(int&)â is ambiguous
 
heres the code: (function) bool ValidMoveCheck (int row, int row1, int column, int column1) { b...
[3 replies] Last: Not sure why you are getting the error. I'm in Windows right now w/no... (by jsmith)
Breaking a string into tokens
 
I need some help breaking a string into tokens. Here is what I have so far. #include <iostrea...
[4 replies] Last: mherald81 you got a mem leak in your code and other bugs e.g. st... (by anders43)
by II15X
Constructing a different .txt using C++
 
Hello, but due to my programming skills lacking "skill", I have no clue how to, if, it is possible f...
[1 reply] : humm i am not sure what you mean so here is a guess if you read the... (by anders43)
by lipune
c++,thread
 
Hi how can i use c++ with thread,and how to run and compile it in UNIX or Linux environment plz ...
[1 reply] : Look up pthreads in the man pages (pthread_create) or use the platform... (by jsmith)
My first very simple Binary Tree :)
 
#include <iostream> using namespace std; struct Tree{ int data; Tree* Right...
[1 reply] : Simplest way is a recursive function. void Print( Tree* node ) {... (by jsmith)
December 2008 Pages: 1... 910111213... 17
  Archived months: [nov2008] [jan2009]

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