Beginners - November 2012 (Page 36)

by TV5
help with increment and decrement
 
hi everybody ... can anybody tell me what is wrong with these statment cout << ++x++; cout << x++ + 1;<< i run it in the compiler and give me 2 ? why .. i...
[3 replies] Last: int x; x = 1; cout << "A " << x++ + 1 << endl; x = 1; ... (by Chervil)
by alext
User setting arrayvalues in a for-loop
 
Hi, how can I create a for-loop that lets the user enter values into an array? cheers!
[5 replies] Last: When you declare an array what it actually is is a set of data stored... (by alext)
by Xraze
A little help with Classes
 
Basically what I'm trying to do is INCREASE the value of a certain variable in the Private: section in a Class, for example. Class X { public: int s...
[4 replies] Last: Ohh, I see. Thanks! (by Xraze)
help me please
 
this is my assignment I really need help.. please help me.. https://plus.google.com/u/0/photos/105134395091337598671/albums/5796859357882706385/579685936260...
[3 replies] Last: thanks guys :)) (by Rosana Malaga)
Using vectors to remove redundant datas.
 
I have a text file to take in. Which contain datas like: Point1 [5, 10] Point2 [10, 11] Point1 [5, 10] Point3 [20, 50] Point1 [5, 10] If I store everything of...
[10 replies] Last: Point1::Point1(int xx, int yy, int zz) : Point(xx, yy) { setDistFrOr... (by Catfish2)
Cursor Blink Off and On
 
How can I set my cursor blink off and on in the output for the given code #include<iostream> #include<Windows.h> using namespace std; int main() { co...
[2 replies] Last: Wow. Really thatz a excellent one Chrevil. worked perfectly as I wish.... (by vichu8888)
Example on something that can only be achieved with pointers?
 
I started learning c++ not too long ago and even though I understand some of pointers I don't understand what they can do that you can't do without pointers! Is...
[4 replies] Last: The tutorial Catfish2 pointed you at includes illustrative code. See ... (by andywestken)
Multiple functions assignment
 
Hi, I have a homework assignment where I have to ask the user to give 2 points of a graph (a,b) and then I have to find the distance between those two points an...
[2 replies] Last: Two main errors. The return type of function distance() needs to be ... (by Chervil)
pHead->nBlockUse error
 
Hello, i have a problem and i need your help. In this code i'm trying to create 2 bidimensional arrays, and a third bidimensional array created from the sum of ...
[1 reply] : You need a copy constructor and a copy assignment operator. http://en.... (by Peter87)
2012VC++ FORM BUTTON EXIT_EVENT [Help me :<]
 
FILE > NEW > PROJECT > CLR EMPTY PROJECT. ADD > NET ITEM > UI > WIN FORM > CREATED NEW BUTTON AND NEW EVENT BUTTON_CLICK CODE LIKE: #pragma once ...
[no replies]
by ekolet
How can I read an output from dos console?
 
Hi, I am a c++ noob and what I need is to ; 1)open console 2)open a file via dos console 3)when I open it, it will return an output and I need to read it. ...
[9 replies] Last: Thank you! That works, 1 last question now I need to repeat this opera... (by ekolet)
inheritance ralated
 
#include<iostream> using namespace std; class package{ protected: double weight,cost_prer_ounce;//how do i ensure that weight and cost_per_ounce //take onl...
[1 reply] : flat_fee += Base::calculatecost(); (by Catfish2)
Reading from a file and assigning values to variables
 
so I have this code here and I am trying to read info from a file that was created for me to use. I for some reason cannot access the information from the file,...
[1 reply] : This is my code as a whole, many errors but... #include<iomanip> #i... (by ffredgarr)
passing a file to a function.
 
Hey there! I am working on a program that uses a function to get data from a text file. I pass the file into the function, that reads the data, and it p...
[4 replies] Last: Perhaps you could provide some code so we don't have to break out our ... (by cire)
garbage
 
WHY THIS CODE PRINTS GARBAGE ? ? void mymarks(double* arr,double* brr,int length1) { int a; for(a=0;a<length1;a++) { printf("\nEnter t...
[2 replies] Last: i got it ,, garbage is because of not using %lf at scanf thank u... (by shahzaib1111)
C++ Book
 
HI all, I am currently studying C++ Programming-Program Design Including Data Structures by D.S. Malik(5th Edition book. Is there any other books that deal w...
[2 replies] Last: thank you. Sure ill look into that (by vichu8888)
by Z feng
File I/O: writing linked list
 
Here is the problem: I made a class course , then I need to write them into file. Next time when I run program, i will read it first then write it again. But ...
[13 replies] Last: You only want to write nRecs to the file one time and that time must... (by cire)
by se123
Fibonacci Numbers
 
Hi you guys I hope you are having a great day so far. I have a question. I am supposed to write a program that starts with the number 1 and adds that number to ...
[13 replies] Last: I don't recall Fibonacci numbers ever starting with 0. Sounds like ... (by Incis B)
Need help with C-stings that return character strings.
 
I'm studying for my first midterm and I cam across a review problem that I can't quite figure out. This is the problem: Implement the following C++ functi...
[1 reply] : morano773, 1- Implement the following C++ function 2- takes a C cha... (by Incis B)
by NOFYE
Need help
 
Here's the problem: Write a program that prompts the user to input a string. The program then uses the function substr to remove all the vowels from the stri...
[3 replies] Last: @OP I'll try to help clean up some of your confusion. Is it a requirem... (by Thumper)
November 2012 Pages: 1... 3435363738... 75
  Archived months: [oct2012] [dec2012]

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