
please wait
by abdalimran
Linked List: Inserting Value at the End
|
I've written as follows: #include <bits/stdc++.h> using namespace std; struct Node { int Data; Node* Next; }; Node* Head; void Ins... |
Apr 2, 2015 at 11:58am
[2 replies] Last: void InsertEnd(int num) { Node *NewNode; NewNode=new Node; ... (by closed account SECMoG1T)
|
by donvigor
file i/o
|
so i know how to open and close files with the fstream objects. But what about opening a file and just wiping it clean? what is the command to give? thanks |
Apr 2, 2015 at 11:24am
[2 replies] Last: easy! thanks ! (by donvigor)
|
by wrylan
Can anyone help?
|
Could someone please thoroughly explain c++ ? |
Apr 2, 2015 at 11:19am
[3 replies] Last: Don't feed the trolls. (by MikeyBoy)
|
by keanedawg
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 serious challenge of mine. The problem is that I want the moves t... |
Apr 2, 2015 at 9:19am
[2 replies] Last: That was very insightful. Thank you. (by keanedawg)
|
by rokujohaven
Second Largest Array Sort
|
Given the following code which outputs the second biggest integer in an array of 4 integers why do you need the secondMax if statement before firstMax if statem... |
Apr 2, 2015 at 9:01am
[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)
|
by skproduct
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 trying to learn http://i.imgur.com/hJl48LS.jpg For the desig... |
Apr 2, 2015 at 7:09am
[3 replies] Last: Google nested loops. Youtube nested loops. (by TarikNeaj)
|
by justhappy
Still open for suggestions....
|
First, why can I not get this code to highlight and format to code tags? Second, can anyone show me how to make this code display correctly when it runs ?????... |
Apr 2, 2015 at 5:32am
[8 replies] Last: you are correct, I missed the space correction... thanks again (by justhappy)
|
by etrusks
constructors and destructor
|
Hi, I'm having problems understanding this 1 example. Author of the book that I'm reading suggested to run this program to see in what order all kinds of constr... |
Apr 2, 2015 at 3:24am
[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 create something useful with C++ even after I learn it by mys... |
Apr 2, 2015 at 2:36am
[no replies]
|
by rokujohaven
Scope operator changing.
|
Why is it that in the second cout stmt of the main function, ::abc is printed out as 11? Doesn't :: refer back to the global variable which in this case is 10? ... |
Apr 2, 2015 at 1:54am
[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. |
Apr 2, 2015 at 1:17am
[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 B5 C9 C8 C7 C6 C5 D9 D8 D7 D6 D5 E9 E8 E7 E6 E5 ... |
Apr 2, 2015 at 1:16am
[4 replies] Last: Here you go.... char ch='A'; int num=9,i,j; for(i=0;i<5;i++) { n... (by shadder)
|
by b3ginn3r
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 N real numbers. By applying for loop, your program should f... |
Apr 2, 2015 at 1:11am
[1 reply] : You reset the min and max every time on lines 22 and 23. Currently, l... (by tscott8706)
|
by jwhong12
function prototype
|
I am not sure what to put for display instructions and calculating the paycheck amount. Can anyone help me with this? Q: this program asks the user to enter ... |
Apr 2, 2015 at 1:01am
[4 replies] Last: Break it up into steps. 1) Your code currently doesn't compile. That... (by tscott8706)
|
by CaMMelo
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, but in the 'name' variable I want to let it free to write an... |
Apr 2, 2015 at 12:55am
[6 replies] Last: Yeah, I knew this..... (because since I started to study programming i... (by CaMMelo)
|
Classes and ShowMe() |
Hello guys and gals. I am very new to C++ and I am working on this code assignment but I ma lost and do not know how to do it. Can anyone help me please. ... |
Apr 2, 2015 at 12:53am
[1 reply] : You can see my blog post at http://www.mycpptutor.com/blog/2015/03/31/... (by tscott8706)
|
by wh1t3crayon
Can you typedef a specific object?
|
I'm getting tired of writing long lines of code just to represent one object (I have to go through get methods, cast the objects, etc) so is there a way that I ... |
Apr 2, 2015 at 12:34am
[no replies]
|
by joeaswe1
Arrays, student scores
|
. |
Apr 2, 2015 at 12:14am
[2 replies] Last: . (by joeaswe1)
|
by bomgod1914
Need help with functions
|
Write your question here. Write a main that test for slope() and midpoint() #include <iostream> using namespace std; double slope(double x1, double x2, double... |
Apr 1, 2015 at 11:50pm
[1 reply] : Next time when you post your code, make sure to ask the question that ... (by tscott8706)
|
Help calling information out of an array. |
Hey Guys how's it going. I need help with arrays. I need to store all sine values from 0 - 90 into an array. So I made an array the size of 200 since the sine v... |
Apr 1, 2015 at 10:44pm
[1 reply] : You could simply calculate the sine every time, when the user gives an... (by keskiverto)
|