Beginners - March 2015 (Page 32)

by Meido
Error while using an array of Structs
 
Howdy, I've been following a lot of tutorials and questions here but finally came with a problem I haven't been able to solve myself, maybe I'm just very tired ...
[6 replies] Last: Damn, I totally get what I was doing wrong. Thank you a lot! I'll make... (by Meido)
Bubble Sort
 
So I am trying to write a code to take the three numbers, input from the user, and use a bubble sort to sort them in ascending order. Then take the middle value...
[2 replies] Last: Thanks, That worked alot better. (by jpacker)
by Jweim
Printing 2D Array Using Pointers
 
In my program below, I'm having an issue. I can't seem to pass the 2D array "expenses" to the function by pointer (required to do it this way) "displayExpenses"...
[5 replies] Last: @Justion33, thanks the updated syntax worked. I initially had my code ... (by Jweim)
WS2801 LEDs controls with Arduino - Error compilling
 
Hello everyone, I am a post student from UK and doing my personal project. I have to say that I am struggling with my project and I have just started learning a...
[no replies]
by kiLo94
Reversing Numbers
 
I can only use For loops to solve this problem?
[19 replies] Last: Please add the code tags to your post. See http://www.cplusplus.com/ar... (by keskiverto)
In need of help. Won't compile.
 
Been working on a program and well I wanna compile it. Before it because more of a bigger mess. Someone please help me or point me in the right direction of whe...
[4 replies] Last: A lot of these errors are just missing semi colons. You need to look o... (by Cody0023)
by ares13
Classifying Numbers
 
Hello all. I am having trouble with my homework problem. Below I've attached the requirements and the code I have so far. Any help would be appreciated. Thank y...
[no replies]
Component Type Copy Constructor Problem
 
Hello! Thanks for taking the time to read this. I am writing a component – entity system for a small game, where entities are represented by id numbers in ...
[3 replies] Last: Yes, that's it. Thanks! Turns out I don't need the operator overload I... (by closed account oGhfSL3A)
Need help with if else please
 
Hello all. Just starting out learning to code sorry if this is really basic. I need to write a program inputs three sides to a triangle and determines if said t...
[1 reply] : You have the right idea, but you're covering only one case (where side... (by AbstractionAnon)
No errors, logic error? please help
 
I have this program homework, I get no error when it runs but wrong answer. A shipping company uses the following function to calculate the cost(in dollars)...
[5 replies] Last: Yeah your right I forgot to do the && to every one of them, makes sens... (by jcole125)
Bank Program Using Array
 
I am writing a bank program and I need to have the user input 5 checking accounts with 5 savings account, the account numbers must start with an uppercase lette...
[no replies]
by Orval
Need help with toupper()
 
The book just went over what toupper did, which was capitalize letters. It didnt show an example of how to use them(this was during the beginning of the book). ...
[4 replies] Last: So, why does a = 65 in programming? http://en.wikipedia.org/wiki/ASCI... (by MiiNiPaa)
constructor with a *(ptr) function??
 
public: Table( int n, int (*map)( Key k) ); When I create my object in main, how do I pass in the parameters to the constructor with a function ptr ...
[1 reply] : int foo(Key key) { //Function } //... Table bar(5, foo); //Crea... (by MiiNiPaa)
Need help POINTERS TO POINTERS
 
I need help this is a sample code my instructor gave me and I get an error saying there should be a terminator somewhere in the line wherein "for(i=0; x=2; i<3;...
[9 replies] Last: well.. @yanson that's what's written above. No it isn't. Here's Yan... (by dhayden)
I need some help with my project
 
I'd like to ask some professionals who can help me with a program project. For example, ATM machine program. But mine isn't actually an ATM program, I am just s...
[7 replies] Last: That's your code, I just copied it from your link. Why are you mixin... (by jlb)
Program Crashes Towards End.
 
I am not getting any compiling errors. The program crashes at the end of the first for loop. I haven't put in any validation checks (will do it when I figur...
[5 replies] Last: Thankyou, got it working. (by closed account Dj654iN6)
by Ibanez
Is this good for my FIRST EVER program?
 
Hello everyone, this is my FIRST EVER program written in ANY language. It demonstrates the use of Microsoft Visual Studio 2010 Express C++ to create a program t...
[3 replies] Last: It may not be an indicator, but "bloody well done!". Programming is ... (by tipaye)
by ajg55
Need help with istream parameters
 
Write your question here. For a project I had to write a lexical analyzer that implements the getToken() function. the getToken() is declared in a header fil...
[2 replies] Last: Also if the function would have been declared to accept an istream ref... (by jlb)
write a function that computes how many digits with values less than or equal to 5
 
Okay so I am new at c++ and was assigned a problem. I do not know exactly what I am being asked let alone how to even start this one. Can someone push me into t...
[12 replies] Last: fayeda2014 what did you do to get your code to run?? (by brim30)
Variable names
 
I am trying to find which is a valid option and am not able to find the answer. The 2 options are Sum_ and _s_u_m_. I'm thinking it is _Sum but looking for th...
[3 replies] Last: In user code: Sum_ is a valid name everywhere. _s_u_m_ is not a ... (by JLBorges)
March 2015 Pages: 1... 3031323334... 51
  Archived months: [feb2015] [apr2015]

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