General C++ Programming - February 2012 (Page 31)

Read a text file - output to a text file
 
My C++ knowledge is from a half semester in college 5 years ago and I'm a more than a bit rusty on even that limited education. I've pulled out my text book and...
[no replies]
How do I set up a time function?
 
So I started off with a simple project below. Basically I set it up so that when it was the weekends it would say "Its The Weekends!". However I'm a beginer at ...
[no replies]
need idea/help
 
okay for uni i got given a question in class, i am at a loss at how to solve it i understand that i need to put boundaires in and average my loop but i don't kn...
[1 reply] : Here's what I would do: // Declare variables for input, counter // ... (by MrHutch)
Retreiving particular location of buffer
 
Hi all, I have to write a program in VC++6.0 in which I have to create a DOM tree using RapidXml and then copy the contents into buffer and write that into a...
[no replies]
SDL Help me to avoid memory leak
 
My game took 1GB ram after 15 minutes. I dont know why,I included destructors and cleaned up every pointers Plz check if out http://tinypaste.com/5f0337d...
[5 replies] Last: Well,THanks for the tips ! Problem solved ! (by hentaiw)
Rvalue references
 
Hello everybody. I wrote this code, just to see if I can correctly implement the move constructor and the rvalue assignment operator . It seems that I could...
[12 replies] Last: > noexcept is not available in VS2010. > Seems to be working anyway, t... (by JLBorges)
by rucafe
problem writing data to .txt file
 
I have data which has been processed and stored into a data structure, data_base, defined by 3 classes. The data has the following form with thousands of lines:...
[5 replies] Last: when you call the 'print()' funztion of 'dm:Step' you must insert the ... (by Vins3Xtreme)
by yayo
Tokens
 
Hallo, I try to read the content of a file and get the tokens from the file. I already implemented so that I got the tokens from the file but the first token...
[7 replies] Last: thanks for your answer. I already do that with char c but still does... (by yayo)
Checss board
 
Hello I need help writing a program that repeated shows all possible moves of a queen or a knight in a chess game. The board will be 8 x 8 array of characters. ...
[no replies]
by Tigger
Standard Deviation??
 
Hey guys, sorry for the long code but I need some help. I got everything right so far up to the average but I keep getting the answer 0 for the standard deviati...
[1 reply] : try to place (double) before scores in stdDevation function: double... (by Vins3Xtreme)
by Lina
Help Solving Data Stracture assignment
 
Hi friends, I am new in this site, i just get data stracture course for first time. I need help with assigment. I can pay if we make deal. if one can help I app...
[4 replies] Last: I used VS IDE , File->New->Project->Visual C++->Win32 Console Applicat... (by misserwell)
program not returning zero
 
hello friends... my c++ program code is #include <iostream> #include <stdio.h> #include <string.h> using namespace std; void copy(char *name, char...
[5 replies] Last: i got it thanks (by rajeshgoblet)
Can anyone suggest a way of accomplishing this?
 
I have a program that tells me different ways that a number can be added up like so: Given the number 5: 4 1 3 2 3 1 1 2 2 1 2 1 1 1 1 1 1 1 1 T...
[5 replies] Last: Google next_permutation in the algorithm header (by buffbill)
m = min(v1, v2); if (m != v1 && m != v2) cout << "Help!!!";
 
Hi guys. I was writing a simple program that performs an event-driven modelling of customers que and found a strange problem which i don't get how to explain. ...
[6 replies] Last: Great catch by Athar +1. When i switched to long double type everyt... (by gamlet2008)
Outputting to a .txt file
 
I have been working on a simple program that will perform encryption/decryption based on a simple 1:1 pattern. You enter the program, choose the encryption patt...
[9 replies] Last: I have tried this using the myfile object for both encrypt and decrypt... (by Lukipaela)
Strange linker error with extern variables
 
I have a header that declares a set of variables with the extern keyword. Then I have a cpp file responsible for getting the true declarations in. For some re...
[9 replies] Last: error LNK2001: unresolved external symbol "struct ore::server::Subsys... (by NGen)
Array of structures
 
Hi there everyone, I have tried searching everywhere for an answer to my question, but I cannot find someone with the same problem as me so I thought I would...
[19 replies] Last: @flyer53 If you wish to use a std::string with the windows api, strin... (by closed account DSLq5Di1)
iterator not working (1,2,3)
 
This is by far the weirdest bug I've ever encountered. It seems like the for statement is broken (lol)! for(std::list<Bonus*>::const_iterator itr = bo...
[40 replies] Last: Nice you figured it out =) (by clanmjc)
Link a C++ to a webpage
 
Please, I have an already made application and I want to link it to a webpage so that the input data will be taken from the webpage to the C++ application and t...
[1 reply] : Use a library. For example: http://lacewing-project.org/docs/webserver... (by LB)
printing a vector of pointers (1,2)
 
in my class, i wish to print a vector of objects via pointers, so that i can add certain functions later, anyway here is my class now: class Deck { ...
[20 replies] Last: the only thing i think is missing, is that x doesnt have an initial va... (by Xendraw)
February 2012 Pages: 1... 2930313233... 43
  Archived months: [jan2012] [mar2012]

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