49,757 Topics

Member Avatar for
Member Avatar for ishaan3731

I actually intend to make a program using c++ which does the three following tasks: 1)lets me input the location and name of a jpg image file... 2)picks up the name of the file and stores it in a string...for eg if file name is myfile.jpg it picks up "myfile" …

Member Avatar for pseudorandom21
0
2K
Member Avatar for Hlopster

Hi Guys, sorry for asking many questions, but i'm a newby to C++. I generated 2 dimensional array with number of rows defined by a user and number of columns set to 5. But I can't figure out how to substitute duplicating values with new unique ones. I can't use …

Member Avatar for phorce
0
175
Member Avatar for eskimo456

Hi there I am writing a game with some basic AI elements. The enemies know there position and the players position and so are able to rotate and follow the player around etc. The idea is that when an enemy gets within a radius of the player they calculate a …

Member Avatar for eskimo456
0
181
Member Avatar for LdaXy

I'm attempting to port a header file for a program that was designed for a Unix environment. i'm'; aware of the type defined variables like s16, u8 and such, but is their anything else i need to know about Unix C? not to familiar with it. thanks. sample portion of …

Member Avatar for Moschops
0
112
Member Avatar for PreyaticIntent

Okay, I'm still a fresh out of college programmer (only been doing it for 4 years), so I will try to be as descriptive as possible. I apologize now for anything that doesn't make sense. I've got a C++ project that using MFC to create forms. I have my main …

Member Avatar for Ancient Dragon
0
173
Member Avatar for caba992

hi guys i am newbie in c/c++ staff and friend of mine told me that you can mix c/c++ and i thought it's cool but i want to see how it's work so please help.. if you have any simple example will appreciate ..thanks

Member Avatar for Moschops
0
254
Member Avatar for Awais Ali

Hey, I want to Shutdown the computer using Registry in c++.. i have googled and only one thing that i see about [B]ExitWindowEx()[/B].. But i have no idea about to implement in c++ program... So please help me ....

Member Avatar for PrimePackster
0
177
Member Avatar for Kathyrine

I am trying to sort a record according to their respective number like this: [CODE] 5 reyes d r 1 2 3 3 delos d k 4 5 6 9 go t r 7 4 5 1 po w w 2 2 2 2 bun b m 3 3 3 …

Member Avatar for Kathyrine
0
5K
Member Avatar for BoBok2002

