49,761 Topics
| |
Hi, I have to call an external executable program (prog2) from within my program (prog1) and then use the output of that exceutable program (prog2) in program (prog1) after calling it. I have to manipulate the output obtained from progam (prog2) in program (prog1) and then perform this iteration n … | |
Can someone give me a link to a good tutorial or something on C++ Winsock FTP and HTTP communication. I know how to use TCP/IP, but when you connect straight to an IP, they have to be connected to the same network your on for it to work. If you … | |
I use the Dev-C++ compiler on a Toshiba laptop running on Windows Vista 32-bit. Im good in C++, and I have been learning to use the OpenCV (Open source Computer Vision) library with C++. When I run my C++ app, the OpenCV window that uses GUI freezes up. It shows … | |
I have a rather simple question, and I' ve been looking for the answer for awhile, but did not find any. So I would like to know, what is the proper way of deleting a pointer. For example I have a class with some kind of array, which I want … | |
Hello everyone, I really want to know what should I do first in making games using c++. We all know that c++ is the most widely used programming language in making games. But, there is still things which are not clear to me as of now. I'm still a newbie … | |
I'm having a problem on how to create a program on c++ that creates its own file and storage capabilities. I'm planning to have an interface like this so I put a little detail about the program just to give you the idea of what I actually mean... it goes … | |
I'm looking for some help with some C++ code. I have working knowledge and understanding of code and coding in general, but don't actually program myself. I have 2 files TFGame and TFMenuConsole In TFGame I put [CODE]var config bool ToggleWarhead;[/CODE] and later put [CODE] PlayInfo.AddSetting(default.GameGroup, "ToggleWarhead", default.SIGPropsDisplayText[i++], 0, 1, … | |
You are able to hide the desktop icons on xp by right clicking on the desktop and choosing to hide them, but how would you do it through c++? I was messing around with DestroyWindow and ShowWindow, but I cant figure it out. Any help? WinSpector is telling me that … | |
#include<iostream.h> #include<conio.h> void main() { int n,i,j,t,s; clrscr(); char sname[30],rating[60]; cout<<"enter no of songs in the list"<<endl; cin>>n; cout<<"enter song name and rating"<<endl; for(i=1;i<=n;i++) { cin>>sname[i]; } for(i=1;i<=n;i++) { cin>>rating[i]; } cout<<"The top songs are in the order:"<<endl; for(i=1;i<=n;i++) { for(j=i+1;j<=n;j++) { if(rating[i]<rating[j]) { t=rating[i]; s=sname[i]; rating[i]= rating[j]; sname[i]=sname[j]; rating[j]=t; … | |
I am trying to figure out for my physics simulator how to give my object name a variable or something, ill show an example and the compiler flags it an error but all i am trying to do is pass it the value not the variable long atomID = 0; … | |
I was working with some c++ code from a site. When i try to link in dev c++ I get this. [QUOTE] [Linker error] undefined reference to `GameEngine::m_pGameEngine'[/QUOTE] The code compiles perfectly but does not link. [CODE]class GameEngine { protected: // Member Variables static GameEngine* m_pGameEngine; HINSTANCE m_hInstance; HWND m_hWindow; … | |
//cube.h #ifndef CUBE_H #define CUBE_H class Cube { public: Cube(); ~Cube(); void setSide(double s); double getSide(); double Area(); double Volume(); void Properties(); private: double Side; }; #endif ´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´ #include <iostream> #include "cube.h" using namespace std; Cube::Cube() { } Cube::~Cube() { } void Cube::setSide(double s) { Side = s <= 0 … | |
Hello, I am a new beginner to c++. I am trying to launch an application in using the following command: system("clip100.txt") File clip100.txt got opened on my word processing software running and i had to exit from word processing to get my program continued. My question is: How can i … | |
Here is my code that i am working on. Upon running the exe, it asks the user for a temporary password. After that, the screen saver pops up. Upon exiting the screen saver, the console will ask you for the temporary pass that you entered in order to renable the … | |
Hi, It's me again with another silly question:) I was wondering if there was a way using ofstream to not erase the contents of the file it is writing to and simply write at the end. Thanks! P.S. I'm using windows XP and Dev C++ | |
If you recall in the implementation of list: struct list_node_base { list_node_base* next list_node_base* prev ... [B]void hook(const list_node_base*);[/B] .... }; I wanted to look under the hood of the [B]hook[/B] function, but can't find it anywhere in the STL library or any reference to this method via Google for … | |
HEADER; I am noob in programming, so keep it simple thank you :) I use VS 2008 pro SP1 OS is vista Ultimate x64 SP1...(SP2 beta I will try later) Which function is better and what are differences? 1. system () 2. CreateProcess () ...is there more choices? My goal … | |
i'was asked to develop chat application using c++ anyone can help me finding tutorials/ articles/ walkthrough or what ever i can get that discuss this topic | |
Hello everyone... Recently, i tried making a puzzle solver. And it came out perfect. I wanted to try somthing harder so i went on to a sudoku puzzle solver. You see i checked a bunch of places and found that the best and easiest way to do it is with … | |
Hey guys. Another problem : ( Well you see, i was attempting to make an array that stores char's in a lets say 10 by 10 grid. Then i can display it Example: [code] char array[10][10] = { "----------", "| |", // ...... ext... "----------" }; for(int y = 0; … | |
Hi, I'm a newbie in C++ and i'm working on a project, but it doesn't work.. The C++ program should read numbers into an array, the numbers are in a txt file. Each array number : ex. array[1], array[2], array[3]... should get a number from the txt file. In the … | |
Hey guys, Could I "teach" my compiler to do automatic type conversions for me? So when I have this program: [code=cpp] #include <cstdio> #include <string> using std::string; int main(){ int x; string y = "1234567890"; x = y; printf("y: %s == %d\n", y.c_str(), x); return 0; } [/code] It won't … | |
Hi guys :), long time ^^ I have a question, I hope to get the answer :) "what is the name of all c++ exception handlers?" thanks in advance :) | |
I'm working with structures, but somehow it skips one of the user inputs for the pie's price: [CODE]#include <iostream> #include <windows.h> #include <string> #include <conio.h> using namespace std; const int ESC = 0x1b; struct pie{ string brand; float price; string flavour; }pies[5]; int main() { cout << "Structures."; cout << … | |
Could anyone inform me of how I would call the screen saver on windows xp? Edit: Just did some research on MSDN and found the WM_SYSCOMMAND, and i see something about calling the screen saver in there, but i am confused on how to use it. Any help? Thanks guys | |
Hi. I'm new to the forums, and I have a quick question. I would like to add 14 days to the current system date in a program. Here is my code: char date[9]; _strdate(date); char time[9]; _strtime(time); cout << "The due date of your books is: " << date << … | |
HI For Christmas I got a book on game programming with allegro. I went through the process of setting up the files and ran, compiled, and linked the program only to find that depending on which compiler I used (Dev-C++ or VC++ 2008) it came up with different errors saying … | |
Can anyone recomend any c++ 3D engines that are similar to pygame? | |
Hi again. In one of my programs, I would like to put in a search type feature. I would like it, so if the user enters a book name, it returns the call number of the book. I would also like it ti display a message if the library doesn't … | |
Hi I'm having a problem reading in a file. I am using BCB6 Personal Edition under Win XP. The file is always read correctly up to the 4413th byte then the data is corrupted. I have modified the code from a fixed array size to use a vector so I … |
The End.