49,766 Topics

Member Avatar for
Member Avatar for NicAx64

we have already known that there should be some initialization to work with the stl. To use that library. There are objects that there should be initialized before entering main. I think that I receive this run time SIGSEG due to that. So any idea ? I have use a …

Member Avatar for NicAx64
0
203
Member Avatar for KaZu88

This is my program, it causes memoryleaks. I show only a small part where the problem exist. Starts with the header then the cpp. ParticipatorRegister.h [CODE] #ifndef PARTICIPATORREGISTER_H #define PARTICIPATORREGISTER_H #include "Participator.h" class ParticipatorRegister{ private: Participator **arr; int inc, init, elem; void initiate(); //void expand(); public: ParticipatorRegister(); ~ParticipatorRegister(); //void save(ofstream&); …

Member Avatar for Lerner
0
167
Member Avatar for Silvershaft

How do I see what key user presses I suppose I have to do it with winapi? I want my program to write to text file what key user presses, like when he presses M it writes M to text file. I looked and I found one function but it …

Member Avatar for Silvershaft
0
104
Member Avatar for لولا

Hi everyone ,:) [B]I need a function in c++ to calculat the age of a user, by asking the user to enter his birthday.[/B] :S

Member Avatar for siddhant3s
0
77
Member Avatar for rahul8590

i am currently working on creating mathematical models for my research and want a non linear equation solver library which i could integrate with my program . i searched the web and found op++ which wasnt a free program .

Member Avatar for sinnerFA
0
217
Member Avatar for SoulReaper1680

Salutations! Would anyone be kind enough to provide a general overiew as to what exactly is OpenGL. I searched the internet however, most of the material I came across didn't quite clearly state the different between OpenGL and GLUT. Also, what is SDL? I am quite familiar with C++ however …

Member Avatar for SoulReaper1680
0
119
Member Avatar for jhayar

