Beginners - June 2008 (Page 7)

[SOLVED] How to let user name text files
 
#include<iostream> #include<fstream> #include<limits> using namespace std; int main() { string c, s, t, u, b; bool a = true; cout << "Welcome to t...
[4 replies] Last: WOW. I feel so dumb. Then again, I wrote that at 11 at night, so... (by QWERTYman)
illegal else without matching if
 
# include <iostream> using namespace std; int main() { int hc=50; // price for hair cut int cp=500; // price for cellophane int ho=150; // price fo...
[4 replies] Last: I have added a link to this thread, from the other one. (by closed account z05DSL3A)
comparing two different strings question?
 
i have a program and was wondering if i could compare a variable of type firstword to just word. Example if(firstword =secondword); i am writing hangman game...
[1 reply] : Hi, yes you can compare an element in an array to a variable of the el... (by Faldrax)
second output advice using loop
 
There is two parts to the code, the first which I have worked out with my very basic knowledge of C++. The second part is suppose to compute the total cost of f...
[5 replies] Last: Hi, the code you alreay have ends with tuition equal to the fee 10 yea... (by Faldrax)
what is error C2181
 
Im getting a message illegal else without matching if, im using the if else ladder, i have put the opening and closing bracket on every condition, but nothing s...
[3 replies] Last: You have got code in between your if and else if if(...) { ... (by closed account z05DSL3A)
DATA CONVERSION BETWEEN CLASSES
 
Hello, Iam new to classes.I had written the following program to test data conversion between different data types in Dev-Cpp.But I am unable to debug it .P...
[no replies]
Binary I/O
 
The program i've created is essentially a calendar. You add events, delete, search for etc. when you close out the program, it opens a txt file and writes the...
[3 replies] Last: No...there are absolutely no distinguishable characters in the binary ... (by aeronet)
passing struct and array into a function
 
I am trying to create a function for a formula that uses a structure with an array to input the data but am having a hard time figuring it out. Does anybody ha...
[3 replies] Last: Line 25: double intTemp(double Q, double tsurf, int numWalls, wallC... (by Zaita)
Pointers and Classes :: Trying to grasp further
 
Hello Everyone, I understand the basics of pointers and classes, but there is still a lot I don't comprehend. I understand that passing a parameter by r...
[2 replies] Last: As for your question no 1. 1) Because references are typically implem... (by Zaita)
Trouble with global variables
 
Hi there, I'm new to C++ and I'm trying to teach myself using the book "C++ a beginners guide" by Herbert Schildt My problem is that on page 183 of this ...
[9 replies] Last: With your original code. The problem lies in that you have a class wit... (by Zaita)
Best compiler
 
I was wondering what the best c/c++ compiler and ide is. I personally love code::blocks, but my friends say that the VC++ compiler is well worth it. I have ...
[6 replies] Last: I would say Dev-C++ is user-friendly upto a point. It's almost like th... (by Zaita)
by djr
Recursion
 
I am having trouble with my assignment that deals with recursion. My assignment is to create a recursive function that will accept a positive number, then prin...
[4 replies] Last: Now that I have that fixed, I'm having trouble on another part of the ... (by djr)
using void * ?
 
Hi, I've got a problem using void * I'm using sqlite in this way: unsigned int *anzahl=NULL; ... anzahl=(unsigned int*)malloc(sizeof(int)); rc=sqlite...
[8 replies] Last: pointer... that's it thanks again (by michse02)
I need this input all at once but I cant, it appears one by one
 
this is a program that s intended to appear all at once and the input should start at the initial service with the total appearing at the bottom of the screen i...
[3 replies] Last: The cin stream is tied to cout so any time you use it the output i... (by Duthomhas)
C++ Turbo, Any Graphics Available?
 
Hello, I have the Borland C++ Turbo program and I'm wondering, can you use graphics and such with a graphics.h library? I've done graphics before on a diffe...
[5 replies] Last: Other than the two I already posted? (by Duthomhas)
User Agreement
 
who can help me with a .txt file which contains a general software user agreement ?
[6 replies] Last: thanks a lot (by ioanmih)
What is a good IDE/Compiler to use?
 
At the moment I am using Dev-C++, but it seems to be a bit out of date. Also, when I try to do some of the basic tutorials, if they have "Return 0;" in them, i...
[5 replies] Last: Dev may be dated, but I still use it, lol. @hartmannr76' Try not to ... (by QWERTYman)
Problem with variables passing values
 
Hi all, The following payroll program assignment compiles and runs, reads input file and outputs the headers, employeeid, and hoursworked fields but no fields ...
[3 replies] Last: Thanks guestgulkan, you hit it on the nose. Now the output is correct ... (by archer86)
gcc GPL question
 
If I compile a program with gcc's c++ compiler does that mean that the compiled executables and object code are GPL, ie not allowed to be sold or given propri...
[2 replies] Last: It does. Thanks. (by DrenThales)
Sorting Classes using Merge Sort
 
Hi all, I'm very new to C++ but not so new to programming (I know C language and HTML) Well, what I wanted to ask is how do I implement a sorting mechanism ...
[2 replies] Last: Thanks a lot! You really helped a lot! (by yonifra)
June 2008 Pages: 1... 56789... 13
  Archived months: [may2008] [jul2008]

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