General C++ Programming - March 2010 (Page 3)

how to write code result to txt file.
 
How do I print the result of this code to a Text file? #include <iostream> #include <fstream> using namespace std; for(int level=0; level<LEVELS; lev...
[2 replies] Last: #include <iostream> #include <fstream> using namespace std; ... (by kerlon)
by NGen
Getting the Last Element in a List Container
 
How would go about doing this? I've tried: std::list<int>::iterator iter = List.end ( )--; But that doesn't exactly work, and ends up with an out-of-bou...
[8 replies] Last: std::list<int>::iterator iter = List.end ( )--; rawr... postfix w... (by imi)
Print a string sequentially
 
Hi everyone, Anyone knows how to print a string sequentially. Basically, i made an application (with a GUI) and i want on the screen t o print out a strin...
[6 replies] Last: So what command will be used to activate the cursor during the sleep p... (by buffbill)
anyone can make this problem?
 
Write a C program that reads in a text file named sign_num.in containing 20 signed integers. The program sorts the input file such that it will create two outpu...
[2 replies] Last: ismael..u should try by urself..if u have any problem.. post it here.... (by EAStudent)
Storing all scores
 
I have a void function that asks the user for 5 different scores. This function should be called 5 different times in the main function, one time for every scor...
[3 replies] Last: As E A Student says you could use an array in which to store the five ... (by buffbill)
Need aid with boost asio sockets please
 
Hello! I'm trying to create code that reads from and writes to multiple clients/devices using boost sockets, but I'm not exactly sure if I'm doing it correct...
[no replies]
C++ Windows Api
 
PLEASE HELP ME! hello,I'm Learning Windows Api.I used Borland C++ program.I want to run file powerpoint(.pps) Borland C++ on the desktop but it must be any but...
[2 replies] Last: Hello, again! Excuse me for my unclearly asked question. I want t... (by kilikyali)
Text Adventure Game
 
I made this on my 2nd week of programming Note:Due to formatting you may need to edit some lines #include <iostream> using namespace std; int main() { ...
[1 reply] : code tags my friend, code tags http://cplusplus.com/articles/firedrac... (by closed account 1yR4jE8b)
by vrcel
Calculate Big O, quick/mergesort C++
 
I know in theory what Big O should be but I need to prove it by having having a counter of some sort perhaps. I set a global counter called count and use it ...
[no replies]
How to call a script without system()
 
Is it possible? I know system calls are horrendously vulnerable to viruses and malicious users...So I'm wondering, can I call my python script without system?
[3 replies] Last: What I've been doing lately is actually building GUI front ends for my... (by closed account 1yR4jE8b)
Create classes or structure dynamically
 
Hello Team, I am trying to create a SQL table dynamically. Here is my requirement: 1. Once I run the program, i will be asked about how many colmuns I ...
[no replies]
Print a string sequentially
 
Hi everyone, Anyone knows how to print a string sequentially. Basically, i made an application (with a GUI) and i want on the screen t o print out a strin...
[2 replies] Last: Not so sure about the time part as i've never worked with time but I w... (by mcleano)
problem with reading txt file into vectors of vectors
 
Hi, i have the problem mentioned in the header: my file looks as this: Iso: pfmkk600ta70lp703 T050S 1 D05030 2 Iso: pfmzv600ta70000 T050S 1 D05030 1...
[1 reply] : no reply... . I mean is my code not even wrong? (by sajakob)
generic c
 
hi i am a student and i am learning programming last semester i have learned c and now we learn c++; well my question is; lets say i have i generic class lin...
[4 replies] Last: yep.... (by deadshot)
How long can a line of code be?
 
This is just out of curiosity! Does anyone know what is the maximum number of characters that a line of code can have? EDIT: Added more details. Is it pos...
[8 replies] Last: So is it the backslash "\" or is it the forward slash "/" ?????? ... (by imi)
by bills
writing file characters to a 3D array
 
I am trying to read and write a text file into an array and then store it back into the text file. The main problem i am having is the storing the file characte...
[no replies]
reading txt file using a function
 
Am trying to open a file by calling a function. Error: [Linker error] undefined reference to `readinfo()' The code: #include<iostream> #include<fstrea...
[1 reply] : The declaration of readinfo() takes no parameters, and the definition ... (by helios)
if statement operator "&"
 
Hi, I was working on chapter 11 of "C++ A Beginners guide, 2nd ed.", and in one of the examples (with working on the IO streams's flags), I came across this if ...
[2 replies] Last: Bitwise and (&) is like logical and (&&) the difference is that it per... (by Bazzy)
Case Tools
 
I was wondering if anyone new of a website where I could get some free case tools. My instructor assigned a mailflix assignment just like netflix and were going...
[no replies]
please solve the following question
 
Write a program to perform following • Read a text file, line by line and split every word. • Cleanup the text such that every word will have only alphanu...
[2 replies] Last: Please pay the following fee... You have some balls though, expecti... (by cnoeval)
March 2010 Pages: 12345... 23
  Archived months: [feb2010] [apr2010]

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