Beginners - June 2011 (Page 9)

Reference
 
I am trying to get reference working with my program but am having difficulties with it giving out the right number. I am just working on the void GetArea(doubl...
[2 replies] Last: By passing area as a parameter. Please use code tags, the code is comp... (by Athar)
Reserved Word
 
I have an easy question for you all? I think. I have installed Visual Studio 2010 and I bought a beginner's book, so I have since come a little further, but. ...
[7 replies] Last: Hello to everyone. First thanks for your help everyone and many than... (by Tigerblomst)
Writing on a file problem!
 
Hi! I want to create a program which writes on a file an array of integers and then returns the highest value of this array. I'm showing you the code , CAN SO...
[8 replies] Last: cout << data.tellg() << endl; cout << data.tellp() << endl; What are ... (by alendrex)
Organizing and beginning programs?
 
I am totally new to programming, but i have a good understanding of the basics. My problem is I have trouble starting or understanding what is being asked of me...
[2 replies] Last: Thank you. I didn't know that I could have left out the variable total... (by KingDreGo)
by torque
Float Number Multiplied by 100 to Turn Into Integer
 
I need to write a program that converts an input of money in the format of dollars and cents (2.53) and output it into how many quarters, nickles, dimes, pennie...
[5 replies] Last: I can't. The professor said the input has to be float. What I ended u... (by torque)
Another error code...
 
Hello again! I am creating a simple calculator, just for fun. I keep getting this error: " ISO C++ forbids comparison between pointer and integer"... What does ...
[2 replies] Last: Oh, thank you! Now it works as a charm! Thank you @modoran! (by MisterArrow)
Double precision operation
 
I am working on a code and I see something I do not expect. The code essentially does a great deal of number crunching. The code is deterministic. There is no i...
[no replies]
Error code
 
Hello. I am making a program for adding text to a file and more. I get this error code: "expected primary-expression before 'else'" and "expected ';' before '...
[4 replies] Last: Oh that is a good idea! Thank you! I will start doing that. (by MisterArrow)
Bank Account Calculator
 
#include <iostream> #include <Windows.h> int main() { short int current_balance;//current balance of your bank account short int total_cost; short ...
[6 replies] Last: Hah, that's clever. Thanks for that. :) (by Ikaron)
Returning an Array through a function
 
I want to create an Bi-Dimensional Array of type char in a function, and then return that value. Is there a way to do so?
[4 replies] Last: OK, I will wry it with a uni-dimensional array. (by Nisheeth)
void
 
Can you please help on this. I have a C program where I am calling a void function. void Read(int num, int (**param)) { All the calculations. } ...
[3 replies] Last: No problem. (If you're done with the thread, you can mark it as solved... (by anonymous23323124)
by tonnot
Initial values of variables
 
About initialization of variables...(read here in cpluplus) When declaring a regular local variable, its value is by default undetermined Is there a way to t...
[1 reply] : You have to explicitly assign them zero. Or, much more verbosely, use... (by jsmith)
new task befor 27th of june
 
Assignment Problem Statement: Printing Electricity Bill Detailed Description: Write a C++ program in which you have to: 1. Create a text f...
[9 replies] Last: i have made it yesterday but that was two files i was just want a litt... (by haseebsarwar42)
Getline not reading from a file
 
I have made a program that will read the data from a file and then search for a specific ID, and then present the data for that entry. Now this is my code: ...
[8 replies] Last: C'mon I use VS Express 2010, on Windows7 and it works fine :)) May ... (by Nisheeth)
Overloading operators
 
I'm not able to compile this on VS 2010. Can someone try it on theirs and give me any pointers on how to fix it? #include<iostream> //Input/Output stream ...
[1 reply] : error C2668: 'sqrt' : ambiguous call to overloaded function c... (by LB)
Problem with VS 2010?
 
Or is it my code? Can someone compile this and let me know if it works for them? I'm getting errors saying it can't access the protected members in the String ...
[2 replies] Last: Oh, of course. Thanks! (by pastamaker)
Vectors
 
When using vectors, is it better to use vectorName.at(i) or vectorName to get values at an index?
[2 replies] Last: Thanks. (by Zking773)
Is there a good SDK to use with cygwin?
 
Are there certain editors or software development kits that can be used in a linux terminal? Or with Cygwin? And are free of charge?
[10 replies] Last: You can execute pretty much any normal cmd command by preceding it wit... (by ascii)
by opie
Program for quizzing user on multiplication
 
What the program should do: The program should allow the user to specify a range of values for a times tables test. The bottom end of the range for test purpos...
[9 replies] Last: I got the last part. (i like to send in the completed part if someone... (by opie)
Delete self?
 
Hi, is there any way to add code to delete self, like, you will run program, it will do something and then delete his .exe? I don't know how to do it cuz it gi...
[5 replies] Last: Impossible, windows keeps the file stream open for a program, so it ca... (by LB)
June 2011 Pages: 1... 7891011... 41
  Archived months: [may2011] [jul2011]

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