Beginners - November 2013 (Page 69)

by tota
loop using counter control
 
can you please give me some examples on this topic, because i cant understand anything ,, please i realy need help thank you
[1 reply] : See the while and for loops in the tutorial: http://www.cplusplus... (by Chervil)
end of input file, partially correct output
 
Hey! Thanks for looking at this. I have an assignment that inputs data and outputs to console an average, etc. Everything works correct with one exception- I ...
[1 reply] : const int MAX_STUDENTS = 25; Within your while-loop, you have a fo... (by sherre02)
Adding Arrays Together
 
I'm trying to create a function that adds all the arrays together however I'm trying to figure out how to make my program know how many arrays have been populat...
[3 replies] Last: Sorry if my questions made me seem as if I'm not doing any research on... (by jvjvalerio)
Need Help with the time
 
I want to convert from Standard time to Military time (24 hours). Since I asking the user to input the military time first. And now I ask the user for min of th...
[3 replies] Last: Why not subtract 24 if hours > 24. I think I might do the whole calcu... (by Chervil)
SERIOUSLY ANNOYING PROBLEM!!!
 
Ok... so I am doing a program where you should enter a number that's not a 5 and you can't enter the same number twice. Everything seems to work fine but when I...
[5 replies] Last: Remove the int from in front of the function name. game(); ... (by AbstractionAnon)
by giblit
Very Large Integer
 
Would this be the fastest way to add two very large number with a result that is say a 256 byte number? Curious for a RSA-2048 encryption which uses a 256 byte ...
[no replies]
Extra line in output file
 
Hello, I need help with my output file. It gives me an extra line whenever I run my program. I have provided my while loop for assistance. whil...
[3 replies] Last: Thanks for your input. It worked and Thank you very much! (by DamienBlu)
How to print commas ONLY if the user input is in the thousands
 
Hi, I am in a first year C++ class. I am writing a program that is supposed to contain a flexible, general algorithm for base conversions. I am satisfied with m...
[no replies]
by enemy
prim numbers-output (1,2)
 
Hello! I wanted the program telling if the number is a prime number or not. Then, I also wanted, if the number is NOT prime, the program to write out at least...
[20 replies] Last: Thats ok. Though personally I would still put the sqrt() call inside t... (by Chervil)
NEW TO C++!!! ADDITION!! I am doing this for a school project!
 
I am doing a food store program, after the person inputs how many he likes each product, It'll multiply with the price, Now the problem is with the addition of ...
[8 replies] Last: #include<stdio.h> #include<conio.h> #include<stdlib.h> main(void) { ... (by deray0519)
plz solve this problem
 
u(n) is defined with : i. u(0) = a (a is an integer) ii. f u(n) is even then u(n+1)=u(n)/2, else u(n+1)=3*u(n)+1 Conjecture: For all value o...
[no replies]
allocate arrays in a function, return pointers
 
Hi commmunity, I would like to read vector file data using a function. There exist 2 pointers which point to the arrays test1 and test2 allocated and filled ...
[2 replies] Last: Thank you for the quick answer. It helps me much. I obviously didn't u... (by heunigreenfreak)
Need help! replaceing part of an null character array with a string
 
I got everything to work besides the replacing nouns function, which should switch out the words listed, if listed in the array with a random noun from a text f...
[1 reply] : you cannot use strcpy() with std::string . use the string function ... (by coder777)
I need for loop help
 
I am finishing up some homework on for loops. I am stuck on a couple of the questions. I need to make this for loop output a number given for x - 0.5. x is give...
[8 replies] Last: For your second problem is this what you want? #include<iostream> us... (by topnik1)
Array
 
Hi. Im trying to display a 5 X 5 table with random numbers. I'm having trouble because it doesn't display 5x5 table. Please help? Thank you! #include<io...
[3 replies] Last: Thank you :) Deeply appreciated (by Vanessa101)
by Nefri
Split string
 
Hello, im beginner and i need help with one of my programs. I must chech identification number if its correct but i have no idea how split string to check it. ...
[2 replies] Last: thank you :) (by Nefri)
Struct , Pointers
 
The program below, when activated, will ALWAYS hang when i retry the option for eg. Menu -> Option 6 -> successful output -> menu ( its a do while loop ) and ...
[no replies]
Please help me understand "set"
 
I have know idea how this program works and it was a question in a past exam. Can you please provide a link to a guide or a walk through of how this program ret...
[4 replies] Last: /////////////// SCARY iterators check ///////////////////////// #inc... (by JLBorges)
Another calling function issue and calling by reference.
 
I'm supposed to build a grade calculator using weights from different types of work (Lab, project and test), and for some reason I can't get it to work. It keep...
[10 replies] Last: Ugh, so I finally got home and capable of using my compiler and lookin... (by bigpurpleharness)
Work with folder
 
Hi! anyone knows how to return files in a folder by c++
[1 reply] : Boost libraries? http://www.boost.org/ or more simply: http://www.cp... (by mutexe)
November 2013 Pages: 1... 6768697071... 80
  Archived months: [oct2013] [dec2013]

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