Beginners - January 2008 (Page 4)

Pls help me with a code im new
 
this is supposed to be a simple calculator but it either returns a random number or 0 here is the code #include <iostream> using namespace std; int m...
[3 replies] Last: Also, don't use "\n", just use endl. cout << "You chose " << type ... (by AzraelUK)
Find largest and smallest number
 
Hi I am new to C++ programming and I have an assignment that has been driving me crazy for the past few days. The assignment is as follows... Write a progr...
[1 reply] : I'm going to spoil it for you: #include <iostream> #define EXIT -99... (by AzraelUK)
by Arkon
Print alternate characters
 
Sample dialog: Enter a string: HelloWorld Alternate Character output: ekWrd I can't figure out how to print alternate characters.
[3 replies] Last: A better and faster way to do it would be to use 'count += 2' instead ... (by AzraelUK)
by tomao
I don't get ios::ate
 
Hi, I am trying to create a program that writes to a text file, but it always deletes all the text already in it. I use ios::ate but it doens't work or I get a ...
[4 replies] Last: i have the same problem but i have to use ios::ate because i want to a... (by hkdobrev)
best way
 
What is the best online site to learn c++ i plan on buying a book and taking classes right now i'm useing Cprogramming.com anyone know of a better one? oh and a...
[2 replies] Last: i get an internet explorer can not display page, it could just be some... (by AustinPH)
Need help with a program (absolute beginner)
 
Hej! I'm studying C++ and could use all the help provided. This site is like a well in a desert :) I have to use a repetition and create a program which sums ...
[1 reply] : Maybe you forgot to cast to double 1/n try with this code: #inc... (by alex79roma)
by Jesse
Hello People!
 
Hi im new to this whole C++ world and i need help to get started, i would be very greatful if anyone can post me some tips etc.... P.S Thankyou Juan Soulie ...
[5 replies] Last: Hey Benson im a newby as you can tell by the "topic" but use the awsom... (by Jesse)
by jaymz
need immediate help pls?
 
im doing a console program. can you figure out what's wrong with this code?? how can i make it re-execute the program at runtime. the program prompts the u...
[1 reply] : Hi Jaymz, There are a few basic problems with the code (although pr... (by muzhogg)
by tomao
Help with .txt file
 
Hi, I am new here, and I have a question. How is it that I would make a program that searches a .txt file and displays the text found, like you enter a certain ...
[4 replies] Last: Why did it double post me, I certainly didn't mean to double post, sor... (by tomao)
can't do file i/o if path is a variable
 
ifstream f; string path; cin >> path; f.open(path) i keep getting a strange error if the file path comes from a variable. any idea how to fi...
[1 reply] : The path variable needs to be a c style string, so instead of f.open(p... (by klttyus)
by amrcn
headers
 
Howdy, I'm currently in a C++ class, and we're supposed to be using headers in our first project. Problem is, I know nothing about headers. I've googled it (...
[5 replies] Last: No real difference - they're both valid C++ source code filename exten... (by muzhogg)
Hello, I'm New
 
Hello, I just started to learn C++, and was wondering what program I can download to test the codes I create, or the pre-made codes. I would be grateful for...
[5 replies] Last: code blocks is great to you know... i've been using it for years now..... (by ried azmel)
Storing information in a simple c++ program
 
Alright, so i'm currently making a simple console program which I need to be able to store information from each time I run it. As far as I can understand - the...
[3 replies] Last: Oh, and I should have mentioned... Once you get your data OUT of th... (by muzhogg)
system()
 
im having problems passing arguments to system() what im doing is creating a string and using getline to populate that string from a text file (when i use co...
[2 replies] Last: that worked perfectly. i did some messing around with c-style str... (by jherrico)
by M 562
I'm getting this error SOLVED
 
SOLVED: I didnt put the .cpp file in the source folder of the project Time and again, and I really want to learn how to code. // my first programm in C...
[5 replies] Last: SOLVED then congrat ;) ok what was the error u were talking about t... (by kia)
Hi people..Can any1 help me with this?
 
i'm trying to figure out how to use if/else.I have try to compile a program i wrote and it keep giving me error on if.Here is the code i wrote: #pragma hdr...
[10 replies] Last: yes kyleepparddtcom of course the condition should be in the () cause... (by kia)
class
 
How do I create instances of cl_math such that I can access them via an arary (math .a etc) class cl_math { public: int a, b; ...
[1 reply] : try... cl_math * math; math = new cl_math ; (by martinlb)
by oask
New to C++
 
Hello I am new to c++ and I need some help on getting started.
[3 replies] Last: Follow kia's and chimera's advice. Good stuff from both of them. Als... (by codezero)
Getting Video Dimensions
 
So, I am really new to C++. I have Visual C++ 2008. How can I retrieve the width and height from a video file? Thanks for any help!
[4 replies] Last: hi! could u explain me what is avi file and what is it use of ? thnx ... (by kia)
iomanip?
 
hello im just confuse of what is the use of the <iomanip> library? any reply is appriciated..thnx
[3 replies] Last: hi ! nice and new info i didnt know that left, right dont need the lib... (by kia)
January 2008 Pages: 12345
  Archived months: [feb2008]

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