General C++ Programming - September 2015 (Page 16)

[Help]Prompting user for input and output files
 
Hello im having a hard time trying to build a program that prompts user for input and output files. The program should opens the file and read all the words in ...
[3 replies] Last: This is in Code format #include<iostream> #include<fstream> #inclu... (by proginc)
by Sid123
Need to fine a GUI
 
I am writing a project to create a tic tac toe AI, but I need to make a simple interface for the user to play in, instead of the console. Does anyone have any s...
[2 replies] Last: Win32, Qt, etc.... There are about std::numeric_limits<int>::max() thr... (by Homberto)
Read Specific ID
 
I want to make my code to read only MonsterID (specific monster ID, example MonsterID = 50, so if i kill this monster 50 will drop me the item, all other monste...
[5 replies] Last: What was the issue? (by Ericool)
Reading/writing text/binary
 
I have to create a class which lets me write and read an int and a double to a text file, and a binary file. I keep getting a compiling error that's telling ...
[2 replies] Last: Could you give the error message? Usually it tells you what is wrong. ... (by Zhuge)
Please help me!
 
i've been doing this code since yesterday. #include <iostream> using namespace std; int main() { int X=1; do{ int Y=0; do{ cout<<" "; Y++;} wh...
[3 replies] Last: #include <iostream> int main() { char line = " *\n" ; in... (by JLBorges)
by Andym
Understanding Structures
 
I understand the premise behind structures, being that they are a storage area for data but what I'm confused about is how the info is grouped inside of it. I ...
[7 replies] Last: look also for structure of arrays (aos vs soa). (by Ericool)
by Andym
using getline
 
I understand that by using getline, I can capture multiple words in a string. What is NOT clicking for me is how to read a string from a text file up to the en...
[6 replies] Last: If you want to actually see the newline character, you should use a h... (by MiiNiPaa)
Encoding a struct?
 
I need to send a struct, that includes several integers and string (so far) over the network, but I'm not really happy how it works I have a function that puts...
[4 replies] Last: @Helios thanks, will try that out @dhayden how do I do that? (by mekkatorqu)
by Wyboth
Compiler Optimizations
 
Hello, I use MSVC on my Windows machine, and G++ on my Linux one. I would like to learn about optimizations made by both of them. Say I have this loop: ...
[3 replies] Last: > I placed PI in global scope. At function scope, I got same results a... (by JLBorges)
by aeck
Array based stack
 
I am having trouble getting the error messages to print. The stack/array doesn't seem to be printing "full" at the max size of 10, and the error "empty" i...
[6 replies] Last: Line 15: it looks like array is unused. Line 22: should be int stk ; ... (by dhayden)
Dynamic Allocation (Arrays) | Visual Studio vs Dev-C++
 
Hi, guys. I couldn't find any information about this after googling for a while (blame my googling skills), so I thought I'd just ask. So, here's the deal. In ...
[2 replies] Last: Ahh, that makes a lot of sense. After playing a bit with the settings,... (by sasauke)
Array vs vector
 
As I understand it the array type is defined, along with the rest of the types, via a class (but I know not which one). Vectors are also defined via a different...
[9 replies] Last: [quote=thetexan]template class It's more correct, and less confusing,... (by Peter87)
Sum Up Multiple Numbers Entered By A User
 
Dear forumites, please, how do I sum up certain integers entered by a user? This is what I have: int main() { for (char i=0; i<6; i++){ cout<<"E...
[4 replies] Last: Great! Sasauke, you are a genius. Thanks a million. It worked...and I... (by bellTech)
Problem with class and template
 
i am trying to write a Stack class with template. but i've got 8 errors like this 1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall ...
[1 reply] : When instantiating a templated object, the entire definition of the te... (by MikeyBoy)
I get bored from C++
 
hey, i started programming about 2 months ago, i did my favorite thing: an terminal, username & password system, and the terminal with useless commands.. i do...
[7 replies] Last: I find it enjoyable to do something that is useful. or find something ... (by SamuelAdams)
deleting array elements in dynamic
 
at the start user receives the size of array , memmory is being allocated, you have to fill the array with numbers etc , you also receives number x , every sing...
[3 replies] Last: stl vector containers are one of the fastest data structure in c++ , s... (by Ericool)
dynamic memory allocation by using mingw compiler
 
HI I am writing the code in Embedded c. I am using mingw compiler for compiling on windows 8.1 OS version. I am using malloc (dynamic memory) function in my ...
[2 replies] Last: Have you tried calloc ? (by Ericool)
Print Spoolar
 
In my organisation, one specific software is running for Accounting. I have to assign printers to accounting application, in such a way so that if any user is ...
[3 replies] Last: I'm not sure what you exactly want. If you want to enumerate all avail... (by coder777)
Transitioning into c++
 
Hi guys I'm a newbie and joined this group hoping to learn C++ on UNIX/LINUX from your experience. I am transitioning from Mainframe to C++. I have couple of...
[3 replies] Last: I saw this and thought of you today. http://hplgit.github.io/teamods/... (by SamuelAdams)
by Agent
Template Syntax Errors
 
So after using nothing but Visual Studio for a while, it seems that I've developed some dirty syntax that's not actually valid C++, and I seem to be struggling ...
[3 replies] Last: Marking as solved; part of the issue was that I didn't realize I was u... (by Agent)
September 2015 Pages: 1... 1415161718... 21
  Archived months: [aug2015] [oct2015]

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