Beginners - December 2014 (Page 3)

by Lee125
Functions
 
Hello guys. Why the function call just only have one,two,three respectively in this program. #...
[3 replies] Last: I just forget about the reference. Now I realise about value of x. Sor... (by Lee125)
Changing syntax highlighting in editor
 
I am trying to change some syntax highlighting words in the following program: https://searchcode.c...
[1 reply] : It is using binary search to find the word. If you want to add new wor... (by ne555)
by Lee125
Operator ::
 
Hello guys. What is tne function of this operator :: (line 25)? What is function of that operator?...
[4 replies] Last: Oh. I see now. Whenever we declared in the local but by putting :: wil... (by Lee125)
by Lee125
Static and automatic variables
 
Why the value y=11 after lopping and only the value of x changed. Can anyone help. I didn't underst...
[2 replies] Last: Ok thanks for that link fabtasticwill. When we declared x as the stati... (by Lee125)
Matching two different variables in a structure
 
So in this code, first the program asks male and female names and their ages. Then the program asks ...
[8 replies] Last: Andy's code lets you enter the male and female participants, but it do... (by dhayden)
Tree problem
 
Hey guys how would you solve this problem. Lets say we have a tree structure: A / \ B ...
[4 replies] Last: How would you find the size of longest path in tree? This is a diffe... (by dhayden)
Data storing method
 
Hey guys, I am developing a game and I got a question. So, I am loading data files, but not sure abo...
[no replies]
extra long numbers ?
 
Hello, I have a question about the length of the output. The code works but... #include <...
[3 replies] Last: > Which of the 2 do you prefer, and why? Whichever makes code easier ... (by JLBorges)
Year Born Program
 
I am trying to write a basic program where the user inputs their name and age and then the program w...
[6 replies] Last: @ Code Apprentice Sure, that's fine. At least the idea has been ment... (by TheIdeasMan)
Hi, need an explanation for a simple program
 
Hello guys & girls, my name is Robert. I have done some c++ back in highschool and now I'm trying t...
[4 replies] Last: age is an integer; we can compare it with an integer eg. if( age ==... (by JLBorges)
by atro
New to programming
 
Hey guys, I'm new to c++ and i'm struggling quite a bit. I've been watching thenewboston videos, tr...
[11 replies] Last: To get it clear, to make a function , 1) Specify return type, if none... (by Code Apperentice)
SFML drawing
 
When I go to the sfml 2.2 tutorials and setup the example code I am unable to do so. I have linked e...
[1 reply] : You can post this in the SFML forum: http://en.sfml-dev.org/forums/ A... (by Aceix)
rotate a set of random points
 
I must rotate a set of random numbers 0.122 radians, to do it i found the center of equilibrium of t...
[7 replies] Last: I think that you have a + where there should be a - and that is not th... (by keskiverto)
Why the conditional expressions need a bracket
 
I'm a newbie of C++, the following conditional expressions after "cout" need a bracket, otherwise th...
[2 replies] Last: Thanks for JL Borges's hlep, got it! (by xiaolifeiti)
by csharp
help in writing a class
 
Hello, I am having issue in writing the showName() function //CS 540, Final Exam, Fadi AL ...
[11 replies] Last: The Student ctor(s) and the setNumber mutator all make sure that numb... (by csharp)
Reading Specific Parts of a Text File
 
I am trying to read user setting from a file and need to be able to read the name and the settings. ...
[4 replies] Last: good point so it would have to be more like this. while ( getline ... (by marzdor)
Making a constructed language translator.
 
Hi, I am an absolute beginner at coding, and am in way over my head. I have created a conlang ...
[5 replies] Last: If you list the rules/show some code I am sure we could try and help e... (by giblit)
ISO C++ forbids variable length array 'k' [-Wvla]|
 
i need a 2d array with lenghts that can change how can i get around this? my program compiles but ...
[9 replies] Last: std:: vector<int> asda; And notice that your header does not uses... (by MiiNiPaa)
pointer 2 class member function??? how
 
hello, I don't understand why the code in line 14 doesn't work. I want to make an array of function...
[2 replies] Last: hey thanks a lot. :-) I implemented the array. So I post it to share ... (by skorefish)
When an audio file has finished
 
Hey there, I'm using a Teensy v3.1 to play 3 different sounds with a push button. Although I'm not ...
[no replies]
December 2014 Pages: 12345... 55
  Archived months: [nov2014] [jan2015]

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