Discussions Q&R
While prototyping friend functions in a class is it necessary to always pass the address of the object as parameter?If so why is it that we have to pass address as parameter..In programs involving compositions we never used addresses...Why is the need for address of the objects while using friend?
4 Votes
1 Réponseis the javascript used for server side same as that of client side javascript??
i mean is syntax exactly same.
i want to know difference. there must be some.
i know node.js is used in backend and jquery,angular in front end, but overall they r javascript so why should it matter???.
thanks in advance
2 Votes
3 Réponseshello guys? how are you. i am zeeshan ali from pakistan. i have been in touch with this app for a very long long time. i have found so many friends awesome.. and we do combine study over the internet. anyone of you is interested then join us on facebook by searching this number 03033951255
0 Vote
4 RéponsesHow can I read from a file this line
19 34 Gateway Arch - St. Louis, MO.
The first digit is age, second timeUsed, and the rest description. So I want to read them and store them in a variable.
The code insime my while loop of my File is int age = reader.nextInt();
Int Tused = reader.nextInt();
Description = reader.next()
0 Vote
4 RéponsesI have a PHP multiD array like array($arrayA, $arrayB, $arrayA, $arrayC, $arrayC, $arrayA...........)
ho can I get a resulting array which have distinct elements from this array and sorted with the more occurance first like...
array( $arrayA, $arrayB, $arrayC)
because array $arrayA was 3 tumes in first array so it comes first in resulting array.
0 Vote
3 Réponsesx = 42;
int num = 0;
while (num <3)
Consele.writeline (x);
num++;
int x = 42; is just an int with an asigned value of 42
int num=0; is what initiate the count for the while loop
while (num < 3); means 0<3 true, 1< 3 true, 2<3 true, the loop end at 2 bc 3 <3 is false
consele.writeline (x) will display 42 while num < 3
num++ will execute and then add 1 to check if the while loop still true, but it stop at 2, bc 3 makes it false.
so the consele.write will write 42 three times. x=42, remember the (x)
0 Vote
2 Réponses
so although using srand(time(0)) can be used to get truly random numbers, how truly random are they? For example, if one were to call this method at the same time (in this example, if one were to use this command at 51s) each time would the numbers generated be the same???
If so, are the numbers still truly random??
And if this theory is true, how can one generate truly random numbers that cannot repeat based on external variables (e.g., time)?
2 Votes
4 RéponsesHello Group,Is there any source where I could find multiple problem programming question on a single topic, so that I could get a good hang on those topics. for e.g, lets say I am learning 'if else' then I could have question and solve 30-40 examples on just 'if else'..Kind Regards,Adarsh
0 Vote
1 RéponseI have 10 variables called, int1, int2, int 3 and so on. The user can write one number into the console. If the user types 7, I want to add 3 to the value of int7. how do I do this without 10 if statements? can I somehow do something like, (int + "userinput") += 3?
thank you for your help! :D
0 Vote
2 Réponsesso far in section 1 question 2 area all of the videos have been ads that if you skip the add it just brings up the questions you need to answer. also if you play the add all the way thru you get the same exact thing. luckily I'm using this as a refresher course but I would think if I didn't know anything about c++ then I could be pretty lost missing videos.
0 Vote
2 RéponsesAujourd'hui en vedette
Help please?
4 Votes
Ejercicio Pytho
0 Votes
What is that z for
0 Votes
Suggestions needed
4 Votes
Game development
0 Votes
Ruby programming?
3 Votes