Beginners - November 2013 (Page 67)

curiosity of a noob c++ programmer
 
I just started learning c++ and I've learnt quite a lot, things like arrays, loops, structure, pointers etc.. buh all the codes/program only runs on comman...
[14 replies] Last: Please what is logic about! (by veektorh)
comment generation
 
Hi Forum, This is not exactly a C++ related query. Sometimes we see some copyright information at the beginning of the header and source files as comments. ...
[3 replies] Last: They don't have to be in-house tools - some IDE's (e.g. Eclipse) will ... (by MikeyBoy)
by Xidike
Smallest and Largest of N numbers.. (1,2)
 
I've made a program to find the smallest and largest among the n entered numbers by the user.. But in the following code if the smallest value is greater tha...
[24 replies] Last: or you can just use INT_MAX/2 or just int max for unsigned int (by topnik1)
C++ Graphics Handling Rectangle Animation
 
I Want to draw a rectangle in C++ with A, B, C, D sides and I want to animate A,B,C,D character to each other. i.g (A moves to B, B Moves to C, C Moves to D and...
[no replies]
A quick question about random_shuffle()
 
Hi just a quick question! I've written my code below and I was wondering if there is a way of using an algorithm like random_shuffle() to achieve the same thing...
[1 reply] : http://www.cplusplus.com/reference/algorithm/shuffle/ (by rozick1)
Unable to understand what a using directive is/does.
 
I am attempting to find out what "#include <iostream>" and "using namespace std;" accomplish. I have gained a very basic understanding of include directives, he...
[10 replies] Last: A using directive is a directive that tells the compiler to act as if... (by Lovely Soft Brains)
New to c++
 
Hey , it's been a few weeks since I've been learning c++ I got a question , I wanted the output to be" ******** *******8 ******78 . . . and so o...
[2 replies] Last: @mk12345 Please use code tags http://www.cplusplus.com/articles/z13hAq... (by Yanson)
I need help with the restrictions
 
the question is that I need help entering a figure that is a decimal and restricts I come from brazil. My english is bad jejeje ErrorEntrada=true; ...
[1 reply] : What type is s ? One thing that will help you asking questions here ... (by cire)
by ef91
Make a search of char data
 
Hi, I'm using Microsoft Visua Studio for writing a program that stores drugstore products, it has to let the search of products by ID, name, brand, etc. The sea...
[no replies]
Recursion and Linked Lists
 
Hi guys. Quick question for anyone who can help. I have a Binomial tree, three layers deep. (hopefully formatting works right on this!) ------4 ----2---5 --1--...
[1 reply] : I'm not sure I understand the problem. four->right->left = three; four... (by helios)
Need Help With a Summation Problem
 
Hey guys, I'm a beginner C++ coder (and beginner at programming in general), and I seem to have run into a problem. My professor assigned me this project and I ...
[9 replies] Last: Ah, thank you for your prompt feedback. I appreciate it. (by aNYthing24)
help me create a for loop
 
I need help creating a for loop for this problem a country club, which currently charges $2500 per year for membership, has announced it will increase its me...
[10 replies] Last: Which part? 1) Declaring membership outside of the loop. 2) Changing d... (by giblit)
by ABZO
Extracting numbers
 
Im having some trouble with a certain code. What im trying to do is ask the user to enter 8 numbers and then i want to extract the first four numbers, follo...
[6 replies] Last: Just use substrings to parse the string. Read the number in as a strin... (by Mobius1)
by rvrst
Reading from a file
 
Problem: Write a program that reads a file containing an unknown number of integers and displays the percentage of the integers in the file that are zero, the...
[no replies]
Please double check my answers
 
Please review my answers to this quiz. They are questions from a previous exam, to help students (like me) study. I've answered them best I can. If you could...
[1 reply] : 4. All options are incorrect, or the statement "Cannot assign value to... (by helios)
End loop with Ctrl+Z
 
In this program I have a vector to save new inputs from user into. I need to test for three conditions(if it's an integer, if int is between 0 & 100), and if co...
[7 replies] Last: just put while( !cin.eof() ) instead of while( true ). basically you r... (by giblit)
Shouldn't this successfully reverse the string?
 
Write your question here. I have a feeling that i've made some miscalculation here. I was certain that I could reverse a string via implementing the following ...
[6 replies] Last: string s = "Hello world!"; int i = 0; int j = s.length() - 1; while ... (by Duthomhas)
Why isn't this function working?
 
Hi, everyone. Can anyone tell me why this function isn't working? The assignment is to find out if the diagonal elements dominate their rows and columns. ...
[4 replies] Last: Another satisfied customer, ¡next! If you are serious, you should s... (by ne555)
by Tang87
Question about reading file into arrays
 
My question is about reading a txt file and inputting the contents into an array. I can get the file to open and read the values, and got it to skip spaces. B...
[10 replies] Last: Yes, you could sort it whether you use arrays or vectors. (by Chervil)
by xeltic
c++ dll not working
 
If I inject this to my application it does not work did I write anything incorrectly? #include <windows.h> #include <stdio.h> #include <iostream> #include <...
[no replies]
November 2013 Pages: 1... 6566676869... 80
  Archived months: [oct2013] [dec2013]

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