Beginners - April 2008 (Page 10)

Insert a Loop?
 
Hello. I'm trying to finalize my little program here, and I only need one last thing. I've got a code for a loop, but I have no idea where to insert it. ...
[2 replies] Last: Hey if you put that code in you would get a heap of errors. What you n... (by yogurt)
by yogurt
Converter Code Basis
 
Okay this is the very basis of an unfinished code that i have made after my last one had so much pointless code that it was was over 500 lines long. Anyways im ...
[no replies]
by gReaen
Conversion from char* to string
 
Hello, My code snippet for conversion is as follows: string temp_file; temp_file = my_dir; temp_file += string ("\\file.tmp"); the my_dir is externed...
[1 reply] : Presumably we're talking about std::string from the standard library <... (by DrDogg)
Another Error
 
This program is not working properly, please help. #include <iostream> using namespace std; int main() { int i, number, number1, t1, t2, t3, t4; char ...
[1 reply] : What are you expecting the code to do? Which parts are not behaving a... (by DrDogg)
matrix calculator
 
I want to know how to develop a matrix calculator that preforms basic matrix operations usin g arrays and/or pointers. Iwant a calculator to do addition ,subtra...
[no replies]
Stumped
 
Never mind!
[no replies]
Could someone tell me what I am doing wrong here?
 
#include <iostream> #include <vector> #include <algorithm> #include <ctime> #include <windows.h> #include <cstdlib> using namespace std; vec...
[2 replies] Last: I am trying to roll five dice and choose which ones to keep and then r... (by katielynnsdad)
I'm Stumped: program not looping back to beginning correctly
 
I'm trying to finish a program that prompts user to input a string, then a menu is displayed giving them options to swap characters or count a character, and th...
[5 replies] Last: the reason the program wont let you enter a number the second time is ... (by gregv21)
Please Help!
 
I guess I am just not understanding this stuff like I should? Ok, I roll five dice and the rolls are stored in an array. How do I go about keeping like 3 of t...
[1 reply] : I am storing my keepers in a vector. (by katielynnsdad)
by Reigan
text program
 
I need code, who take some string of character, and to compare that a .txt file. example: string = "qwe" .txt file = ''axcbhyQWEklmnpouyxsQWElkopyqQWEsd'' ...
[no replies]
by Reigan
txt file
 
How to get .txt file in char data type ? fstream file("c:\\text_file.txt");
[no replies]
by mowrey
Where can I find some good materials from where I can learn C++?
 
I already bought two books that contain C++ lessons (Jamsa's C/C++/C# Programmer's Bible and The C++ Programming Language written by Bjarne Stroustrup). Do you ...
[13 replies] Last: Hi Adrian, There was a topic on free compilers here: http://www.cp... (by closed account z05DSL3A)
by green
c language (array) need your assistance
 
Hi I'm new in c language, below is my assignment, need your help to check. I can't run the programme.and I'm stuck.Massege show"Declaration terminated incorre...
[no replies]
by Reigan
c++ txt file
 
How to get amount of character from .txt file?
[1 reply] : Read the file into variable and include string, use namespace std and ... (by Repentinus)
Error with the program
 
Hi would you kindly help me with the following program, it display wrong answer. This program must calculate : How many people do not read a newspaper, how...
[1 reply] : first of all, you have to change for (int i = 1; i <= 30; i++) to: ... (by Over)
how do I sort a vector array ?
 
Can someone help me with how to sort a vector array? I tried sort(array.begin(), array.end()); and it didn't work the game starts and then gives me an error a...
[2 replies] Last: Sorry! I took my own advice that I gave to someone else on here and re... (by katielynnsdad)
Help with site's tutorial on constants
 
Here's the link for it: http://cplusplus.com/doc/tutorial/constants.html Near the beginning of the tutorial, it starts going into octal (8-base) and hexade...
[4 replies] Last: Q. How many people can read hex if only you and dead people can read h... (by closed account z05DSL3A)
Number Help
 
Hey, I recently made an exponation program. It works fine, just with one problem: If a number is too big, it messes up and produces a weird number/word/operater...
[8 replies] Last: And how do I do that?? The only real reason I have a double in there ... (by VenomousNinja)
parameter confuson
 
My goal is simply to output my return_total & new_balance for both function(s) yearly & compound. I seem to have confused myself on what is passed and what is r...
[1 reply] : please surround each section of code by the and tags in your pos... (by CaptainLinux94)
by frike
Error: multiple definitions of symbol _main
 
Hi everyone! Last week I went to a C++ course in uni. We learnt some of the basics of C++ and our final exam was to write a program that gave out the Mandelb...
[2 replies] Last: Oops, I had two main functions. Thanks for your help! (by frike)
April 2008 Pages: 1... 89101112... 18
  Archived months: [mar2008] [may2008]

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