Beginners (Page 64)

Some mistakes existing in the program and I dont know why
 
I know there must be some problems with the boolean expression in each if-statement. A friend tells ...
[2 replies] Last: Less-than is a binary operator. Binary operator has two operands and... (by keskiverto)
System::Object issue
 
Hi, I did a reference to a DLL and I am trying to use a method that requires a System::Object^ as a...
[6 replies] Last: Ooh sorry for that (by andy1992)
How to read from a text file and print into program for calculating integers?
 
Hi, Im 6 weeks into my uni course and I need to somehow in my task, read 8 numbers from a text file ...
[10 replies] Last: Wow, you're so great, I didn't know about that. (by EssGeEich)
I/O - How to read data from input file and write it to ouput file and calculate the average number
 
My input file is named scores.txt with the below information: Becky Muggah 34 65 76 43 76 34 76 3...
[5 replies] Last: If some people in your file have less than 10 scores, then that means ... (by andy1992)
Need help with strings
 
Hi, I need help with strings. I want to be able to search for a specific character, like "a". And if...
[3 replies] Last: I hope it will help you a little. Run this: #include <iostream> #inc... (by Observer)
by vxk
function parameter doubt
 
I was going through the C book Peter van der Linden and it explained that the following code is wr...
[9 replies] Last: const in a different place ..?? ... means differenct things: const ... (by MiiNiPaa)
How can I make this code in 2 dimention?
 
Hi all, The code below calculates the dx/dt=u equation by euler method. This calculates the u for t...
[3 replies] Last: Frankly, I have no idea what you mean by calculate the dx/dt=u equati... (by keskiverto)
by JeffP
Checking chars
 
I was assigned a program that has a single char value inputted. Is there a way to make it so that th...
[2 replies] Last: Thanks man. (by JeffP)
How to track when all the elements of a vector <bools> are false?
 
Note: I'm not using c++ 11 unfortunately so I don't have access to all_of(). I basically have a v...
[5 replies] Last: std::bitset<200> bits; // create a set of 100 bits. ... if (!bits.a... (by dhayden)
Where to begin with 3D programming?
 
So I want to make a 3d RPG game (Maybe even an MMORPG) and I don't really have any experience with 3...
[7 replies] Last: Thanks a lot. I will look into it! (by evilpineappe)
Loops with if statement
 
Hello. I'm making a program that asks user to input a day from 1 to 31 (as max day is 31), so when ...
[4 replies] Last: Ok, I think I understand it now. Thanks again (by CrazyCloud)
by krad23
Functions with arguments by reference
 
Is there any actual difference between these 3 function declarations? int f(int x) { return x; ...
[5 replies] Last: Oh, sorry for the double post, I didn't even see there was a 2nd quest... (by krad23)
Need Help continuing my program
 
I'm currently working on my assignment, but I can't get it to continue when user hit's 'r' or 'R'. D...
[4 replies] Last: Have you drawn a flowchart yet? There seem to be three separate cases... (by kemort)
trace tables
 
hi,i would like some help in determining what a recursive function will calculate. What i do know is...
[2 replies] Last: b will always be > 1 (by yusufseedat)
Need Help with Looping Error for Seconds and Distance
 
Good evening! I'm struggling with getting my loop to increment properly. I know that it has to do wi...
[5 replies] Last: On line 28 for (Seconds = 1; Seconds <= numSeconds; Seconds++); you... (by Jezze)
Differences between int vs long, float vs double.
 
Quick question, I know what each of these are, so far I know that an int can go into a float but ...
[3 replies] Last: Any integral variable (char, short, int...) can be cast into floating ... (by MiiNiPaa)
stringstream confusion
 
class ISBN { public: class Invalid{}; // exception class string get_ISBN() const ; ISBN(); ...
[2 replies] Last: Thanks a bunch. I figured there was a better method than screwing arou... (by OldNewb)
by Life24
Module vs Sub-Module
 
Hi, I want know more explain between module vs sub-module. Can you give me one simple example?
[no replies]
by hosoi
Why my output produces the wrong result?
 
I'm trying to add two objects, price and tax in this case, price is 9.99 and tax is 0.87 Supposedl...
[2 replies] Last: Thanks a lot ! Can't believe I made such a silly mistake lol (by hosoi)
Using a function to reverse an input number
 
So I'm very new to c++ and I'm taking a class for it right now but I feel like I'm not really unders...
[1 reply] : first try simpler things... 1. try to reverse inside main function. 2.... (by anup30)
Pages: 1... 6263646566... 124
  Archived months: [sep2014]

Cannot post in this page. To post a new message, go to the first page.