49,757 Topics

Member Avatar for
Member Avatar for BattlingMaxo

I am a beginner to C++ and DirectX I tried learning on my own a few years ago but had to stop ( personal reasons) Now i would like to start again. I like graphics a lot. i wanted to program a 3d aquarium like Dream aquarium (check it out …

Member Avatar for sciwizeh
0
88
Member Avatar for c#loser

i learn the basic c++ , i would like to learn how to create a gui program, where can i find some sourse to learn ? and the static , i dun understand it mean , can any one help

Member Avatar for c#loser
0
76
Member Avatar for gispe

hi ppl, i just starte a new program, but now im having a lot of error wich "i think i wrote the code well", but cant understand what they mean... here i pass the code... [code=cplusplus] #include "stdafx.h" #include <iostream> #define ingresos_totales 5; using namespace std; int main(int argc, char* …

Member Avatar for gispe
0
205
Member Avatar for MattEvans

I have a few ( slightly related ) questions about binary i/o in C++, I can't seem to find full answers to these anywhere.. - Is there any way to tell if an i/ostream passed to a function has been opened in binary or text mode? - If not, are …

Member Avatar for MattEvans
0
190
Member Avatar for bomtk

Hi everyone, I got problem with coding of matrix-matrix multi plication; Please help me to figure out this my problem is: Having a matrix, U2[k][i][j], with dimension of 9081x84 and other matrix, U[m][i][j], with dimension of 9081x4 i now want to multiply transpose of A with B, following is my …

Member Avatar for iamthwee
0
69
Member Avatar for mksakeesh

#include<fstream.h> #include<iostream.h> #include<string.h> using namespace std; class emp { public: char *per; int i; int write2() { ofstream out("ss.txt",ios::app | ios::binary ); cout<<"Enter some character ....\n"; per = new char[100]; cin.getline(per,100,'\n') out.write("\n",1); out.write(per,strlen(per)); out<< "\n"; per = "asdfgh"; out.write(per,strlen(per)); out.write((char *)&i,5); out.write(per,strlen(per)); return 0; } int read_2() { char * …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for DigitalPackrat

I recently started coding in Linux and was using Dev C++ in Windows. I use geany as my IDE. Its simple and lightweight. I was wondering about tags after seeing a lot about ctags and stuffs. How can I add support for variable and function auto completion in geany. I …

Member Avatar for DigitalPackrat
0
158
Member Avatar for NoGood123

Ok I am new to C++ and I am having a hard time trying to figure out how to Sort the array I have created. I dont know if I am on the wrong track or if I am on the right track. Someone PLEASE help!! I have to sort …

Member Avatar for ArkM
0
315
Member Avatar for WilliamBaxter

Hey all names william I am in my first year uni - doin bachelor of computin and hence dont no much bout programming I have to submit this assingment tomorow and am confused as to what I am supposed to be doin I would appriciate any elp from any1 I …

Member Avatar for Arpy Giri
0
238
Member Avatar for RayvenHawk

I have an assignment that asks to create a program to input students names & test scores. After which the user gets the option to calculate the average and print out which students were below, and/or print out the highest score and which students had that score. Since the total …

Member Avatar for Undertech
0
133
Member Avatar for daviddoria

I have been using vector in c++ lately, but I needed to speed up my code a bit so someone recommended I use regular arrays. My question is 2 part - 1) I thought you couldn't do this!!?? For some reason it is working with no problem? [code] int a=2; …

Member Avatar for ArkM
0
145
Member Avatar for Lukezzz

I have Copied some Forms codeView into a new project and now I try to open a Form with this code but when doing this I will have a message like below. On the left side of the designView, I can see all forms that I have in my project …

0
90
Member Avatar for TKSS

Hey all, Just a quick C++ question from me...I'm sure this is info that is available on the web somewhere but a couple of searches weren't very fruitful. Would it be possible for someone to provide an example of the following? [list] [*]Calling/opening and executing a batch file from within …

Member Avatar for Salem
0
231
Member Avatar for Lukezzz

If I have 2 Forms in my application and Form1 is my startingForm. Is it possible to make Form2 as my startingForm instead. What indicates in the code that Form1 is my startingForm. Is this possible to do ?

Member Avatar for Lukezzz
0
116
Member Avatar for Alex Edwards

Hello I'm reading through Scott Meyer's book Effective C++, third Edition. I'm having an issue understanding Page 14, Item 2, paragraph 4. The below is a snippet of code with an explanation quoted from his book-- [code=c++] // Author: Scott Meyers class GamePlayer{ private: static const int NumTurns = 5; …

Member Avatar for vijayan121
0
1K
Member Avatar for Alex Edwards

I'm enjoying the book Effective C++. It has highlighted things that I've looked over, never heard of, or never even though of before! However, even with this book my understanding of C++ still doesn't seem to be solid. For some time now I've been curious about how binary data is …

