Beginners - March 2011 (Page 42)

2D Array in function
 
Im trying to make a program that checks a suduko solution. Im having trouble though trying to pass a 2-d array into my functions. I know i have to use pointers ...
[1 reply] : http://www.cplusplus.com/forum/articles/17108/ (by hamsterman)
Guitar Program (advice/fixes needed)
 
(This is my first post, so forgive me if this is the wrong place) I am currently writing a C++ program that will (eventually) display various music scales base...
[5 replies] Last: Hey thanks for the suggestions, wish i would have checked back here so... (by skyfire101)
do-while loop for data validation problem
 
I have been trying to use the do-while loop to validate an int data input and following is the code i have written. #include <iostream> using namespace std...
[1 reply] : do { if (input) { check = true; } els... (by tripydevin)
Velocity Change
 
hi, can someone help me out here, very simple, I got my ship moving and over time it gets faster and faster. (by pressing up) and pressing "down" will slow it. ...
[3 replies] Last: Wouldn't you just have to do the exact same thing like you did for 'w'... (by firedraco)
I/O stream hw problem
 
Hey everyone, i currently having a homework assignment and i'm a little stumped. The assignment calls for us to take this line: This is the input file for ...
[2 replies] Last: Well when i look at it seems right. Within my if statement i have my ... (by Gamerzdisease)
Read in data from a .txt file
 
I'm needing to make a little program that can read in data from a .txt file, put that data into a list, sort that list, and then display in descending order. I'...
[2 replies] Last: Considering you havee all the sorting down, im assuming youre using an... (by eXsolacyst)
accessing one object from another
 
New to C++ I used to PHP where you can pass objects around like candy. here is my situation and advice would be much appreciated. I am creating a simple cons...
[1 reply] : Make the dealCards function take a Player by reference. (by firedraco)
Using cctype?
 
I've read through the reference pages here many times now, but I'm fairly new to programming and do not quite understand how to work it. I am interested in usin...
[6 replies] Last: #include <algorithm> #include <cctype> #include <functional> #in... (by Duthomhas)
While Loop
 
Hi, I'm trying to edit below using while loop to allow user to keep selecting choices until exit (option 4) is selected. This is my first while loop program and...
[4 replies] Last: Figured it out.... whooo hooo thanks for the pointer in the right dire... (by nani1799)
pointer deletion, getting segfault?
 
I have read a lot about pointers and I don't see why this syntax is not doing the right thing. I know I am confused still about what kinds of objects have auto...
[1 reply] : 1) Only delete things you allocated with new. If you didn't new it, ... (by Disch)
Is this a binary false or bitwise operation or Did i make false?
 
Input.cpp: #include <iostream> #include <fstream> #include <bitset> #include <conio.h> using namespace std; int main(){ string c; ofstream fil...
[no replies]
by Jimbot
LinkedList data retrieval
 
Hello, I have been having a go at making a linked list. I seem to be able to add entries to the list ok but when I try to traverse the list and print its ...
[2 replies] Last: Thankyou fun2code - that was very helpful. I will look into the... (by Jimbot)
by vinweb
Graphics
 
Hi, I'm beginner to c++. Currently, i am learning to basics of c++. I've a very big question in my mind and it is that can we design an interface like editor of...
[3 replies] Last: I would suggest learning a library specifically for creating GUIs. Gen... (by Albatross)
Clarify this for me
 
Here's a snippet from my book: Forward declarations: The requirement to define names before using them (ยง0.8/6) causes trouble in writing families of clas...
[1 reply] : Let's take that code: class Yang; class Yin { Yang y; }; class Y... (by Ramses12)
need tutorial
 
hi every body I am newbie to this forum I need some tutorial for developing GUI in visual C++ windows Form application.....Plese provide me some good tutorial
[2 replies] Last: Okay I don't know what's wrong with the link but copy and paste it... (by vintage)
How to repeat a simple program
 
Hi guys. I'm still new with C++. I'm trying to repeat a simple program. I'm not getting any errors in Dev c++ but when i tried to repeat the program, with d...
[6 replies] Last: Fixed as below: #include <stdlib.h> #include <stdio.h> int sum... (by oldnewbie)
a question on function declaration
 
In the following class definition: class X{ // ... int m1( ); int m2( ) const; } what is the difference between function m1 and m...
[2 replies] Last: If you have a const object/reference to type X you can only call const... (by Bazzy)
Accessing size from another class
 
Hello, I'm having trouble with multiple stuff in my polynomial program. First of all, I can't seem to find a way to access the mySize variable from the Polynom...
[no replies]
Referece in a function perimeter understanding
 
void ChargeTrack(tracks track ,GWindow &Gwin) ChargeTrack(&track ,Gwin); tracks is a struct and track is a array in the main block of code I am trying to...
[3 replies] Last: in c++ passing an array to a function means passing it's pointer. "sol... (by hamsterman)
Int To String Trouble
 
Hello , i have a question about Visual C++. i have an integer value which created with rand() function. I want to show this integer in Textbox about my Form ...
[1 reply] : This looks like some kind of Managed C++, rather than C++. The func... (by Moschops)
March 2011 Pages: 1... 4041424344... 52
  Archived months: [feb2011] [apr2011]

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