General C++ Programming - February 2015 (Page 10)

by doug4
Create file with a given size
 
I am interested in creating a file of a given size and then randomly accessing the file to populate it. Is there a way to quickly create, for instance, a 4 GBy...
[4 replies] Last: Although I like Disch solution for it's simplicity and OS agnostic a... (by Computergeek01)
How do Windows (or any other OS) get its label names back?
 
With the LoadLibrary function (followed by GetProcAddress) you can get a function or any other thing that is on DLL export. AFAIK, when you assemble one program...
[3 replies] Last: Only functions marked as "exported" (by Konstantin2)
Would u like to explain it in simple words, please.
 
Can Push Down Automaton (PDA) with n-stacks be equally powerful to a Turing machine while dealing Context Free Languages (CFG)? Justify your point of view wi...
[1 reply] : How is this a C++ question? (by MikeyBoy)
I need answer of the below mentioned two points. Please help in this regard.
 
Every programming language provides different features to make coding task easy. One of the main objectives is to keep things simple as possible. You have studi...
[1 reply] : This is not a homework site. The purpose of these questions is for yo... (by MikeyBoy)
Error: Expected Primary Expression Before [ Token
 
Thanks for everything
[3 replies] Last: May I ask why it's meaningless to index the class though Because a c... (by MikeyBoy)
Can't compile the simplest boost asio program
 
I can't compile the simplest boost asio program #include <boost/asio.hpp> int main(){} Code Blocks 13.12 writes out message "swprintf was not declared in t...
[7 replies] Last: @axlprog You actually did. You linked it to the right file with its im... (by iQChange)
Reversing bits
 
Hi, I'm trying to take in user input (which should be an integer), convert that to binary, flip the binaries and then print the decimal version of the flippe...
[2 replies] Last: You are my hero. Thank you. God bless. (by pattrick128)
Dynamic containers with arrays. Help!!!
 
Im trying to create a function that searches my array for a specific string, and then displays that string and the other content associated with it. I'm basical...
[4 replies] Last: I wish i could, but this is what was instructed by my teacher. I figu... (by RedBarron21)
help please
 
question for coding transivity in c++ a->b b->c then a->c it should contain a main code reading from boolean matrix class for ex)input file is 8 0 1 1...
[1 reply] : Please do not post more than once: http://www.cplusplus.com/forum/begi... (by LB)
Function templates: So I created a function template......
 
And it works! :) The problem Im having right now is operator overloading on the second part of the code. My teacher wrote what to do but Im not understanding. I...
[4 replies] Last: OMG!! Thank you. What a trip this was. (by programmercarlito)
by cbars
In my First class using C++ need help with a lab
 
So I wrote this code for a lab and I'm lost with adding this function to it. Here are the directions that I'm following for this. Modify Lab 2 (which is the co...
[5 replies] Last: I don't know much about tax calculation; I can only help you with synt... (by LB)
Why does my program crash when compiled
 
Implement a class named Country that stores information about a country, such as its name, its population and its area. The class should have the following priv...
[5 replies] Last: Tipaye, you sold my other problem. Thank you as well! (by aftersun)
My program stuck in if statement, Help Please
 
I have two big problem in my code one of them, I stuck in if statement and my program cannot continue running bool Apothecary::BuyPotion(Potion& potion)//...
[1 reply] : Are you sure that top->next->next->next... eventually becomes null? ... (by LB)
I am trying to create a very complex program that...
 
I am trying to create a program that takes control of he mouse opens my compiler changes the code and runs it before closing out of the command prompt. Any help...
[7 replies] Last: You're complicating a simple problem, and the knowledge you gain from ... (by LB)
Time class member function help!
 
I am creating a class called time and one of my constructors has to take in a parameter purely in seconds and output it as days:hours:minutes:seconds. I cannot...
[14 replies] Last: Oh okay that makes sense! Then I am sure it will be coming up soon the... (by UGAman22)
Cout is ambiguous?
 
What does that mean? How do I fix it?
[6 replies] Last: You may also consider trying to prefix your 'cout' object with its nam... (by Aaron Vienneau)
by zolo
for loop
 
Hi, I have some general questions to for loops. I am reading a code and have encountered for loop initialization of this type: int k=0; for(j=0; j<1000...
[2 replies] Last: Thanks for the answer! I apologies for not using the correct environm... (by zolo)
Bank Database
 
Hey, I am in desperate need of help. I am tasked with trying to make a bank database work, and I am stuck on many things. The project lists the following: Th...
[3 replies] Last: Well, whenever I put it the part starting at the void transfer funtion... (by Dragonov)
Need help changing code.
 
This code determines the frequency of letters in a text file: As of right now this code couts all the letters in the alphabet. So for example, if there are 0 ...
[4 replies] Last: The OPer has a habit of blanking their posts. This is a quote of the f... (by LB)
help me in dictionary making
 
I want to make a program that can read a word from user and will store in a file named "dictionary.txt" in dictionary order. i have done this much. please help ...
[3 replies] Last: [quote=iQChange]Could you edit your post and put it in code tags for e... (by MikeyBoy)
February 2015 Pages: 1... 89101112... 26
  Archived months: [jan2015] [mar2015]

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