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

Need help! Error within class
 
How can i fix this issue? currently i have my public/private class constructed and now trying to just compile the functions within them. They contain no code a...
[no replies]
by iFuz
Crash Help
 
I'm trying to make an templated class of List and trying to make a list of Students(another class) which I made. Its not working. Code seems to work fine for p...
[1 reply] : Student(char *n = 0, int r = 0) { rollno = r; name = new char[s... (by ne555)
printing rows and columns
 
i have some data like names, rounds and marks. i want to display it on the output window like this pranesh | rahul | utsab round1| | | r...
[2 replies] Last: k...thanks..:) (by praneshiitm)
C++ Project - File Seperating
 
Simple Question!!! How do i seperate files in my project for example if having multiple .cpp and .h files in the project instead of all the code being ...
[4 replies] Last: Hi, Normally in C++, class declarations (definitions from your other ... (by TheIdeasMan)
the backspace character
 
In the following char array, notice the use of a backspace character in a string literal: '\b'. char text1 = "\aHello,\n\tWorld! Mistakee\b was \"Extra...
[1 reply] : No. The compiler just inserts ASCII code 0x08 into the string, which "... (by Zhuge)
Multiplying an array by 10
 
#include <iostream> #include <cstdlib> using namespace std; int myArr ; int main(){ for (int j = 0; j < 10000; j++) { myArr = j + 1; cou...
[3 replies] Last: Ok thank you so much Smac89! Job well done. (by closed account zqMDizwU)
strcmp problem I'm having...
 
void inCript(string message) { //Feed the message to be encrypted int num; int mesLen; const char* mesLet; //The chars to be compaired are me...
[1 reply] : This doesn't have anything to do with strcmp . On line 10 you attemp... (by cire)
codeblocks sdl(Cannot find lSDlmain)
 
I just got setup with sdl and i am receiving an error which tells me cannot find lsdl2main etc.. I am using codeblocks and i have a 64 bit compiler running on i...
[no replies]
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_function_clock.htm It states: "On a 32bit system where CLOC...
[2 replies] Last: The maximum value that can be returned by std::clock() is std::nume... (by JLBorges)
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. (I tested it on gcc 4.6.3 32 bit linux) any ideas 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 program? My teacher can't teach and I'm all by myself on this. I ...
[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); SDL_WM_SetCaption("Test", NULL); SDL_Surface *buffer; ...
[1 reply] : If you're using SDL 1.x, you're doing it wrong. Use SDL2. It's newer, ... (by closed account N36fSL3A)
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 PublicShoutOut pointer pointed to by the start iterator and assign i...
[2 replies] Last: I'll keep that in mind when coding the rest of it... Really the only c... (by theperson)
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 arrey but when I call the display function it does not show...
[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 on the GPU using OpenCL, I wrote most of it in C. Earlier tod...
[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') { statements } i want to add a code
[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* next; }; If I create a linked list of 3 nodes A->B->C-...
[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. thanks
[1 reply] : well first you would need a networking library. i typically use sfml, ... (by Little Bobby Tables)
angle between two points
 
hi everyone , i'm working on a robotics project, to move the robot from it's current position to target position i need to calculate the angle first befor...
[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)
April 2014 Pages: 1... 1516171819... 41
  Archived months: [mar2014] [may2014]

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