Beginners - July 2011 (Page 47)

by lcam2
Numerical Array split
 
1. The problem statement, Define an array with 100 integer values, and fill the array with random numbers in the range from 0-99. Then write a function named s...
[1 reply] : The split function should have a void return type, so in other words... (by shacktar)
error: no matching function for call to...
 
I'm sure this is a case of not being able to see the obvious, but here goes. Keep in mind that I'm more than rusty with C/C++, so please treat me as a complete ...
[5 replies] Last: Apparently, all I needed was to see the question I was asking! Oops! C... (by Gabe 101)
Compilation / Linking Problem for very simple program
 
Hello people, I am a complete newbie to programming, and I am having some trouble completing a very simple drill in Stroustrups Book Programming Principles and ...
[8 replies] Last: Thank you, Athar. Now I understand the difference between declaration ... (by aaron2015)
by eidge
Deleting new arrays
 
Here I go again bothering you. I was wondering if after creating an array with new and assigning it to a pointer if I can change the index of the item poi...
[9 replies] Last: Thanks for the tips, I'll try to keep them in mind. (by eidge)
by eidge
Pass by reference or not?
 
I was wondering what would be the correct approuch to a function. Assuming there are no changes made to the arguments passed: type function(const type &arg)...
[3 replies] Last: When to pass parameters by value, reference, and pointer http://www.cp... (by jsmith)
Multi Dimensional Array Multiplication Failure
 
Hi there! I was wondering if you could please look this over real quickly and see if there's a syntax error. I am multiplying an 8x13 matrix by an 8x8 ident...
[1 reply] : double H creates an array 13x8 or 13 arrays with 8 blocks (okay, t... (by Danny Toledo)
What does the "return" statment do?
 
I dont know return statment does. I was looking in classes(I) section of the tutorial and I noticed return (x*y); . I was just wondering what retur...
[2 replies] Last: Thanks (by TexanMonkey)
A little help? TWO more errors!
 
#include <iostream.h> int main () { int a; int b; int c; int d; int e; cout << "Input the answers to these math problems:...
[4 replies] Last: Thanks man, that made it work. EDIT: It runs through, and system("... (by Ischips)
conversion
 
hey guys I am trying to compile my project but I have this error error C2664: 'CreateFileW' : cannot convert parameter 1 from 'const char ' to 'LPCWSTR' ...
[5 replies] Last: sorry Zhuge I couldnt get u .. u said the data to be passed should be ... (by the storm)
Assertion Failure?
 
My program will compile but while debugging, it gives a an assertion failure. Below is my code. This worked as an array but it will not work with a vector. Am I...
[5 replies] Last: Awesome! Thank you. (by monkeybutt)
How to run ./Configure?!? Someone please try help!
 
Please Somone help me!!! I have been trying to set up SDL_GFX for 2 days & it feels like ive just hit a brick wall!!! Every tutorial I look at says for me...
[13 replies] Last: cd /cygdrive/<rest of the path> (by writetonsharma)
POINTER\ARRAY CONFUSION
 
plz tell me the error!!!! it doesn't work properly. #include <iostream> using namespace std; int main() { int *num; num =6; *(num+3)=7; cout<<num...
[2 replies] Last: if you want to use an array, you should declare an array. it is true ... (by muratagenc)
Returning strings from functions
 
Hello again everyone, I hope it doesn't seem like I am spamming the forums (my third topic in as many days) but I really tried searching for this topic, and I...
[2 replies] Last: I do not assume it works. Well it does ;P. The only thing you have... (by Disch)
by nand
matrix as a function argument
 
Hello, I searched before posting, and I didn't find what I was looking for (honest!). Please help me see the problem, I think it's so huge I can't see it. I ...
[1 reply] : I got it! this is wrong: board1.getmask(this->side, mask1 ); this ... (by nand)
Cannot access private members from within same class???
 
Hi everybody. I am a beginner at programming, but the code I am trying to run is very simple and I dont know what the problem is: #include <iostream> #inc...
[7 replies] Last: I have seen this same construct in C# only, so I immediately diverted ... (by webJose)
by rej3kt
Simplifying a menu
 
The following works, but I just don't know how to make that simpler. I guess I could just have - if staff_or_client is equal to S or s then do the following, el...
[2 replies] Last: Good point, will switch to a case statement, makes it much easier, tha... (by rej3kt)
Help in finding the error
 
I am making a tic tac toe game in the console. You can see my code here: http://pastebin.com/z8tYxipN The code is not yet completed, so many functions are ...
[7 replies] Last: No, by Board.board The name of your actual created object is Board... (by Moschops)
Menus
 
I am working on writing a Win32 Windows Application, and I am very confused. How would I go about adding a button for new file under the "File" menu? Thanks...
[2 replies] Last: Ok. Sorry. (by camhahn)
SFML cube and sprites
 
Hi there. I have a basic program where I draw a rotating OpenGL cube to the screen with a texture on the cube. What I would like to know is how to draw a spr...
[no replies]
Inheritance
 
I created two classes, Board_t and Peg_t Peg_t Inherits all the private members from Board_t. Now I am trying to use the private member in Board_t in Peg_t,...
[4 replies] Last: So what's the point of having Private inheritance? Private inheritan... (by closed account z05DSL3A)
July 2011 Pages: 1... 4546474849... 54
  Archived months: [jun2011] [aug2011]

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