Beginners - February 2016 (Page 29)

by tanux7
[SOLVED] Problem with void function
 
Hello everyone! I'm new here as I'm new to programming, right now I'm studying how to write my own functions. After a couple of exercise i tried writing a void ...
[3 replies] Last: Oh dear! Of course! It doesn't return a value! I just need to create a... (by tanux7)
by nanJIL
beginner mini project
 
I have this project. I am not asking for the full coding, just help me in anyways possible or at least where I can ask for help. Please! Student Attendance...
[2 replies] Last: Please, take a look at this: http://www.cplusplus.com/forum/articles/... (by chicofeo)
please help me how to convert my programming from c++ to c language :(
 
please help me how to convert my programming from c++ to c language :( #include <iostream> #include <iomanip> using namespace std; int main() { char cho...
[2 replies] Last: First, the use of code tags with posted code is strongly recommended, ... (by keskiverto)
For loop inside recursion?
 
Ive been trying to understand this recursion I got from a tutorial. void processNode(aiNode* node, const aiScene* scene) { //std::cout << "this is the mo...
[7 replies] Last: The for loop of the recursion() function could be removed because it n... (by Peter87)
coin toss then repeat with a different input
 
Write your question here. I have completely the program for coin toss, however I want to do it again with a different USER INPUT. 1) it works, but doesn't a...
[8 replies] Last: I can't help you with your problem unless you post your newely updated... (by TarikNeaj)
by nanJIL
c++ basic coding
 
#include<string.h> #include<cstring> what is the difference?
[1 reply] : One is a C header, from the C programming language. It is a set of fun... (by Moschops)
by nanJIL
c++ basic coding
 
#include<stdio.h> and <iostream> is the same thing?
[1 reply] : No. "stdio.h" is a standard header from the C programming language. ... (by Moschops)
Reading user input and comparing it to array
 
I am making a simple game where a user inputs a hand of cards and the program evaluates the hand, giving it a score. A user should input a card hand of 13 ca...
[1 reply] : Your first decision is how the user should indicate that the input is ... (by keskiverto)
help with yes no question in do while loop c++
 
Can someone please assist me with this portion of my code. When I enter n or N it still displays the contents of the else if statement before repeating the enti...
[12 replies] Last: my topic in "coin toss repeat with different input" is similar concept... (by survivor31)
Continuing the loop in a new line
 
I'm writing the calendar program for my class, but I'm having problem to start a new line on Saturday and continue the loop. int main() { int day; in...
[2 replies] Last: thanks, =] (by aerichsen)
I have a question
 
Ok, so I have always wanted to learn how to code. However im not sure which programming language to start with. I have already looked at a few videos on c++ ...
[6 replies] Last: Thank you (by meshkez)
game program need fixing
 
Write your question here. #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { char choice; ...
[4 replies] Last: that's because of line 55 if(number != RandomNumber && number<=Random... (by mgoetschius)
by m0bb1n
assigning variables within if statement and used outside
 
Hello, How can I assign a variable within a if statement and allow it to be used outside of it? If that is not possible, what the best way to make the quest...
[2 replies] Last: I am such a fool. I had assigned the int random to numbers that didn'... (by m0bb1n)
getdata() function
 
How and where do we use Getdata() function, i did not understand what is the purpose of the getdata() function. can some one help me out?
[2 replies] Last: That function is not a standard C or C++ function. From the vagueness ... (by Tom56785)
Trouble with sorting an array.
 
I'm sure this code is complete gore to anyone who is fluent in C++, but I'm not sure how to go about sorting a user-inserted array and printing the middle eleme...
[7 replies] Last: I'm fairly sure the more usual way is to do sort(medianArray.begin(), ... (by shadowmouse)
by skhjr
how to convert a string to an integer
 
I am trying to write a program that converts a roman numeral number to an integer, but I do not know how to convert from a string to an integer. Can someone gui...
[2 replies] Last: I would suggest taking a look at this example from Stack Overflow. It ... (by Tom56785)
Graphics will not write
 
Hello to all. I'm new here. I'm just asking why the graphics stopped after a very long loop . I'm using visual c++. void initgraph(void) { mov = 0; m...
[no replies]
Need help with simple code for school
 
Hi all, I've been having trouble making this code work exactly as I want it too for school. The code should display: Input the first grade. 97 Input the secon...
[10 replies] Last: @Kurayami20XX When I wrote that code I thought you knew about functio... (by jgg2002)
for loop elements to array
 
hey all, just a quick question. how exactly do i add elements from a for loop to an array?
[5 replies] Last: that helps, thanks! (by dancivuk)
by cojeap
is this ok for keeping console open
 
I call this function at the end of main for not closing the console by simply pressing enter. i have tried various methods as i found in this thread: http://ww...
[6 replies] Last: so i got it to work after adding cin.get(); after cin.ignore thank yo... (by cojeap)
February 2016 Pages: 1... 2728293031... 46
  Archived months: [jan2016] [mar2016]

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