Beginners - June 2012 (Page 17)

"Variable declared but never referenced"
 
Hello i wrote this program but i got an error message for line 6: #include <iostream> using namespace std; int main() { int r; float pi=3.14159; cou...
[4 replies] Last: [quote=Doppler] cout << "The circumference is "; << 2*pi*r; This lin... (by closed account zb0S216C)
Is this book good or not?
 
Is this a good book to start as a beginner in learning C++? "Computing concepts with C++ essentials"?
[1 reply] : The review at ACCU: http://accu.org/index.php?module=bookreviews&func=... (by Cubbi)
Passing in objects
 
Hi there, I'm trying to make my project a little cleaner by making functions to do the work instead of having to repeat code, but I'm not sure how to pass the o...
[3 replies] Last: The main thing wrong with what you have is that deal() expects an arra... (by Lowest0ne)
which one of these is correct and does it matter?
 
#include <iostream> using namespace std; int main(){ cout << "hello world" << endl; return 0; } or is this one correct? #include <iostream> ...
[3 replies] Last: Thank you Zhuge thats all that i was wondering also thx to cubbi for ... (by jakethenoob)
Which editor for Ubuntu?
 
Hi, could somebody suggest me which editor to use to write c++ programs in Ubuntu? I have launched Kate and another editor whose name now I do not remember, but...
[4 replies] Last: Just compile it through the terminal, then you can run it But, I was ... (by ResidentBiscuit)
by skarla
Tic Tac Toe
 
Here is a one of my videos where you watch my program. http://www.youtube.com/watch?v=lkNoleAS_qM&feature=plcp
[no replies]
Need help with a program
 
I'm having trouble with a problem for school. I know that I should do this myself so that I will remember it better, but I am having a difficult time with it. ...
[16 replies] Last: I find odd numbers like you said in the end. I am sorry man i just wan... (by skarla)
help in a very simple program
 
I want to write a program that asks the user to enter an integer on 3 digits, extract and display each digit. #include <iostream> using namespace std; void...
[1 reply] : #include <iostream> using namespace std; int main() { char hundreds;... (by skarla)
How would you have done this?
 
Make a program to create a permutated index for a given input. For information on what a permutated index is see this thread: http://www.cplusplus.com/forum/be...
[3 replies] Last: Only bump I'll do. Critique my code! :) (by Kieth89)
Need help, script closing after first user answer
 
#include <iostream> using namespace std; int main (){ string Answer; cout << "Text" << endl; cout << "Text" << endl; cout << "text" << end...
[12 replies] Last: No problem.If you want add me in skype to hlp you whenever you want.(i... (by skarla)
Getline issue with string array?
 
Ok I am trying to write a part of a program (that will later become a class) that will read data from a file accounts.txt line by line each line in the file loo...
[7 replies] Last: lwtan90 I've encountered a small problem each line is a separate accou... (by Supervizor101)
mess with templates
 
In the following NON-working code, I want to minimize the double of code. operator+ has exactly the same code for both Matrix, Vector. Is there a way to keep it...
[no replies]
myStrlen help
 
I've been taking a course in c this summer, it's a beginners course and we aren't allowed to use any STL (other than stdio). So I printed out the functions fro...
[no replies]
by joer
error: no matching function for call to ‘std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(std::string&)
 
I am super new to programming and my brother helped me write some code in Visual C++ that worked great on my home windows machine. I am now trying to compile it...
[2 replies] Last: wow! Thank-you vlad. Your correction got me passed those two errors b... (by joer)
If and Else Statements
 
I'm taking an introductory class to C++ for this summer. The Lab assignment was to make a program that prompts the user to enter their first, middle and last ...
[2 replies] Last: YOU should put else if instead of else (by skarla)
Why do I get this error on my programs?
 
Hi! I was wondering why everytime I close these games they always get an error! The games come with my book, but they keep getting an error at the end even thou...
[no replies]
Do you see something wrong here?
 
PLease can you tell me what is wrong here? Thanks #include <iostream> using namespace std; void main() { int number, count, total; total = 0; c...
[15 replies] Last: It would be much better to write for ( int i = 0; i < number; i++ ) ... (by vlad from moscow)
by skarla
can help me?
 
How can i create it to not show only letter but numbers and symbol too.? #include<iostream> #include "windows.h" #include <fstream> using namespace std; ...
[no replies]
Pointers, Classes, and Sorted Arrays Project
 
I'm building a program that is supposed to take an array, initially empty, and insert user input numbers. Also, after the user inputs a negative number, the num...
[1 reply] : Please someone help!!! (by mbraha123)
Can't understand a question ?
 
From ANSI C++, Please see the question no 1.14 Write a program to display the equation of a line in the form... ax+by=c. for a=5,b=8,c=18
[5 replies] Last: No not a literal, I think you're overthinking this. Just how I did it ... (by ResidentBiscuit)
June 2012 Pages: 1... 1516171819... 51
  Archived months: [may2012] [jul2012]

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