Beginners (Page 75)

12-element int array named days
Declare a 12-element int array named days. Assign the number of days in each month to the array, usi...
[1 reply] : You need to be looking at using flow control, i.e. IF statement. htt... (by Softrix)
Hello there!! i'm still biginner in c++. Can someone help me to code a two searching and two sorting...
[no replies]
how to do this series 1+2+4+7+11+....+56
[3 replies] Last: for(int i=1, dif =1; i<=56; i+= dif, dif++) EDIT: please don't crea... (by anup30)
Function to remove an array element
Hey all, I'm trying to write a function to call to main that will remove a string element in a user ...
[3 replies] Last: Just replacing wouldn't suffice. You need to move the elements from th... (by coder777)
Multiple character constant in switch cases.
Hi CPP Guys, I am using switch statement to perform some specific search in my simple program, but w...
[7 replies] Last: Thanks, I am gonna learn that too. BTW I have to study about Boolean d... (by SobanSA)
Stacks with dynamic data without Classes/STL
I am having major problems here. I am still in the early testing stages of a program that is suppose...
[8 replies] Last: fg109, Thank you for your assistance. I was able to get my program to... (by frosty436)
Counting Prime numbers within a range.
Hey I'm having trouble with a problem from school. I need to write a program that counts the number ...
[no replies]
Multidimesnional Array
Make a program that will ask for the number of rows and column to output a two-dimensional array usi...
[9 replies] Last: Good! (by shadowCODE)
by camk16
Help Writing a Loop
#include <iostream> using namespace std; int main () { int i = 1; int n, Sn, sSum; cout << "...
[15 replies] Last: Thx for the explanation of pow, fun2code. (by thomaselder84)
Proper form when working with vectors
If, for instance, I have a function similar to this to initialize objects (don't take it too literal...
[3 replies] Last: Yes, but not having to deal with dynamically allocated memory is much ... (by muffin1)
Switch statement help
everything works fine except when the switch is false and immediate closes the prompt how do i fix t...
[no replies]
by map4
Control Break - Help!
Hello. I am currently working on an assignment where I am given a data file that contains a list of ...
[no replies]
For loop and Null 0
So im writing a For loop to read a string letter by letter, and I want it to stop at the Null 0. How...
[1 reply] : The for-loops syntax has (init; cond; incr) and the loop iterates as l... (by keskiverto)
by Xefin
Assistance in a walkthrough of a lab
Lab: You are to develop a program that will determine what time zone random samplings of residents l...
[4 replies] Last: We have to basically do the lab twice, once using CASE and then IF/ELS... (by Xefin)
Calculate the monthly sales statistics
"ABC Company needs a simple program to be written to calculate the monthly sales statistics of their...
[1 reply] : Please note, that this is not a homework site. We won't do your homewo... (by keskiverto)
I can't compile this for this reason:
error C4700: uninitialized local variable 'h' used error C4700: uninitialized local variable 'R1' u...
[3 replies] Last: Let me write one possible main() for you: #include <iostream> int mai... (by keskiverto)
Help launching google chrome
I'm trying to launch google chrome from a program, but it won't work. It opens up the console and ab...
[no replies]
by Lee125
Difference between refference and pointers?
can anyone explain what is difference between refference and pointers. Is there just only differ its...
[5 replies] Last: Thanks to Peter87 and keskiverto. (by Lee125)
Best code to prevent negative numbers?
Hello, I went back to this old code that I wrote for fun. I realized that while invalid input is blo...
[4 replies] Last: Thank you all, I got the code working. I used peter87's solution, but ... (by Mike Teavee)
Can you explain code?
Can you explain what exactly exp >>= 1 does in the code bellow? int ipow(int base, int exp) {...
[3 replies] Last: I could not understand why they shift the bit to right. But it's clear... (by Je suis Charlie)
Pages: 1... 7374757677... 93
  Archived months: [feb2015]

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