General C++ Programming - August 2014 (Page 17)

cast “int32_t” to “static const int32_t”
 
Hello, I am trying to convert “int32_t” to “static const int32_t” type. However, I could not figure out how to use static_cast and const_cast togeth...
[3 replies] Last: Never mind, I could easily solve this. double* dTime_Scale = new dou... (by dkumar3)
What are file-open and file-close for?
 
Hi, I wonder, why before accessing a file we need to have it opened, and after finishing with it, we need to close it? If FileA is already open by PtrA, Ptr...
[4 replies] Last: There are two levels of data structures involved with opening a file i... (by AbstractionAnon)
Do not know why my program d not work
 
i have an array of "2,3,4,5,6,9,10,11,12,99". i need to create a table of this which i have done using case 1. Find the maximum value of the array 2. Find the...
[6 replies] Last: Yes!! thanks. I completed it (by Nicholas001)
survey on C++ exception handling
 
Dear all, I am conducting a survey about the use of exception handling constructs in C++. I would really appreciate if you could contribute to this research by ...
[no replies]
by judo11
How to understand link list in C++?
 
I'm new to link list and I find it difficult to understand. Please help me explain each algorithm written in Link list. #include<stdlib.h> #include<iostre...
[1 reply] : Most of your questions are not about linked lists. How about starting... (by keskiverto)
Help required with getline() function.
 
#include <iostream> using namespace std; int main () { int t; cin>>t; string s; while(t--) { getline(cin,s); } return 0; } When I t...
[3 replies] Last: http://www.cplusplus.com/forum/beginner/1988/ (by LB)
Build problem with codeblocks
 
i have a problem with building, log output: c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../libmingw32.a(main.o):main.c:(.text.s...
[no replies]
Quaternion Rounding
 
Hello there, I need help developing an algorithm which will round a quaternion to the nearest x degrees/radians. Here is my algorithm so far: //GridAngle...
[2 replies] Last: Thanks (by Irrelevant Elephant)
by Gamytr
C++ Program find a years day
 
Request an integer x from the user. Given that today is June 9, thursday, write a program that will print the day of the week on June 9, after x years from now....
[2 replies] Last: you're right. I'll be back after work to do (by Gamytr)
Common Data-type Operator Overloading
 
Hey there, I was wondering how you would overload an operator for Common Data-types like "char" and "int". You may ask... "Why would you want to do that?" ...
[3 replies] Last: Thanks. I'll explore the bitset option. (by SixTsevN)
Social media control pannel
 
Hey everyone ! I'd like to make a control pannel for different social media to control multiple account and have proxy support. I think i need to learn mult...
[1 reply] : I don't think C++ is the right tool for the job here, look into Java. (by Avilius)
Perlin Noise Help
 
Hi I'm trying to use https://github.com/nothings/stb/blob/master/stb_perlin.h for some perlin noise to create a image for a procedural map. I'm not sure h...
[3 replies] Last: "Class" should be lowercase (eg. class ) and you're missing the p on ... (by Avilius)
Safe alternative to system in c++
 
I have seen many things that say why you shouldn't use system() in c++. But what I couldn't find was a good alternative to system(). I need to use the console, ...
[3 replies] Last: That's an appropriate use for system() . Go ahead and use it. (by Duthomhas)
Design Question, Templates?
 
Not sure what the best title would be :p Currently I have a macro. Its rather big and I'm wondering how to get rid of it. I'm not sure if I've just been awak...
[3 replies] Last: Well I don't know if its a good way, but this works: I put the macro ... (by Azenris)
by ne555
[faq] multiple definition
 
Multiple definition is a linker error. It is a violation of the One Definition Rule , you've got several translation units that define the same function or var...
[5 replies] Last: C99 then. I learn stuff all the time. :-> (by Duthomhas)
Increment question
 
I know how to increment by 1 but i want to increment by say 3. What I am trying to do is to like 3 * 1 = 3, 3 * 2 = 6 etc to output 3, 6, 9, 12 etc like a multi...
[2 replies] Last: thankyou (by RedLunar)
Binary File Errors
 
For a big project for school I have to make an airline reservation simulator but I have run into a problem. I want to save the the flight code and its locatio...
[4 replies] Last: will keep in mind for later as this is a school project and it wont ma... (by bilgramiraza)
error C2059 doing my head in
 
This is how the code is in my book, but it's stil throwing out errors. I think I know why but I cannot put my finger on it, spent 2 hours trying to figure it ou...
[10 replies] Last: Typo in the book, I should've known but when it's written in a book yo... (by NewCComer)
sprintf_s correct usage
 
Hey there, I'm having a bit of trouble with sprintf_s(). I keep getting a currupted format into my buffer when I use it and an Access Violation. I assume I'm u...
[4 replies] Last: I did, thanks. (by SixTsevN)
Any looping would do :))
 
You pros are once newbies like us. Hoped you might take a little time sharing your expertise. Got freaked out when our teacher gave us this activity, where she...
[2 replies] Last: That helped a little sire but thanks. :)) (by exoruel)
August 2014 Pages: 1... 1516171819... 25
  Archived months: [jul2014] [sep2014]

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