General C++ Programming (Page 9)

how does clock return the same value every 72 minutes?
 
I am reading up on the clock() function: http://www.tutorialspoint.com/c_standard_library/c_funct...
[2 replies] Last: The maximum value that can be returned by std::clock() is std::nume... (by JLBorges)
How can I get the pointer that an iterator points to and store it in a pointer variable?
 
I'm making a system like twitter for class called ShoutOut.com I want to be able to get the PublicSh...
[3 replies] Last: PublicShoutOut* pPSO = &(*start); Just dereference the iterator to ... (by fun2code)
why does this crash?
 
hi there, I'm working with sse2 code, and for some reason this code crashes and I have no clue why....
[3 replies] Last: Yeah it works for Coliru and other online platforms... it's really wei... (by Yours3lf)
by rgt13
help help
 
Im tired of this class and i just want to be done with it. can anyone help me write this progr...
[1 reply] : Please note, that this is not a homework site. We won't do your homewo... (by MiiNiPaa)
by Cpper
SDL Sprite Stays there
 
#include "SDL/SDL.h" int main(int argc, char *args ){ SDL_Init(SDL_INIT_EVERYTHING); ...
[1 reply] : If you're using SDL 1.x, you're doing it wrong. Use SDL2. It's newer, ... (by Fredbill)
A call to a string names in a class not display
 
Hi, Please I created class called students which suppose to store students names of any sizes in an...
[1 reply] : Your showNames function returns the first name, and that's it.... (by LB)
by fafner
Moving from C++ to C -> extremely slow
 
I've been working on a path tracer project for the few days, and since I ultimately want it to run o...
[2 replies] Last: I wanted to do it so that when I move my rendering code over to an Ope... (by fafner)
how to init this??
 
if(item=='a') { statements } this is worikig how to input a code?? like if(item=='AK012')...
[2 replies] Last: HI JLBorges. thanks for quick reply its works thanks (by yasintha9)
by abollo
Question regarding memory addresses of pointers to structs
 
Hi I have this struct declaration to create a linked list struct node { string y; node* ne...
[1 reply] : Since they are consecutive in memory They are actually not. If you ar... (by MiiNiPaa)
by farzam
sniff RTPS packet using C++
 
How can i sniff RTPS packet using C++? anybody has the code please share. i need it desperately. tha...
[1 reply] : well first you would need a networking library. i typically use sfml, ... (by Little Bobby Tables)
PNG file loading
 
How to load png files and extract their rgb pixels? Library recomendations? And some tips...
[3 replies] Last: Can you give me an example code to get the rgb? (by topnik1)
angle between two points
 
hi everyone , i'm working on a robotics project, to move the robot from it's current position ...
[2 replies] Last: WOW , just WOW apparently this was the whole problem. i have been di... (by so confusing)
by Alby94
Difference between thread joinable and detached?
 
What exactly would be the difference between a joinable thread and a detached thread ??
[1 reply] : A joinable thread is one that you can wait for to complete. The thread... (by Peter87)
LDBL_MAX cannot Obtain
 
I could not obtain anymore the right value for the Maximum Value of a Long Double using the LDBL...
[1 reply] : I don't think long double was a standard type in C++03. Try if compili... (by Peter87)
c3867 and c2109
 
this code gives a c3867 and c2109 errors. can anyone tell me what could be done to sort that out..? ...
[1 reply] : Look at the code highlight. You have stray " at the end of line 5 (by MiiNiPaa)
Opening DOS Shell on XCode
 
Recently we started working on text and binary files at school! There my teacher asked us to use the...
[no replies]
c++ irc bot not working
 
im writing an irc bot in c++ on linux mint, and its not connecting right for some reason. anyways, h...
[12 replies] Last: never mind i figured it out. (wasnt allocating response correctly) (by Little Bobby Tables)
Subtraction of two integers
 
Hey guys. I am working on an assignment where I have to subtract two very large integers. How can I...
[3 replies] Last: If the number is 0 then move one to the left until it finds a positive... (by giblit)
Simple code
 
Can someone come up with a simple code that will add one everytime I press "press any key to continu...
[19 replies] Last: @ldm: is nul a special windows keyword then? regardless you still shou... (by Little Bobby Tables)
binary search tree printing
 
I am not sure how to use the parameters ostream and enum type in a print function. Can someone tell...
[2 replies] Last: On the prompt that I am given, the out stream is not passed to printHe... (by monstur)
Pages: 1... 7891011... 68
  Archived months: [feb2014]

Cannot post in this page. To post a new message, go to the first page.