Member Avatar for Alex Edwards
0
160
Member Avatar for Rawfel

I'm working on some C++ excercies in my book and now I'm supposed to write a program that converats a number of seconds into days, hours, minutes and seconds with the help of arithmetic operators and integer and float variables. Nothing to fancy that is. It ended up looking something …

Member Avatar for Ancient Dragon
0
173
Member Avatar for Risame

Hi everyone, I'm new and hope someone can help with my problem. First of all English is not my first languaje so I hope you all can be a little patient with my writing :icon_cheesygrin: Here's the thing. I'm new to C++, and I'm using Borland 3.1 (this is the …

Member Avatar for Radical Edward
0
246
Member Avatar for ichigoSJ

Hi im trying to make a maths program and im having trouble with one of my sections where im currently just using '+' incorporated in to a do while loop until the score = 10 though i'm stuck on how to make it randomly change the question between + or …

Member Avatar for Radical Edward
0
113
Member Avatar for nasnoma

I want someone to help me write a program to read the integer elements of two arrays A and B of different size from the user. And use link list to save this elements instead of arrays. And then do the following to the link lists given: 1. Sort link …

Member Avatar for Ancient Dragon
0
106
Member Avatar for FTProtocol

Main.cpp [code=cpp] #include <stdio.h> #include "CServer.cpp" class EventReceiver: public CServer { void OnClientReceive(CServer* SVR) { char* Packet = SVR->GetReceivedBuffer(); int packetsize = SVR->GetReceivedSize(); PCLIENT_HANDLE clientthatsent = SVR->GetLatestReadClient(); printf("\n Packet Recieved - %s", Packet); CLIENT_LIST_LOOP(SVR) if(CUR_CLIENT_SOCKETID != clientthatsent->sSocketId) { SVR->SendPacketToClient(Packet,packetsize,CUR_CLIENT); Sleep(250); } CLIENT_LIST_END_LOOP(SVR); } void OnClientConnection(CServer* SVR) { PCLIENT_HANDLE ConnectedClient = …

Member Avatar for mahlerfive
0
113
Member Avatar for FTProtocol

Im looking for a way to "ping" an ip and if it replies back then its "on" so it returns true else it returns false. If anyone can either show me a way to do this or point me in the right direction i would appreciate it.

Member Avatar for FTProtocol
0
86
Member Avatar for FTProtocol

im just wondering how you use send() and recv() like: [code=cpp] bool blah() { if(recv(send("10.1.1.1", "HI"), szBuffer, sizeof(szBuffer)) { MessageBox(NULL, "WORKED", "??", MB_OK); return true; } else { MessageBox(NULL, "FAIL", "??", MB_OK); return false; } } [/code] i know that wouldnt compile but you get the point?

Member Avatar for FTProtocol
0
165
Member Avatar for boradbhavesh

I got following algorithm for finding permutation but I can't code it. Can any one can code this permutation algorithm in c++ using recursive method as below [I]bool nextPermutation(int array[])[/I] 1. The first permutation is the permutation represented by the sequence (1, 2, …, n). 2. The last permutation is …

Member Avatar for Salem
0
85
Member Avatar for afiq200990

Hey guys. Question is. I need an example of a working code for a multiset. Hope theres someone out there who can help me on this, kind soul. Probably a multiset with a set of a grocery lists; not numbers you know.. for eg... {eggs, tomatoes, onions, chicken, shampoo..etc} you …

Member Avatar for Undertech
0
128
Member Avatar for how1121

This program does not have any input. Instead, the main routine, called the driver, calls the Pay function, testing it with a variety of parameters. Your job is to write the function. It should calculate the rate of pay, but in this case, the function returns the amount of pay …

Member Avatar for ithelp
0
113
Member Avatar for CoolGamer48

Hey I'm writing a color class, and I want to have a constructor that can take in an unsigned int like 0x00FF00FF and interpret it as fully opaque green. I have code for that (I think it should work, could someone check it?): [CODE] rzb::color::color(unsigned int hex) { m_red = …

Member Avatar for ArkM
0
220
Member Avatar for Labombadog

Hi, I normally post at the IGN boards for games, but recently I semi-quited games(school reasons) and thought of getting serious with C++ because I want to become a game designer in the future. I know its going to take a lot of hard work and time but I know …

Member Avatar for mahlerfive
0
128
Member Avatar for omdnaik

Hii there Can ne tell me how to compile and run a C prog. using microsoft VC++... Till now i have been using Turbo C++ Compiler...

Member Avatar for Ancient Dragon
0
135
Member Avatar for scream2ice

hey all; is there a conversion from "char" to "int" or to "double" possible ? If yes, how? and if not, how do we work with numbers that have more than 32 digits, for instance a 500 digit number? thanks

Member Avatar for invisal
0
328

The End.