General C++ Programming - February 2014 (Page 12)

by EdFab
Question about setting size of a C style string
 
In order to make this program work, I had to use a magic number to set the size of a character array that will then have a strcpy_s followed by a couple of str...
[1 reply] : I found a solution to avoiding magic numbers when declaring a characte... (by EdFab)
create file with fstream
 
For some unknown reason when i try the following code it doesn't create a file. (the program will simply get two inputs from the user and then use http to obtai...
[3 replies] Last: it worked by the way (by Cronnoc)
Reading from data file
 
i cant get my program to read the rest of my variables from my data file it will only read the first two and my end of file wont work it keeps continuing on. ho...
[5 replies] Last: this is what im outputting: Your beginning balance is $879.46 You ha... (by makaveli23)
by TX9200
Virtual keyword in inheritance
 
I wonder what really happen if you forget to put virtual keyword in the function of the base class. Will the function still be over-written properly? What will...
[1 reply] : Have you tried coding up an example of this in code yourself? If you ... (by Zhuge)
Merge and sort list of strings
 
I am looking for a function or algorithm to best merge and sort similar content between two lists of unordered strings each in individual files (very large file...
[6 replies] Last: > of your talent! There is really no talent involved. Just familiarit... (by JLBorges)
array in c++
 
Save these integers (5, -2, -31, 8, 0, 23, -7, 11, 10 and -5) to an array called number_array . Using for-loops Find and output how many positive numbers ...
[2 replies] Last: What is your code so far? (by thiskid)
number to word code help-not for beginner apparently
 
I wasn't sure if this was best suited for general or for beginner. Hello, the purpose of this program is to have a user input a number, and the program will ...
[1 reply] : Please use codetags: http://www.cplusplus.com/articles/jEywvCM9/ One ... (by cire)
by stanz
please help me.with my assignment
 
How to construct this for C++? Please help me.
[no replies]
Could I get some help with this?
 
Apparently this doesn't go in the Beginners forum, which is weird, because I've only been doing this for a few weeks, but ok. Alright, so as far as I can tel...
[1 reply] : I just replied to your other thread. (For the record, I think it's pos... (by long double main)
C++, MIPS assembly
 
Hey guys, I was just wondering, If you use c++ in visual studio and disassemble the code to make it into assembly, if I paste that assembly code it gives...
[no replies]
by stdeez
BinarySearchTree need help please.
 
Hi, I just need some direction, im going to upload my assignment specifications (its short) and ask some questions about my implementation. im just having some...
[1 reply] : I have no idea how to keep up with the tree given this condition. I c... (by stdeez)
trying to write a calculator
 
I'm trying to write a calculator program that places int in one stack and char in another, checks the precedence of the char and then if the precedence is high ...
[no replies]
std::mutex problems
 
I might be making a really simple mistake, but I have been searching around and not finding any answer that fixes my problem. So I have a class that uses and...
[no replies]
Arrays and Enumerated Data Types
 
I am doing a programming assignment. This program asks you to collect statistics on precipitation and temperatures from the four quarters of a year and print th...
[no replies]
by heepoo
reference to 'Column is ambiguous
 
hi all, I'm using GCC 4.8.1 and I want to implement a XML parser using TinyXML and port it to AngelScript now, it says: reference to 'Column' is ambiguous I've ...
[16 replies] Last: > what is your idea about expat? Expat is a stream-oriented XML parse... (by JLBorges)
Next step for basic game or simulation engine.
 
Hello, I created a basic object class with some main code. The class allows me to add a object, delete, get settings, settings, move, and test collisions, etc....
[no replies]
modifying several variables via a header file
 
Hi, I'm trying to split up my game (about 1300 lines) into header files, but I'm coming up with a problem whenever I try and put a function in a header file, wh...
[4 replies] Last: I did buy a book (You Can Do It! by Francis Glassborow), and I read an... (by shadowmouse)
How many countries area and populations will i need? ...and what type of loop can i use?
 
Write a program that repeatedly asks the user to enter the name, area, and population of various countries. The user enters countries until they type “...
[3 replies] Last: > How many countries,ares and populations will i need in this program.... (by JLBorges)
Dont know how to make this loop work
 
hey all, so im really confused as to how to solve a loop like this nor as to how it would look. Can anyone attempt to code this? Consider the following trian...
[2 replies] Last: Okay, I am going to assume that the grid actually looks like this: ... (by long double main)
by MST
Matrix with unknown dimension
 
Hi I try to write code for one problem which is worked with the matrix.I have written in specific size 5 by 5 and I know the general formula for these matri...
[2 replies] Last: std::vector<> http://www.mochima.com/tutorials/vectors.html #inclu... (by JLBorges)
February 2014 Pages: 1... 1011121314... 33
  Archived months: [jan2014] [mar2014]

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