Beginners - January 2010 (Page 19)

Pass by reference
 
Hi, I am a bit confused about passing by reference. I understand that when you pass by reference into a function, you are able to modify that object you are ...
[1 reply] : You don't need to pass it an address. You pass it a normal object and ... (by tummychow)
problem reading data in binary mode
 
hi everyone, i have this problem: i'm makeing a program to list/add/extract files from a archive(it's a .DRV file from a psx game, which has all the actual file...
[6 replies] Last: oh, i'll try that. But i ended up needing a unsigned char to calculate... (by closed account 236Rko23)
by Vic
Passing 2dimensional array to function
 
Cane somebody inform me how to pass a 2 dimensional array as a pointer to a function. Best Regards, Vic
[2 replies] Last: You can pass a pointer to pointer and the two dimensions, use template... (by Bazzy)
Default parameters in fist ever class
 
I am stuck trying to write my first class. I have no idea if this is correct or not. I have it working like it is and it prints out what I put in, but I need to...
[6 replies] Last: secretType secretObject(string = " ", int = 0, int = 0, double = 0); ... (by Warnis)
by Rycul
Array values incorrect positions
 
Hey everyone, I've been working on a school assignment, which is to create a Sudoku solving program (Sudoku: you know, those 9 by 9 japanese puzzles). Now I'...
[8 replies] Last: Thanks again :) I'm not yet completely with you on that... but I'm get... (by Rycul)
by cams91
error
 
i made this program in microsoft visual basic. and theres an error THe exception integer division by zero. (0xc0000094) occured in the application at locatio...
[3 replies] Last: you mean visual studio not visual basic isn't it? (by blackcoder41)
Sudoku Solver without recursion
 
hey guys, how can i eliminate recursion in this C code. #include <stdio.h> int grid ; void print_solution(void) { static int nsol = 0; int r...
[4 replies] Last: i've done it.. using for loop yey :) .. except it can only solve the f... (by blackcoder41)
Notepad ++
 
Hey Folks, I just started using Notepad ++ and I must say its a great user interface, I know a lot of people here already use it, but for those who are new like...
[11 replies] Last: wow! neat code. good for you... (by blackcoder41)
by romsok
Directing a file into standard input
 
Hi, I am doing an exercise from Thinking In C++ and it suggests "redirecting a file into the program's standard input". Could someone please suggest how I...
[3 replies] Last: I'm not sure if this is what you mean, but in a *nix OS, on the comman... (by moorecm)
by p4ilul
get value from an address
 
Hi all.. I have a string containing an address: string str = "0x0CA8"; assume 0x0CA8 is the address of some value. my question is, how to get the valu...
[10 replies] Last: actually i'm developing a Modbus RTU application. Do you have any reco... (by p4ilul)
What's wrong with this, output question
 
#include <iostream> #include <string> #include <fstream> using namespace std; int main() { string quote, speaker; cout << "Enter a quotation" << ...
[2 replies] Last: Be careful with typos. It's <<, not <. (by helios)
Problem with a class
 
Trying to create a programme which takes in info like a bank would. So I have a class bank, which has two seperate classes in it: account and customer. The cu...
[1 reply] : When making pointers (as arguments or as actual variables) you need to... (by firedraco)
by Mupp
Goto/Start to another file?
 
Heya there!, Ive just started reading and learning about C++ and I tried to make an easy 2D game from the small knowledge I have. In my small game, I have a ...
[2 replies] Last: And now for the pessimist's opinion: http://www.cplusplus.com/forum/a... (by tummychow)
Array to images?
 
I'm fairly new to c++ and I've got a big array of int's that I want to use as the Red(or green/blue) value of an image (gif, png, anything is ok.) I found a nic...
[4 replies] Last: In file included from /usr/local/include/pngwriter.h:58, ... (by freezway)
by ripley
int to char
 
Hello, i have a char array bla, where I need to put 0 and 1 as first to values of bla. latter on, i need to compare these two values, but if I do it like ...
[2 replies] Last: if I used string I had to change loats of things in my program, which ... (by ripley)
Having trouble with Microsoft Visual Studio 2010
 
I downloaded MS Visual Studio 2010 a few days ago and I just made a test project named Test. I created a c++ source file in there and I'm trying to compile a ba...
[6 replies] Last: I have the same problem. It says it's unable to start program and it c... (by doctober)
String mutability
 
Hi, I'm new to C++ coming from a background of C#, and am trying to understand how the string class in C++ works. I've read that strings are mutable in C++,...
[3 replies] Last: Ah, that makes sense! Thanks. (by tensheapz)
direct function input
 
Is it possible to input, from keyboard, one or more parameters to a function without first saving them to a variable? For example raplacing ...
[3 replies] Last: Ok, thanks. Helper function seems straight forward. I'll look into t... (by hadoque)
Expected Primary Expression Error
 
Hello everyone, I am new to the forums. I am having some issue with this function I have written. There are a few errors I am having trouble understanding. T...
[15 replies] Last: Good point. Aren't dynamic arrays or pointer arrays virtually infinit... (by mkitchen)
IF ELSE VS Switch
 
Grade ==================== Below 50 Fail 50 - 64 Pass 65 - 74 Credit 75 - 84 Dist 85 & abov High Dist ==================== Can I show the ...
[7 replies] Last: In general, compiler extensions should be used carefully and portabili... (by tummychow)
January 2010 Pages: 1... 1718192021... 24
  Archived months: [dec2009] [feb2010]

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