General C++ Programming - January 2012 (Page 28)

Writng a compiler
 
I need to write a program that wil read a txt file containg instructions like these ADD R1, R2, R3 STORE R4, R1 SUB R5, R2, R3 whre R1, 2,3,4,5 are regsters...
[3 replies] Last: You should do that yourself or you won't learn anything. (by Zhuge)
by joe40
Help please i need to know where to start from
 
Floating point numbers (type, long double, double and float) are represented by computer to scientific notation each number has a sign an exponent, and a mantis...
[1 reply] : As the assignment suggested, why not write prototypes for all the fun... (by Zhuge)
Is it poor technique to include inside the main loop?
 
Hello all, I was wondering if it is bad to have an include in the main loop. I have several blocks of code that are a couple hundred lines each. I only need ...
[8 replies] Last: @Galik what I was wondering is if that is bad technique or not, for ev... (by strongdrink)
by Archa4
Variable Names using input File
 
So I have an imput file. I'm reading information from it line by line. Each line consists of a number and a string value. Later I have to read another text file...
[5 replies] Last: Rather than this... while (!input_file.eof()) { getline(input_fi... (by Galik)
by Zapeth
Problems with reading from File
 
Hi I currently want to read from a file all its content and store it in a buffer so I can further process with it. However the buffer contains a little bit mor...
[12 replies] Last: Here's another one: #include <iostream> #include <fstream> #include ... (by m4ster r0shi)
errors LNK1120 and LNK2019
 
At the moment my program is crashing because of the following errors: 1>GameApplication.obj : error LNK2019: unresolved external symbol "public: __thiscall C...
[1 reply] : It means that the linker cannot find the compiled code for the functio... (by Moschops)
by RyanV
Trying To Make A Program That Returns The Number Of Instances Of Each Unique Word
 
Howdy guys, I'm trying to make a program that takes, as input, text. This program then finds each unique word (excluding capitalization and punctuation) a...
[5 replies] Last: ok .. to start with if (listOWords = NULL) is a assignment operator... (by RyanV)
help with c++ program
 
Hi guys ! I need your help.I have to make a program that reads two numbers a and b and displays all the numbers that can be formed by replacing the first and th...
[9 replies] Last: I forgot to write a/=10 and b/=10 in the loop.It displays 1 1 1 9 1 ... (by PlusPower)
by Alx101
Class errors
 
HELP! Im geting an error when i try to compile my source code. Here is the error: E:\VirusGL\Virus\main.cpp|3|error: 'Echelon' does not name a type| Source...
[6 replies] Last: It worked! Only that it should be #include "filename". Thank you all s... (by Alx101)
by Fluidz
.DLL Injection & Packet Sending
 
Hey guys, I am diving right into the deep end with this one so please bear with my ignorance. I would like to know two things: 1. Do I have to inject a .DLL ...
[3 replies] Last: I'm not an expert on the subject but I don't believe the module name i... (by Texan40)
If conditions for compiler options
 
Hello guys, I was once programming an OpenGL simulation on Qt. I wanted to do a static linking to the Qt libraries, so I compiled the Qt libraries all over aga...
[6 replies] Last: It's another way of saying "command line option". (by kbw)
Find character occurrences in a file c++
 
Could you please tell me, how to count the occurrence of each individual letter (for example "d","c",....) in a given file that contain random letter sequence ...
[4 replies] Last: ... (by Tralon)
Referencing array of struct instances
 
Hello, I am being presented with a simple issue while trying to program a game with the SDL library. I have a function that fills an instance of a structure "t...
[14 replies] Last: I can't printf properly with this library but I think the real problem... (by Taloton)
Need help with method pointer
 
I have a class called errorset , which contains a function and a pointer to that function: struct errorset { // the constructor sets errorset_pointer to er...
[5 replies] Last: Oh thanks, double(errorset::*errorset_pointer)(double,size_t) myPoin... (by codekiddy)
Iterator confusion
 
I have a list of pairs of list iterators like this: std::list< std::pair <std::list<object>::iterator, std::list<object>::iterator> > If I have an iterator ...
[2 replies] Last: thank you! (by blueeyedlion)
by orxshi
Size of std::array, std::vector and raw array
 
How can I know the size of std::array, std::vector and raw array if they have same number of members and types. With size I mean the memory they occupy as a who...
[3 replies] Last: No. capacity() returns the number elements that the vector has alloc... (by Peter87)
by dancks
whats worng with this?
 
I this header is just supposed to make a data object for data storage: area.h: #ifndef AR_H #define AR_H class area { public: area(); ~area(); void init...
[2 replies] Last: Sometimes compiler do actually help to point out the problem: note: (... (by eypros)
by Alx101
C:\Virus\Virus\FPS.h|4|error: expected unqualified-id before ')' token|
 
I have a problem here! Im trying to compile this class(wich is part if a much bigger program) and it won't compile. All i get is this error: C:\Virus\Virus\FPS...
[4 replies] Last: You can check the post as solved when it's actually is. (by eypros)
by john53
write a program to handle ticket sales for an auditorium
 
write a program to handle ticket sales for an auditorium. A given show will be performed on three days – Thursday, Friday and Saturday. There are three seatin...
[10 replies] Last: there are a few problems with that though (by Aramil of Elixia)
class object constructor outside main() vs inside main()
 
My questions will be more clear with an example. class AreaCalculator { public: int someInitialSetting; AreaCalculator(int initialArgument) { s...
[3 replies] Last: Regarding your scenarios, both objects have been created dynamically d... (by closed account DSLq5Di1)
January 2012 Pages: 1... 2627282930... 36
  Archived months: [dec2011] [feb2012]

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