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

Array of Objects - std::array - constructor
 
I'm writing a periodic table program to help me understand classes. I want to be able to display/sort the elements by several properties such as whether it's ...
[5 replies] Last: Oh, okay. Thanks. That makes perfect sense. (by Drue Peters)
Code review and design suggestion needed.
 
Hi, This is a prototype from a large application that shows a point. It's an order management system that 1) creates an order 2) serializes and deserializes ...
[5 replies] Last: Thanks for the responses, I'll go the easiest route and use enum class... (by vincegata)
UDP server with two ports in C
 
Hello, I'm having a little bit of an issue with this code. It would run and eventually time out, but not get any data from the client. #include <stdio.h>...
[no replies]
by Chubby
Print out orgain array
 
I need help with cout orgain array. At cout <<"Here is array that you just enter " << index << endl; i got lldb... { int array ; int *Shifted...
[4 replies] Last: Your program is working perfectly, because you know how it is supposed... (by MatthewRock)
static_assert not allowed in enums
 
Can anyone find something in the standard that explicitly disallows this? I'm going from section 7.1 where it is stated that: [quote=Standard]A declaration oc...
[3 replies] Last: Thanks for the info. It seems that I have a long way to go in fully u... (by closed account 3hM2Nwbp)
Segmentation fault (core dumped)
 
Now I know that the error "Segmentation fault (core dumped)" means that I have a pointer in my code pointing to memory it isn't authorized to access. But the pr...
[8 replies] Last: Thanks I finally get it now, I'm so slow. But thank you! (by fizanimtiaz93)
SDL User-made Surface Class
 
Hello, I want to make an encapsulated surface class that keeps track of important aspects about a surface. I have it started, except when I test the .onDraw(...
[1 reply] : I'm almost certain that you're using an older version of SDL. I'd high... (by Avilius)
Mine Library
 
Can i create mine library like this #include <qwerty.h>
[2 replies] Last: @OP Do you mean using angle brackets to include your headers? You can ... (by naraku9333)
Fibonacci Help
 
I maked this fibonacci program but when program print 92. number its going to print - numbers (for example 92. 121452536 93. -1242345245) why? #include <i...
[4 replies] Last: 3.54225e+020 is the same thing just in scientific notation (by Little Bobby Tables)
by Drae
Return int
 
int result = 15/2; is it that result will now be 7 or 7.5. based on my understanding it will be 7. since it is returning an integer. am I correct to say that t...
[2 replies] Last: understand. thank you for the the additional info at the link (by Drae)
Astericks bar graph
 
Hi guys i have to make a programs that prompts the user to enter quiz grades and add them up. For examples the user enters 6 test grades they are out of 5 so he...
[1 reply] : int main(){ int size; int tests; int a = { 0 }; cout << "How ... (by Aaron Vienneau)
Coding project in my computer class
 
Im trying to make the computer guesss a number i input in the fewest amount of guessed. now we are not in that complicated of a class but here is my code //c...
[no replies]
how to add seconds to CTime in VC++?
 
how to add seconds to CTime in VC++? Ex : int i=0; i=250; CTime tm; tm=tm+i; ??????
[3 replies] Last: Hi, i find out the solution TimeEdBox=14:22:45 and TimeInterval=5 CS... (by gopal2773)
Type conversion cannot guarantee value preserving, why not do this!
 
I did an interesting test on the type conversion between int and unsigned long. the results is like the following: #include <iostream> #include <limits> usin...
[3 replies] Last: Yeah, yes, you guys are right! I forgot it's not know until runtime. T... (by northfly)
HELP!!!
 
You are writing a program to calculate the area for 500 different measurements for a playground company in the region. The company must calculate square footag...
[3 replies] Last: #include <iostream> #include <fstream> #include <string> using namesp... (by Nalaxer14)
calculating the wind chill Error:term does not evaluate to a function taking 1 arguments
 
Write a function that returns a windchill factor according to the following formula: W = 13.12 + 0.6215*t – 11.37*v^0.16 + 0.3965*t*v^0.016 Where v is ...
[1 reply] : Please use code tags when posting code, to make it readable: http://w... (by MikeyBoy)
file sizes
 
I was raised on Java, but recently I've been coding more and more in C++ for work and there's some things I don't understand and I can't seem to get good non-bi...
[15 replies] Last: Lazy loading (or delay loading) of object files (load automatically at... (by JLBorges)
Conversion from 2D <array> to double[i][j]
 
Hi everyone, I'm working on a little project, using threads and vector on Visual C++ 2010. I have this problem. I need to elaborate arrays of double 4x4 ...
[no replies]
by adv100
cannot convert 'record*' to 'record**'
 
I dont understand why i get this error when i compile my code. I believe that i am doing everything the same as i did previously but it is not working this time...
[4 replies] Last: thank you! (by adv100)
Struck in C++ coding. Need urgent help!?
 
Here I am providing a piece of my coding. #include <iostream.h> #include <conio.h> #include <stdlib.h> #include <fstream.h> int main() { string line; char word...
[1 reply] : fstream and getline are within the standard namespace. Therefore,... (by xismn)
February 2014 Pages: 1... 1617181920... 33
  Archived months: [jan2014] [mar2014]

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