hi im a newbie,can u give me an example of math problems using c language...preferably calculus using else-if statement,or a looping satement..thank u very much..godbless(",)

Member Avatar for mrnutty
0
62
Member Avatar for Kingfahad

Write a program that allows the user to enter a start time and a future time. Include a function named ComputeDifference that takes the six variables that represent the start time and future time.Your function should return, as an int, the time.

Member Avatar for Ancient Dragon
-1
163
Member Avatar for mobeen89

Hello! Ive searched the and even this site and I have not been able to find a way that would allow me, on the execution of a certain condition, to open a text or image file. By open here I do not mean using fstream etc. to open the file …

Member Avatar for Ancient Dragon
0
92
Member Avatar for Nikhar

Each year IARCS organizes a series of competitive exams based on computing languages. I have great passion for computers and hence it is natural that I was attracted towards it. Anyways, to cut the long story short, I was selected in ZCO 2010 and I have qualified for INOI 2010. …

Member Avatar for Nikhar
0
93
Member Avatar for ge6a93

Hi, i'm using VC++ 6.0. I'm having some activity in my program(e.g. moving object in a timer). If this object gets to the end of the screen and i press a key(doesn't matter which) a message shows up - MessageBox("You won"); or something like that. But if i do not …

Member Avatar for Rajesh R Subram
0
119
Member Avatar for gsingh2011

This is my code so far to connect to a webpage and retrieve the html: [CODE]#include <winsock2.h> #include <windows.h> #include <iostream> #pragma comment(lib,"ws2_32.lib") using namespace std; int main (){ WSADATA wsaData; if (WSAStartup(MAKEWORD(2,2), &wsaData) != 0) { cout << "WSAStartup failed.\n"; system("pause"); return 1; } SOCKET Socket=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP); struct hostent *host; …

Member Avatar for marco93
0
742
Member Avatar for barakk

hi,I'm about to move to Vancouver Canada in the next four month. does anybody here know a good web site to start looking for a job.

-2
118
Member Avatar for rack

this is a bonus question..the doctor didnt give this subject to us..but i need these marks.plz someone help me. write i binary file that: 1.add new student. 2.delete student. 3.update student. 4.search student. 5.display student. 6.exit. each student must have first name , average, SID

Member Avatar for jonsca
-1
119
Member Avatar for niyasc

Hai, This is a source code written in turbo c for car racing game as a part of my higher secondary project. May I get some advices to improve it? 1.Did I use the real method to constitute motion in c? 2.How can I include sound in c? { Function …

Member Avatar for Nick Evan
-2
155
Member Avatar for Nikhar
Member Avatar for Nikhar
0
65
Member Avatar for rahul8590

i DO have searched the google to do multithreaded programming using c++ and found there were few like the ones supported in BOOST libraries and zthreads .. I would be glad if u guys could help me in suggesting much better ways in doing so .

Member Avatar for rahul8590
1
766
Member Avatar for AddyMan

I need help to make a function that checks to see if a position is already occupied by an X or O. The game just checks to see if the random pc spot is the same as that chosen by the user on their last turn. I'm trying to get …

Member Avatar for mrnutty
0
65
Member Avatar for rag84dec

HElp needed to create a windows service , to launch a simple thread created by the user. I got an article here... [url]http://www.devx.com/cplus/Article/9857/1954[/url] But how to create a thread at apropriate places , like STOP , RESUME , SHUTDOWN?.PLease give me some pointers , thanks in advance...

Member Avatar for mahela007
0
113
Member Avatar for Ancient Dragon

This shows how to get the size of all the files in a folder, and all its sub-folders on MS-Windows operating system. It uses recursion to transverse all the directories, and return a 64-bit integer. It was compiled with VC++ 2008 Express and Code::Blocks Version 8.02 with MinGW compiler.

Member Avatar for Ancient Dragon
5
5K
Member Avatar for Stefano Mtangoo

I will start with SDL_mixer to make media player I have longed to make for long now. Here my question goes. Do I need to know SDL before I can use SDL_MIXER or I can just start directly? and good tutorial for begginner? Thanks all

Member Avatar for mrnutty
0
87
Member Avatar for sman13

I need help by saving a codded file like making a internet explorer what should I do email me at <EMAIL SNIPPED>

0
54
Member Avatar for prashw

hey all.........i m new here!!!!!! I am at my wits end on this problem.....i would appreciate it if you could give any help..................................................... i managed to compile and run a C++ program that intializes and reads/writes to a serial port . I was using the Dev C++ compiler to write …

Member Avatar for Ivan85
1
8K
Member Avatar for Silvershaft

Hey I read one tutorial and tried to edit a code a little bit now I can send messages from server to client. Im wanting to shutdown process on the client computer if the buffer matches kill and it won't work. Heres code: Client: [code]#include <iostream> #include <winsock2.h> #pragma comment(lib,"ws2_32.lib") …

0
68
Member Avatar for laelzio.mosca

I finished my tic tac toe game program, I`d like to know if anyone can tell me what I need to do in order to send the .exe file to someone and make it so the file executes without problems. Thanks guys

Member Avatar for laelzio.mosca
0
112
Member Avatar for ge6a93

Hello, i'm using VC++ 6.0 and i have a problem with pressed keys in my program. When i press some key i make my program do something. For example i have a falling circle in a timer and if i press 'Z' when the circle gets coordinate Y = 500 …

Member Avatar for mrnutty
0
113
Member Avatar for cjwenigma

OK so here is a fighter game I made..except my fighters power won't decrease and I can't get my fighters names to show up....*sigh*... any idea.. My functions could be wrong.. but I always thought it went above int main().. #include<iostream> using namespace std; int fighterOne (char fighter1Attack){ string fighter1Name; …

Member Avatar for peter_budo
0
129
Member Avatar for Earendil

Today is my second day with *<Accerlerated C++>,* and so far I've read until chapter three. Below is the code written in the book and as a part of solving the chapter's exercise problem 3-0, I typed and compiled the code. (using vc++ 6.0) I assumed there would be no …

Member Avatar for Yiannis_Sp
0
276
Member Avatar for packrisamy

// Samy1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "math.h" using namespace std; int main() { float c; c = log10(100.0)* 10 ; cout<<c; int a; cin>>a; return 0; } Hi All, I tried above program in VC6, and compiled fine in both debug …

Member Avatar for Rajesh R Subram
0
140
Member Avatar for primalka

after having 10 years career - u know my age now- , I badly need a change in my career, I hope to spend 6 month learning and then look for a job. i have been working in non software but IT career over 10 years. can do self study …

0
47

The End.