Beginners - July 2008 (Page 6)

How to compile with g++ and run in ubuntu(linux).
 
I'm a total newbie and it took me a little while to figure this out, so I made some notes about it as I went along. I hope some other tenderfoot will find this...
[2 replies] Last: Thanx Jones, that was quite useful! (by vinodar)
How to convert an integer to a string?
 
I'm trying to use a multimap in which the key I get from the integer in a loop. In other words, I want my map to look like: 1 => 'data1' 2 => 'data2' etc. ...
[15 replies] Last: I'm sure you did fine. Tests like that are always a pain. There are... (by Duthomhas)
ftoa
 
I need to write a code of ftoa (means float to alphabet) I refered the content of itoa, but I sill have the problem to handle the digits after decimal point. ...
[5 replies] Last: I have already done it, use itoa and multiply by 10 the decimal digit... (by Bazzy)
by Tirno
Strange compile errors
 
Hey, I was compiling an old programming assignment about manipulating polynomials represented as linked list of its terms and I ran into a plethora of unfami...
[no replies]
Use of for to sum sequence of integers
 
I am spending some time jumping back into C++ as it's been a while and I'm in the process of doing some self study. The problem is as follows: Write a progr...
[1 reply] : I just figured it out :) #include <iostream> using namespace st... (by Return 0)
Viewing source of library?
 
Is it possible to view the source code of library classes? Such as the string class? I would like to learn exactly how they work, as it would be a good learn...
[1 reply] : If you have to ask, you aren't ready. The STL is very complex, extreme... (by Duthomhas)
Add a string in a char variable
 
Hi I am new here and this is my first question. :) I have one variable with name wall_temp as char And one array with name levels #includ...
[6 replies] Last: You can only do it at once with strcpy(). As I sayed before you can n... (by Mitsakos)
numerical systems
 
I want to write a program , that shows numerical systems in "10" in "8" , "16" , "2" systems , I've done in "10" so far and I'm confused how to do in other syst...
[6 replies] Last: as mentioned in chapter 2 of "thinking in C++ (v1)" What about it... (by Mitsakos)
finished: A very simple accounting program
 
I modified it by visual studio 2005 and it works with it correctly but i has errors by my old compiler(borland C++ 5.02). errors in the last code was caused by...
[no replies]
problem
 
I'm creating a small program: #include <stdio.h> #include <conio.h> #include <string.h> main() { int letters,date,size, age; char name ; clrscr...
[2 replies] Last: Thanks , it works ! (by m4k4v3l1)
Segmentation errors in simple 2D array
 
I took an intro C++ course last semester and to get back into it I've been trying to do a simple program that reads a text file and fills an array with the data...
[1 reply] : Thanks for the [ code] tags. From just a quick glance (and no real... (by Duthomhas)
by eshwar
wat is the project menu for ?
 
Hi, In turbo c++ v3.0 there is a menu called project. It does not allow us to create a new project.so I copied the one from the examples(that comes with it) ...
[5 replies] Last: Tutorials: The one following the introduction, creating 'your first pr... (by Duthomhas)
Random Generator.
 
Hey guy. I need some help with a random number generator. I looked through the post, and found this random generator but for some reason it didn't work out ...
[5 replies] Last: Thanks sorry I was not bright enough to understand the explanation (by eshwar)
6 functions using do while in case statement
 
# include <iostream.h> void caller(void); int caller2(void); int caller3(int x); void caller4(int x); int divide(int b,int c=2) { int r; r=b/c; return ...
[1 reply] : Here is a working program. There were many issues 1) brackets were no... (by anilpanicker)
fractions
 
# include <iostream.h> int cube(int n=1);int square(int n=1); int main() { int n=1;{ for (n=1;n<=5;n++) cout<<"number"<<n<<"square"<<square<<"cube"<...
[4 replies] Last: Thanks a lot sir! it helps... (by dummyatplusplus)
how to compute the average of a class
 
See, my program is suppose to run like this...1st the question "ENTER NUMBER OF STUDENTS(MAXIMUM OF 15)" would appear...and depending on the user's input..this ...
[5 replies] Last: hey! Otakugirl... how about making your program a multi-dimensional p... (by unattached)
Searching a two dimensional array (1,2)
 
Hi everyone! I am currently a student taking a C++ programming course online. I was doing good until I hit the two dimensional arrays. Anyway, part of my ass...
[30 replies] Last: Guys! How about a two-dimensional program where you must input the nu... (by unattached)
by astro
Opening exe problem
 
i am making a program that requires me to open an EXE. the problem is that it "claims" to open it:. this is what it looks like: http://img517.imageshack.us/i...
[1 reply] : I don't think your system command is correct... Try using: system... (by Mitsakos)
Cin.fail()?
 
I don't really understand the usage of cin.fail() #include <iostream> using namespace std; int main() { int number; do{ cin >> numbe...
[4 replies] Last: Also, for what you are doing, include ctype.h or cctype, and do this: ... (by QWERTYman)
Counting Recurring words
 
I've got a small problem, I'm unable to count the recurring words. it counts on its own and the number calculated is wrong. here is my code. #include<stdio.h>...
[1 reply] : Your problem is as yet unclear. Are you counting the number of words? ... (by Duthomhas)
July 2008 Pages: 1... 45678... 15
  Archived months: [jun2008] [aug2008]

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