Beginners - November 2013 (Page 37)

by Garion
INT versus LONG
 
INT versus LONG What are the advantages of using one over the other?
[7 replies] Last: Thanks for the description. That helped me understand it more. I'll t... (by Garion)
by ephekt
dynamic array
 
Is it possible to change this array program to a dynamic array or do I need to take a different approach? #include<iostream> using namespace std; const int MA...
[1 reply] : I have coded something like that before and here is the code. I hope i... (by closed account 1v5E3TCk)
by enemy
declaration and initialisation of the array of the arrays
 
Please, what is the right decalration and initialisation of the array of more int arrays? Many thanks!!! array aaa ={a1 , a2 , a3 }?
[4 replies] Last: Hello! THANKS! Is second array's index 2 or 4? (U said 4 integers each... (by enemy)
by enemy
Average value of array_f elements-PLEASE HELP!!!
 
Hello! I have b in main, have to find in the Prime function 5 prime numbers bigger than b, fill array_f with them, and count m, as average value of all the ar...
[3 replies] Last: Thinking if I put st+=1 on the right place... (by enemy)
by aggsyb
Global Variable booleans question
 
Ok so I know in general its a really bad idea to use global variables but I have a situation where where 3-4 big functions that do alot of processing are using ...
[3 replies] Last: I think I understood you correctly the first time... maybe I just wasn... (by Disch)
Confusing errors in array
 
Hello, I was wondering if anyone had any ideas for how to fix the errors that I am getting. The code compiles correctly, but there are a few error messages whe...
[2 replies] Last: The uninitialized variables are a serious error - it means those varia... (by Chervil)
Generating random numbers / writing the main function
 
Hello everyone, so i am basically new to C++ coding and i am trying to write the randNum function in a way that it will give me these ranges The range for t...
[8 replies] Last: Good attempt at a function like I was referring to, but it won't work ... (by CplusplusAcolyte)
by JohnJH
Special class (1,2)
 
I am having some troubles writing a class. The class has to be called with 3 parameters, which is used to define a values... something like this. class In...
[27 replies] Last: if you define it with strong typing (bob is an instance, and bob_class... (by IWishIKnew)
by enemy
Please, URGENT!!!- function counting average array element value
 
Please!!! Have urgently to write this: function with 2 parameters (1 array and 1 int a). I have to fill the array with first 6 prime numbers >=int a. F...
[3 replies] Last: Uhkay... if you have five numbers: a , b , c , d and e , can you... (by Catfish666)
by enemy
expected 'while' before main???
 
??? int prime(int d){ int e=0; do { for (int i=2;i<d;i++){ if (d%i==0){e=e;} else{e+=1;} d+=1; cout<<e<<endl; } while(e!=20); return ...
[2 replies] Last: Thanks!!! (by enemy)
Best way to learn c++ ?
 
Hey guys .. I've been studying c++ for about 2 months now and I think that I'm not learning anything, for example when I tried to solve problems in : http...
[6 replies] Last: @The illusionist mirage that sucks man , I got the same prof that you... (by Cutefriendzoned)
Is it me or Everyones' Problem....Arrays!
 
I just started learning c++ and reached Arrays................Here he teaches something called insertion sort. I am not able to get at first glance........Is it...
[2 replies] Last: Learning from the same guy's book.......What a coincidence (by SarthakGhosta)
const *char from file?
 
Hi All, I have a function that takes a const *char as input. I do have a written file that I would like to use in the function, but I cannot seem to make a cons...
[no replies]
stuck on this exercise
 
Write a program that reads a person's name in the following format.: first name, then middle name, or initial, and then last name. The program then outputs the ...
[3 replies] Last: char first_name; char middle_name; char last_name; Each ... (by Chervil)
Reverse digits
 
I use the following algorithm to display the reverse digits. However, after I input an integer (actually a series of char), the program does not display them "...
[2 replies] Last: Thanks. It works. I like recursion because it's amazing. (by Nikko YL)
by Nefri
Finding all substrings
 
Hello, i must find every substring in string and output position of it. But i have no idea how i can find another substring in string when i already find one. ...
[6 replies] Last: thank you :) (by Nefri)
by olezek
Plz help
 
Im trying to make a monopoly game. Question1:How to make the program terminate if player has 0 or - cash? Question2:How to make second player? Question3:How ...
[3 replies] Last: I actually think you will very much struggle to make this game using y... (by Mats)
by enemy
"return 0" in the function (not end of function)
 
Hello! Please, if we put "return 0" somewhere in the function (not main) where it is NOT the end of the function, will the result be finishing of the function ...
[1 reply] : Yes, if your function returns a value, it'll return the first return s... (by The illusionist mirage)
invalid types of char int for array subscript
 
I'm supposed to write a program that if you type a phrase, it outputs the letters used in alphabetical order. Example: I say hi it would output 1 a 1 h 2 i...
[1 reply] : phrase isn't an array so phrase is illegal (by Yanson)
Book: Thinking in C++ ?
 
Hi Has anyone ever read or have the book 'Thinking in C++'. Is is just like allot of the other C++ books or does it go into more detail about how things w...
[2 replies] Last: Thanks Catfish.. (by dominover)
November 2013 Pages: 1... 3536373839... 80
  Archived months: [oct2013] [dec2013]

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