Beginners - August 2012 (Page 23)

How do I save the console to a text file?
 
I'm making a program that talks to the user. When the program is done, how do I save what was said to a text file so the user can read it later? Thanks.
[3 replies] Last: Use a tee http://www.boost.org/doc/libs/1_43_0/libs/iostreams/doc/f... (by Duthomhas)
Having trouble with class scope
 
Hello, Long time programmer, first time C++. I have a class called Streamer. Here is Streamer.h: class Streamer { public: Streamer(const MyDb& realti...
[7 replies] Last: The callbacks are being called 300,000 times per second. I don't want ... (by nathancahill)
OpenGl?
 
hi guys, i dont know if its appropriate to post such topic like this, i have some c++ basics(i dont know my current level but i understand templates, recursion,...
[5 replies] Last: okay guys thx for the replies and thx for your patience i think now i ... (by Sendy Hipo)
by Cyths
Retrieving member data from const pass by reference.
 
I have a strictly C background and have been scrambling to pick up C++ as I have just been switched to a C++ project and have run into some confusion in utilizi...
[1 reply] : Well, nevermind I figured it out. I can access the members of the stru... (by Cyths)
by Vimto
In at the deep end
 
Hi all. Im trying to put together a C++ front end to a MSSQL database. The database for the most part is already structured, some in the server, some on pape...
[5 replies] Last: I'd second C# for front-end work. I'm not sure how it is for DB inter... (by MrHutch)
Project Euler Problem 10
 
Hi everyone, I think most people here are familiar with project Euler, if not, here is a link: http://projecteuler.net/problem=10 I already made a working...
[3 replies] Last: I had never heard of the heap and the stack, until now. After changing... (by simpleasy)
File reading
 
Hi everyone. I created a program in which there is this code: ifstream name; name.open(nameFileName); getline(name, name); MyRestaurant.setName(name); nam...
[8 replies] Last: Finally! Thanks a lot LowestOne! It works! (by MaxLascombe)
solved
 
for (int i = 0; i < ARRAY_SIZE; i ++) for (int j = i + 1; j < ARRAY_SIZE; j ++) // number found if (myArray == myArray ) std::cout << ...
[7 replies] Last: The original question was:[quote=KingJ] Array Help Given an array of ... (by Peter87)
char array problem
 
Hi, I'm having some problems with modifying a char array. At first, I merely define it, i.e. char modAlpha ; And then after that comes a user input lo...
[2 replies] Last: Ah! That seems to do the trick! Thanks! :) (by pbruusgaard)
by JimiH
Create array
 
how would you do this array? The first Array will consist of the following Array1 = A,B,C,D,E,F,G,H,I,J,K,L,M The second Array2 = 2,2,1,2,2,2,1 ...
[5 replies] Last: Hi Thanks Thats something to work with. Regards Geoff (by JimiH)
by Owain
Every combination of elements in a 2-D array
 
Hello, I am writting a chatbot which works out a percetage match based on human reading style of a search term and the input. For flexibility, parts of the sear...
[3 replies] Last: If you have a vector of ints, the next_permutation algorithm in a for ... (by TheIdeasMan)
Hi.
 
I'm new to the forum. First of all I don't know anything about C++. I know some scripting languages( LUA, PHP-HTML ). But I wanna learn C++. I have few que...
[9 replies] Last: So I've open the exe file with notepad ++ and I've insert the code in... (by Ralden)
Arrays Highest/Smallest
 
Hey guys back for some more help :) I'm onto Arrays and I'm meant to print out the highest array and its value so I'm just wondering how thats coded. I'm...
[2 replies] Last: Awesome thanks for that :D It was the solution I needed. Well I had a ... (by BrendanKB)
Help with debugging
 
Hi all, I'm trying to code Pig and everything seems to be pretty much written up, however.. #include <iostream> #include <string> #include <ctime> #inc...
[1 reply] : It looks like you are trying to create different functions inside of t... (by Hippogriff)
Kind Of Stuck
 
I am taking classes to minor in software engineering, but in my first class I have come to an impasse. Class has not started but I want to get a head start. I c...
[7 replies] Last: Yes. (by Veltas)
Ran out of Ideas
 
It's official, I have ran out of things to code. Could any of you give me some ideas? I would prefer challenges that involve STL containers and classes, as that...
[14 replies] Last: If you have some time on your hands, try building a neural network evo... (by ausairman)
by skint
string compare function...
 
Need c++ string compare function...
[1 reply] : The client looks ok, if a little odd. But I can see you needed to rea... (by kbw)
Help with stacks?
 
I am writing a program for a C++ class. I have run into an error using stacks, and a push / pop function of mine. I have two problems here. The first is in t...
[2 replies] Last: Actually, you're right. How would I make them all the same value? ... (by michaelsoftman)
File input issue, overwriting
 
Hey guys, my first post here, so here is the problem: I've worked on creating an ATM-like program, and now my only problem lies in writing the users balance ...
[4 replies] Last: Well when I run the program and either deposit or withdraw, then exit ... (by dubez001)
2 dimensional arrays
 
An airline uses jets with 15 rows of 6 seats, labeled A-F. Seats A and F are window seats. Seats B and E are middle seats. Seats C and D are aisle seats. ...
[5 replies] Last: @scu1casper #1 - if i initialize numOfRows to 15 and numOfSeats to 6... (by whitenite1)
August 2012 Pages: 1... 2122232425... 45
  Archived months: [jul2012] [sep2012]

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