Beginners - August 2010 (Page 10)

problems with header files
 
I am trying to learn the concept behind calling functions using a header file, but whenever i try to compile, i get an error on line 6 of heres the code ...
[10 replies] Last: Are you linking to importantbusiness.cpp? What IDE are you using? (by Disch)
Scoping problem?
 
Hi all, 25+ years in this trade have taught me never to suspect a compiler bug until lots of others have had a very good look at the code! So, here we g...
[7 replies] Last: If the intention is to keep scope local to the file, one should use th... (by PanGalactic)
Turkish character problem in pure C++
 
I couldn't solve Turkish character problem in C++(standard library).If I use wstring for a Turkish character,writing: wstring TurkishCharacters; an...
[3 replies] Last: Thanks for your answers.Could you write a simple full code which uses ... (by Awareness)
by Fisher
ifstream file handling
 
Hello, i'm trying to make a little code i have more efficient and faster. I have a program wich opens a number of text files and make some operations in a...
[3 replies] Last: She fstream is not the contents of the file, it simply contains the m... (by Galik)
segmentation error in vector?!
 
I used below codes to pass a value from vector to my cpp file. While i'm doing that, i got segmentation error in my main cpp? Is there anyway to pass the vector...
[1 reply] : You'll need to post more code. I don't see any problem with the above... (by Disch)
by Mr9mm
Logical problems
 
I do not know what is wrong in this code could you check it for me ? #include <stdio.h> #include <stdlib.h> #include <string.h> #define SIZE 15 ...
[2 replies] Last: Do you really expect us to sift through 2 pages of code without any hi... (by Disch)
preventing 0 when dividing by large numbers
 
Hi guys. The following line: cout << 1/1000000000; gives 0. I thought that this is a question of representing small numbers but this line gives 0 as...
[2 replies] Last: Got it, thanks. (by yotama9)
by Janman
Text color in C++
 
Hello! I'm new to C++, and I'm making a text game, where I want the text to be orange. The problem is that I can't figure out how to make it orange. I've loo...
[13 replies] Last: Also: http://www.cplusplus.com/forum/beginner/5830/#msg25972 http://... (by Duthomhas)
Looping array?
 
Hi, this will be my 4th time to post question in this forum. Currently, I am facing a problem with getting a string to store. Let say that I write a program of ...
[7 replies] Last: thanks for those info.. it works.. thank you very much.. (by kenhapi)
Problems with Calculator Program (1,2)
 
Hi, This is my first post since i just joined. Ive wanted to learn C++ so i decided to download the Dev C++ from Bloodshed dot com. And when i made a Calculato...
[22 replies] Last: http://cplusplus.com/forum/beginner/27467/#msg147669 sorry. I didn'... (by kaduuk)
15 character limit in string attributes in Classes (1,2)
 
Hi I have created the following class include <iostream> include <string> class Staff{ private: int StaffNumber; string Name; public: void P...
[20 replies] Last: Yea, I have actually thought about this even before. This hole in the ... (by greenscar)
If I want to go Visual
 
Good day to you all, I'm a beginner with C++, I program with this amazing language for fun, because I have not yet found a job to use it professionally. T...
[11 replies] Last: wxWidgets at http://www.wxwidgets.org is a good GUI library that simpl... (by Mazd)
invalid constructor call
 
i have a class myClass that has 3 constructors defined for it //myClass constructors //default constructor myClass(); //copy constructor myClass(myClass...
[4 replies] Last: thanks that fixed it (by sparticus37)
Array problem give me some clue
 
Level of prog 2 in turbo c hello, good day everyone here's some problem. my friend give this and i can't solve it. :( sample output: Enter Set A:{1...
[no replies]
cin.get problem
 
The second cin.get in my program is not taking in information. By that I mean, the program skips it, and doesn't ask for input. It just goes straight to the cou...
[4 replies] Last: to answer your question, it's probably the system(pause) getting input... (by gcampton)
How to print array on console screen?
 
Hello I have a question about arrays. How to print these arrays on the console screen? I don't want to print just one, I want to print out all of them at once...
[2 replies] Last: Thank you so much!! :) that is exactly what i wanted to know. (by Shofahi)
Function problem.
 
Hello, I've got a problem. I've got 2 functions Both calling upon each other at specific times but the First function can't use the 2nd function because it h...
[11 replies] Last: Add these like right under using namespace std they are called funct... (by CodyShort)
by empnik
Strange problem with include file
 
Hello. I am working on a project in Visual Studio 2008. It has over 50 classes divided in folders and subfolders. Everything compiled nicely except two lines: ...
[5 replies] Last: I finally solved it. I deleted all include paths and entered knew ones... (by empnik)
Not understanding how software works.
 
I have been programming for about two years (C/C++, Java, C#). I feel that I have gotten pretty decent in these languages. I have now started college and a ques...
[3 replies] Last: I was wondering how is it possible that I can program an application ... (by Athar)
Unable to understand the logic behind nested for loop- now with 3 loops
 
Hi.. I still do not understand the logic behind the nested loop.. I was trying to come up with a program that would display this. 5 5 4 5 4 3 5 4 3 2 ...
[7 replies] Last: thanx guys that code given above by kalp1200 worked me out practically... (by clintonharry)
August 2010 Pages: 1... 89101112... 28
  Archived months: [jul2010] [sep2010]

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