Beginners (Page 85)

Why not initialize your variables?
 
So, I read a lot of professionally published books and articles with code examples that don't initia...
[4 replies] Last: Right. OK. This makes sense. It seems like the answer is: It's prefere... (by Aaron Vienneau)
by lew13
Need a little help debugging
 
I get an error at line 23: A function-definition is not allowed before "{" token, and I don't unders...
[4 replies] Last: Either define the function before main or announce them in the top and... (by It3rat0r)
a program that prints input in different positions.
 
Write a program that asks a user to enter his/her first name, last name and the marks of three tests...
[1 reply] : http://www.cplusplus.com/reference/iomanip/setprecision/ http://www.cp... (by andy1992)
if else statement basic problem
 
This program keep on having 'else' without a previous 'if'. What is the problem exactly? #...
[2 replies] Last: as long as your if statement consists of more than one line, for examp... (by shahd95)
Problem giving an object another object / joust game
 
I am writing a jousting game for my 111 class and am having trouble figuring out why my Knight objec...
[3 replies] Last: At line 71 of your OP, you have: Knight userKnight(string name, int ... (by MikeyBoy)
Linked List: Inserting Value at the End
 
I've written as follows: #include <bits/stdc++.h> using namespace std; struct Node { ...
[2 replies] Last: void InsertEnd(int num) { Node *NewNode; NewNode=new Node; ... (by andy1992)
file i/o
 
so i know how to open and close files with the fstream objects. But what about opening a file and j...
[2 replies] Last: easy! thanks ! (by donvigor)
by wrylan
Can anyone help?
 
Could someone please thoroughly explain c++ ?
[3 replies] Last: Don't feed the trolls. (by MikeyBoy)
Is this co-dependency or bad overall design?
 
Hi I'm trying to write a chess program for one of my classes. Data encapsulation has been a serio...
[2 replies] Last: That was very insightful. Thank you. (by keanedawg)
Second Largest Array Sort
 
Given the following code which outputs the second biggest integer in an array of 4 integers why do y...
[2 replies] Last: Hmmm. Let array = { 1, 2, 4, 3 } fm=1, sm=2 i=0 1 !> 2 1 !> 1 i=1 2... (by keskiverto)
Nested loop shape help
 
Hi I'm trying to get this design done here and I'd love some help finished result or possible steps ...
[3 replies] Last: Google nested loops. Youtube nested loops. (by TarikNeaj)
Still open for suggestions....
 
First, why can I not get this code to highlight and format to code tags? Second, can anyone show me...
[8 replies] Last: you are correct, I missed the space correction... thanks again (by justhappy)
constructors and destructor
 
Hi, I'm having problems understanding this 1 example. Author of the book that I'm reading suggested ...
[4 replies] Last: Sorry if I couldn't answer in time. Yes, every object that has been co... (by S G H)
by bagol
What is next to do after learn basic of C++?
 
First, I will say that I'm new in C++ and this forum too. What I mean by new is that I still can't c...
[no replies]
Scope operator changing.
 
Why is it that in the second cout stmt of the main function, ::abc is printed out as 11? Doesn't :: ...
[3 replies] Last: But now I see, that main has been manipulating the global variable UN... (by Yanson)
Menu Based Programs and Nested Switch.
 
Nevermind, ty for the replies though.
[6 replies] Last: case 1: // NESTED CASE 1, CAN'T USE 1 FOR INPUT? Why wouldn't you b... (by fg109)
nested for loops simple question
 
Write a program to display following output by using nested for loop A9 A8 A7 A6 A5 B9 B8 B7 B6 B...
[4 replies] Last: Here you go.... char ch='A'; int num=9,i,j; for(i=0;i<5;i++) { n... (by programmer007)
By applying for loop, your program should find and display the largest and the lowest of the numbers.
 
Q)Write a C++ program that receives the total number of integers (N). Then, the program will ask for...
[1 reply] : You reset the min and max every time on lines 22 and 23. Currently, l... (by tscott8706)
function prototype
 
I am not sure what to put for display instructions and calculating the paycheck amount. Can anyone h...
[4 replies] Last: Break it up into steps. 1) Your code currently doesn't compile. That... (by tscott8706)
How can I do dynamic memory allocation inside an structure?
 
I'm trying to do a program that read some informations of a person and write them on a binary file, ...
[6 replies] Last: Yeah, I knew this..... (because since I started to study programming i... (by Gnomo Verde)
Pages: 1... 83848586
  Archived months: [mar2015]

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