Beginners - November 2013 (Page 55)

Help me finish this program
 
So I have a homework I have to write a program which will test if an integer is a three digit number or not (I obviously have to use IF) and if it is, it shoul...
[2 replies] Last: Yanson Thank you very much! (by waspzero)
expected primary-expression before int error
 
Write your question here. I keep getting an expected primary-expression before ‘int’ error, and I cant really figure out why. I feel like it's something rea...
[2 replies] Last: Thank you very much I will make sure to take a look at these. (by antonioruns)
Multiplying Matrix
 
Hello all I am trying to multiply two matrix together. For some reason the first number in each column comes out correct, but the second is some tiny decimal nu...
[4 replies] Last: Yes, 5x2 and 2x5 give 5x5. I wrote in my previous post: (MxP) with (Px... (by condor)
by kjb07
importing a picture then outputting it
 
I am trying to take an image file and output it to a different location with a different name. Here is what i have pieced together so far from my readings, but ...
[no replies]
by ITR
Return a bool Array
 
Could somebody tell me how to return a bool array from a function? When I try the code below the bools gets messed up after being returned. #include <iostr...
[4 replies] Last: Thanks Chervil, something similar to the first code should work perfec... (by ITR)
by Garion
How does char++ function
 
I'm slowly working my way through the tutorials here but I came across something that I don't fully understand. If anybody could explain to me how a character ...
[3 replies] Last: I think its usually a good thing to have at least some understanding o... (by Chervil)
More Card Game Problems
 
Hello Everyone, I'm working on a WAR game and it's sort of a work in progress. The basic idea is that a single array holds values 1-52 with their positions rand...
[no replies]
Which is better practice?
 
This is just a contrived example. I'm just wondering whether its better to pass a function's return value straight to another function that has a const referenc...
[2 replies] Last: Thanks for the help! (by petersrolo)
char to lower case
 
I am trying to set a char to lowercase by using the code below. It is coming up with the error C4789: buffer 'sentence' of size 51 bytes will be overrun; 1 byte...
[1 reply] : Does not matter, managed to figure it out for myself :) (by sailorman444)
Matrix Multiplication
 
Hello all I am having trouble trying to multiply 2 matrix together. I keep getting a segmentation fault core dumped error and I am not sure why. The only thing ...
[2 replies] Last: Hi xerzi thank you for the help. We havn't gone over matrix yet so I'm... (by trevormoon)
Not creating a .exe
 
I'm having a very weird problem where when I put in the following code, it doesn't show any errors but cannot pass the linking part because it's not creating a ...
[11 replies] Last: I know this thread is solved but "solutions" like this really bother m... (by Computergeek01)
by enemy
expected unqualified-id before "for"
 
Please, what means that error? I have the similar (same system) code part in main, but no error was refered? Many thnks!
[1 reply] : It's impossible to answer without seeing the actual code. It could be ... (by Chervil)
by ejcpp
Can you help me with my C++ programming? !!!PLEASE!!!
 
Write your question here. This is all I have, I really need help. /if conditionals #include <iostream> #include <ctime> #include <cstdlib> using name...
[no replies]
by enemy
reference in function
 
Hello, I have: ... int a=rand(); int b=rand(); int& c=a*b; and here are problems with declaration (because of the reference) I tried: ...
[1 reply] : http://www.cplusplus.com/doc/tutorial/pointers/ int a = rand(); int ... (by mobotus)
help me
 
can some one help me with this, the use has to put in the angle an the opposite but i dont no how to do the code? // Maths Helper #include <iostream> //...
[2 replies] Last: because im new to this is anyone able to edit my code and put what Ace... (by btickle1)
Structured Data with Pointers
 
Hello all, I have a question with my Program. I have defined a structure for Student Grade Records, declared an array of records on the heap, populated the arra...
[4 replies] Last: Thanks guys! I got it working, I appreciate the help. Here is my outp... (by cooper90)
by Jeido
Initializing Arrays with Increment Operators
 
I'm currently taking my first C++ class, and the book has an example of declaring array values with an increment operator. When I first saw the code I thought ...
[2 replies] Last: Thank you for clarifying that - makes much more sense now. Seeing the... (by Jeido)
Inheritance, Classes Question
 
Hey, sorry, why in the main function my.Lunch and my.Dinner have got dots? And why also in the main function Carp myLunch and Tuna myDinner have no declaration...
[1 reply] : www.cplusplus.com/doc/tutorial/structures/ (by closed account Dy7SLyTq)
writing array contents to file
 
Not exactly sure how to ask for help on this program. I've read in data from a file and displayed it to the screen as required. Made the calculations and now I'...
[2 replies] Last: My mistake...yes the array size will be up to 100. At least the instru... (by allendks45)
Changing character in two dimensional arrays
 
I'm a student and for one of our worksheets we've had to write a program that allows you to change a character in a two dimensional array and then print back th...
[2 replies] Last: I've got it working now, thanks a lot! (by Ploogie)
November 2013 Pages: 1... 5354555657... 80
  Archived months: [oct2013] [dec2013]

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