I am trying to build a binary search tree. The elements in my input file is printing, but with junk. The problem is with the sentinel in the while loop. I'm not sure of what else to try. I've tried: while (infile) while (count != 14 && infile.good()) while (strcmp(Str, …

0
138
Member Avatar for cahitburak

Hi everyone. I created a [B]Windows Forms Application[/B] project which is [I]sending data to parallel port[/I] by using [B]inpout32.dll[/B] and I'm having following problems: [INDENT] When I test it on Windows XP, an error occurs "This isn't a Win32 application". Why? When I test it on my pc, it runs …

Member Avatar for cahitburak
0
178
Member Avatar for kedzi0591

Hello! I have problem with class, the error is "Applik" : is not a class or namespace name. In mine opinion code is fine, and i cannot find solution, please help me i am beginner. This is mine code **App.h ** #pragma once #include <SDL/SDL.h> #include <windows.h> #include <gl\gl.h> #include …

Member Avatar for indore8
0
174
Member Avatar for jayanta87

I got the following error, please help me to resolve this problem.. ui.h:10: error: âloginâ has not been declared db.h:7: error: âloginâ has not been declared controller.cpp: In member function âvoid control::casino_game()â: controller.cpp:15: error: âloginâ was not declared in this scope controller.cpp:15: error: expected `;' before âloâ controller.cpp:34: error: âloâ …

Member Avatar for vijayan121
0
134
Member Avatar for maryam ahmad

i'm working on visual studio 2008. I'm trying use fopen to open txt files and it does not give any errors but its not doing the required task either. i've to submit this project on monday! please help here's part of the code: [CODE]#include <stdio.h> #include<iostream> #include <conio.h> #include <string> …

Member Avatar for maryam ahmad
0
1K
Member Avatar for jeevsmyd

I'm making an SIC 2 pass assembler in C++. And I'm not very good at files in C++. The following code segment is supposed to read LABEL OPCODE OPERAND from the input text file . All it has to do is to identify each of those based on the tab …

Member Avatar for jeevsmyd
0
789
Member Avatar for mechomorph

Hello guys, Application : before into this program must to login first and next must select channel for talk with another user i will to do the program c++, it's can login , select channel (change channel every 10s (random)) and posting fix message similar BOT POSTING BUT i dont …

0
63
Member Avatar for ehmad.

[CODE]#include<iostream> #include<cmath> #include<fstream> using namespace std; void readfile(int arr[][9],int s) { ifstream in; in.open("file.txt"); if(!in) { cout<<"File Not Found"<<endl; exit(1); } for(int i=0;i<s;i++) { for(int j=0;j<9;j++) { in>>arr[i][j]; } } } void possibilities(int arr[][9],int s) { int pos[9]; int x=0; bool check=1; int power=0; for(int i=0;i<3;i++) { for(int j=0;j<3;j++) { …

Member Avatar for WaltP
0
730
Member Avatar for coder_10

Hi, So I have a very simple server/client program using winsock. In C++. Using MingW as a compiler. This is the code part which does the connecting: [CODE]for(;;) { if(Connect = accept(Listen, (SOCKADDR*)&Server, &size)) { std::cout<<"\nConnection was reached"; } }[/CODE] How can I send and receive simple text from server …

Member Avatar for coder_10
0
955
Member Avatar for Giggly

Prekė.h [CODE] #include <string> using namespace std; class Prekė { private: string pavadinimas; double pagaminimodata; int kiekis; double kaina; double vartojimolaikas; public: Prekė(); Prekė(string pavad, double pagam_dat, int kiek, double kain, double vart_laik); ~Prekė(); string ImtiPavadinimą() { return pavadinimas; } double ImtiPagaminimoDatą() { return pagaminimodata; } int ImtiKiekį() { return …

Member Avatar for jmichae3
0
194
Member Avatar for ashar5

Hi, I am running embedded mongoose webserver in server side (Linux centos). In the client (Windows) I am using c++ with libcurl to post request to webserver. It works successfully all the time. But now, I am facing ssl connectivity issue in client side. Without ssl, it works fine. If …

Member Avatar for jmichae3
0
244
Member Avatar for acmarshall

Hello all I need a little help finishing my assignment. I am given a text file that contains information about vehicles in an auto dealership. The vehicle records consist of the following fields: VIN, Make, Model, Year, Color, Date of purchase, Cost, Date of Sale, Sale Price and Revenue. The …

Member Avatar for jmichae3
0
145
Member Avatar for cppluvr

I need to read in instructions from a file, then with those instructions, insert the names and scores below the instruction into a linked lists. I've tried using getline, and >> and I keep getting errors. Here is what I have so far: [CODE]#include<iostream> #include<fstream> #include<cstdlib> #include<string> using namespace std; …

Member Avatar for Lerner
0
222
Member Avatar for FARIEYRA

[code]void display_list() { shoes_node *current_ptr; current_ptr = head_ptr; // move current_ptr to head of list if(current_ptr == NULL) { cout<<"\n\t\t\tNO RECORDS TO BE DISPLAY \n"<<endl; } else(current_ptr != NULL); { cout<<"\n\t\t\t ****************************\n"<<endl; cout<<"\n\t\t\t SHOES RECORDS \n"<<endl; cout<<"\n\t\t\t ****************************\n"<<endl; do { cout<<"\n\t\t\t SHOES'S ID : "<<current_ptr->idkasut<<endl; cout<<"\n\t\t\t SHOES'S BRAND : "<<current_ptr->jenama<<endl; …

Member Avatar for FARIEYRA
0
130
Member Avatar for Triarius

Hi! I'm making a console game with cars. I am stuck trying to make the enemy car approach. If you have any thoughts or ideas, let me know! I'm thinking of using classes, but i dont know how to make them :) Is this legal? It probably isn't but here …

Member Avatar for Labdabeta
0
225
Member Avatar for zekstein

Hello, i need to 'query' a half life server. The info about query is here [url]http://int64.org/docs/gamestat-protocols/halflife.html[/url] and i want to query the server with the packets : ÿÿÿÿrules for example. The ip is 127.0.0.1 and the port 27015 with udp connection How to do that ? I want C# or …

0
79
Member Avatar for sbrohee

Dear all, I am busy implementing a small program and I'd like to work with threads. First of all, I'd like to specify that I am certainly not an expert user of C++ (I often use Perl -ouch- but in this case, Perl was far too slow for the program …

Member Avatar for sbrohee
0
305
Member Avatar for jankeifer

can anyone please help me in to creating a client-server using this game? [CODE]#include <iostream> #include <iomanip> #include <map> #include <time.h> #include <cstdlib> using namespace std; //displays the instruction of the game void displayInst(){ for ( int b = 0; b < 28; b++ ) cout << "* "; cout …

Member Avatar for vijayan121
0
146
Member Avatar for pseudorandom21

If ASIO had better documentation I could probably have found for myself an answer, but instead... Is there a way to determine bytes available to read using the asio::ip::tcp::iostream ? I really like the tcp iostream because it's super-easy to use, but I haven't found it exactly feature-packed. Does it …

Member Avatar for vijayan121
0
178
Member Avatar for DACP

What should I do to change this code using else-if so that it will read the first character in my input text file and then determine which equation to use? For example, the first line in the input text file is A 4 8 and the second line is M …

Member Avatar for mrnutty
-1
2K
Member Avatar for imrandavidm
Member Avatar for MugANDGlass

[CODE]void search() { char id[12]; node *p = head; system("cls"); { cout<<"Search ID: "; cin>>id; } while ((p!=NULL) && (strcmp(id,p->id)!=0)) { p = p->next; } if(p==NULL) { cout<<"No such ID in our list"<<endl; delete p; } else cout<<"We have this ID in our list"<<endl; } void remove() { char id[12]; …

Member Avatar for v3ga
0
153

The End.