Beginners - March 2009 (Page 11)

variable sized multidimensional array
 
I've been looking around on how to create a 2D int array in C++ with a size based on variables. I know you can't just declare it as something with int matrix ...
[1 reply] : Read this article: http://www.cplusplus.com/forum/articles/7459/ (by Bazzy)
c++ compiler..
 
I m trying to find a free c++ compiler but the 2 i have downloaded dont seem to work at all, i the microsoft visual c++ express 2008 and the free version of Jus...
[2 replies] Last: Remember that the console window won't stay open with VC++ http://www... (by Bazzy)
by destro
if statement problems
 
here is my code. I can't get it to work if i pick 2 for room and 7 for floor it should be 72.00 but it says 55.00 and i can't fingure out why. Please help me. ...
[8 replies] Last: Just one last thing. When i try to get a single room with 1 on floor 1... (by destro)
by riper
what it means this printf's string format
 
i get a chunk of code at which appears this string format: "\033[%d;%dH", any one knows what it means... i know that \033 is the scape character, and %dH is ...
[3 replies] Last: GENIAL.... gracias Jsmith... COOL.....THKS JSMITH (by riper)
by ly89
Try this Question
 
(1) Each student in the university takes a different number of courses, so the registrar has decided to use a linked list to store each student’s class sched...
[1 reply] : Sure why not its not like I have anything better to do right now so wh... (by kenshin)
by Oromis
Write to the beginning of a file
 
I have a file where I hold some data in. When opening this file, I use ios::app, because I wan't to add things, without overwriting the file. But I want to chan...
[3 replies] Last: I solved it using another approach; now I simply read the whole file, ... (by Oromis)
by Daitey
complier and its Manual
 
Where do i get the compiler with its manual.The tutorial refers to it.
[4 replies] Last: There are a LOT of compilers to choose from. Some of the more popular ... (by closed account S6k9GNh0)
by Daitey
complier and its Manual
 
where do i get the compiler with its manual.I am a java programmer migrating to C++.Help will be appreciated.
[1 reply] : You must realize before you start C++ that C++ is a LOT different from... (by closed account S6k9GNh0)
easy question
 
hey, ive programmed for years using qb, delphi, php, vb and various other scripting languages however it occoured to me that if im going to be serious about pro...
[6 replies] Last: myarray is an array containing 2 elements. You are accessing 3 ele... (by jsmith)
by jesusk
Function problem
 
this program is supposed to work with functions outside the main function ok? so ur asked for a program which will ask for aproximation number (n) and a value ...
[1 reply] : Please post your code inside [ code][ /code] blocks so it's easier t... (by jdd)
if statement with char array
 
Hi, I have the code #include <iostream> #include <stdio.h> #include <stdlib.h> #include <string> #include <windows.h> using namespace std; int main ...
[10 replies] Last: Ah so I think I get it now so sense you used singleChar = charArra... (by Hiroyuki)
Chroot jailing isn't working...
 
it's executing ls command after chroot jailing at 'chroot/jail' dir. I run this program as a root and place 'ls' at chroot/jail with execute permission Bu...
[1 reply] : Did you put ls in chroot/jail or chroot/jail/bin? (by jsmith)
how do i implement depth first search into my program?
 
how do i implement depth first search into my program? there are 5 cities, inbetween these cities are bridges. each bridge has a maximum weight. i want to tak...
[no replies]
initilizing an array of string from the define directive
 
I am trying to compile the below code: error: expected primary-expression before ‘{’ token Is there a better way to handle this. .h: #define fromdef...
[2 replies] Last: Thanks for your help. I will try it. In the mean time, I got it wor... (by zheavensky)
by Peyton
Simple pointer example
 
Hi, The following is a simple (I think!) example of the use of pointers... int &variable1Label = variable1; variable1Label = 101; cout << "The ...
[3 replies] Last: Line 12 should be : double_it(pvar); (by pet)
how to write that equition?
 
please help for write following equition!! v e = |v e | * (cos(w)*t -sin(w)*t) (sin(w)*t cos(w)*t) * v k / |v k | cos -sin sin ...
[2 replies] Last: yeah, but i don't undertsand that there're 4 matrix elements within b... (by gantsooj)
Craps Game
 
I need help developing this craps game. Whenever I compile the program it will simulate the dice but it will output more than one outcome of the if else statem...
[4 replies] Last: You can just use int like that. You will have to use an if() statemen... (by firedraco)
Question about functions
 
I am curious, how can I pass data from one void function to another? An example of such an event would be like in a program where I have several functions like...
[3 replies] Last: @Bazzy Ah, thank you! @matanuragi Oh, I see. It is very elem... (by William McHugh)
Python Integer Program
 
Hi I need some help on making a python program that reads an integer from a user... and it should print out a series of * characters that form a right triangle....
[1 reply] : This is a C and C++ forum. You want a Python forum. http://www.python... (by Duthomhas)
by js6216
How to figure out if some string is inside of another...
 
I have been working on a contact list database project. It is a list of a structures called contacts, where each has string data members to be filled in by the...
[1 reply] : string.find() returns a position, which is an integer index, not an ad... (by jsmith)
March 2009 Pages: 1... 910111213... 29
  Archived months: [feb2009] [apr2009]

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