Beginners - April 2014 (Page 15)

How do you pass a 2d array to function with pointer notation?
 
Hi im having trouble passing my 2d array to a function. I saved a matrix from a file into a 2d array, but i cannot seem to understand how to pass it so i can ...
[1 reply] : Lines 59-61 fail in the worst possible way; they seem to function corr... (by keskiverto)
Objects in vectors - need help
 
I have a player class which has a function for a vector inventory. I have a seperate class for creating equipment (Sword, Shield, etc.). I'm unsure of how to "a...
[9 replies] Last: By providing getters and setters. string equipment::getName () ... (by AbstractionAnon)
Problems with addition
 
Okay I know I've been asking a lot of questions, but I need this to work. Here's my problem; I tried to do a semi-simple math problem, which is "If your (age) t...
[4 replies] Last: Glad I could help, I'm still learning too! (by closed account 3R5fjE8b)
can we create windows application using codeblock and devc++ ide?
 
can we create windows application like win32 api using ide like codeblock and devc++ and other ide but not ide from microsoft. If there are any free e-book and ...
[2 replies] Last: thank you (by Furyoku)
Creating a new class
 
Hey,can anyone help me with this? :) Create a new class in the program, which will contain container for the image pixels of the three components and stati...
[no replies]
Linked List Errors
 
Guys I keep getting these errors in this linked list template I'm trying to do. Can any one tell me what I'm doing wrong? #include <iostream> #include ...
[10 replies] Last: I missed the typedef at line 5. That does allow the struct to compi... (by AbstractionAnon)
value and reference parameters
 
Hi, I am learning about value and reference parameters. There is an example in my book (see below) that I am having an issue understanding. the output for t...
[2 replies] Last: Thanks codewalker, That makes total sense. (by ddrake44)
Issues with char's and if and else
 
Ok well, for a project I have to make a program that asks you questions. It's very simple. I ran into a problem; I made a char named "country" and I "made" it s...
[8 replies] Last: Thank you so much guys, I got it too work! (by TheAnarchist)
Array Help
 
Hi all, I am a beginner to C++, so please excuse my basic questions. I'm writing a program and it is going well, but I'm having trouble with this function. ...
[2 replies] Last: Hi @Jacman11. Firstly test this instance and recognize. It set up tabl... (by Auroch)
ignore() function
 
In the following code snippet, please explain the purpose of using cin.ignore (both the times). I am not getting it from book. int i; while(tr...
[12 replies] Last: Okay.Thanks all.I got it. (by Tushar Kathuria)
Making CV Using Arrays
 
Hey Guys I Hope You All Are Fine I Just Want A Little Help Here is My Code Below I Am Getting Input From User For CV Now I Want To Print The Output After User I...
[4 replies] Last: Then you will have to implement all the above comments and in addition... (by codewalker)
Binary
 
I have a question about binary. The ASCII states that the integer value for 'A'=48, but the binary code for A is 0100 0001, which if i did this correctly is 64....
[3 replies] Last: Binary is the mathematical representation of the state of bi-stable ci... (by rssair)
Creating if, if...else and switch case program
 
I was asked to create a program that calculate heat energy[Q=mc(delta)T] using if, if...else and switch case but I don't know how to do it. Can anyone help me?(...
[13 replies] Last: It's ok. (by bardson)
by Keppit
Decimal to Hex using Recursion
 
Trying to write a program that converts a Decimal number to a Hexadecimal number that implements recursion . Can't use stuff like cout << hex << x << end...
[4 replies] Last: Let me first apologize, my first response was late at night, and I mud... (by rssair)
by mjatt
difference b/w ch++ and ++ch
 
char ch; cin.get(ch); cout << ch++; cout << ++ch; please explain the two cout cases. Put the code you need help with here. ...
[5 replies] Last: thanks @codewalker @PrivateRyan @wildblue @dhayden (by mjatt)
by bgmnk
NaN in Program
 
This is supposed to be capable of solving quadratic equations, but it sometimes returns NaN. Such as when you would enter 3x^2 + 4x + 7. It returns NaN. I am...
[6 replies] Last: I was capable of finding a way of solving the quadratic problems witho... (by bgmnk)
Explain Arrays Please (1,2,3,...,6,7,8,9)
 
Can anyone explain to me how to construct an array and what they are. I've read my text book and I've read the forum and I still don't understand them fully. I'...
[162 replies] Last: lol, yeah well there's around 4 or more different questions not relate... (by Codermik)
Sorting programm.
 
Hey! I have no code to put here, because I don't really know where to start.. :( But my problem is this - I need to make a programm, that gets a file with so...
[5 replies] Last: cool. can you give us a real-world example of what one line would look... (by mutexe)
by tno333
Function call
 
For this assignment, I have to take a user's input and keyword and encrypt it into a Vigenere cipher. The encryption coding is done along with pretty much every...
[4 replies] Last: I tried letters, but it doesn't output the encryption properly T... (by AbstractionAnon)
by iamtak
reading txt file into class and array
 
i want to read a txt file with the text below 14587569A Peter 3.24 10 Nil 13440531A Billy 3.95 11 HKU-CS What should the codes be like if I want to ...
[1 reply] : #include <iostream> #include <fstream> #include <string> using name... (by crutchlen)
April 2014 Pages: 1... 1314151617... 67
  Archived months: [mar2014] [may2014]

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