49,757 Topics

Member Avatar for
Member Avatar for learningtocode

OK guys, Im writing this game, and i can't seem to figure out one thing. This is an extra fun thing that one of my Profs suggested. If i get it working like i want..he may give me extra credit. So heres the problem. This is a game where 2 …

Member Avatar for Salem
0
261
Member Avatar for squinx22

hi, I want to make a chat program using c++. Can you give me any site where i could find the concepts in building chat program? I will make a chat program similar to YahooMessenger.

Member Avatar for squinx22
0
109
Member Avatar for quintoncoert

Can someone please tell me what to do with a library object file in visual c++ express? Another programmer developed a set of classes with header files but there are no .cpp files. There is a .dll and a .def along with a library object file. The developer told me …

Member Avatar for John A
0
106
Member Avatar for laconstantine

I just started mess with Memory at c++ so i am very confused now, and this is why i am asking 3 questions that made me confuse so much. 1. Look at this: char *str = "Literal String"; Here we are creating a char pointer called str then we are …

Member Avatar for Narue
0
293
Member Avatar for SelArom

hi, I have been trying to get into C++ for a while now. My background is in VB.net. I do have experience programming with C++ (and some C) through my classes, but nothing complex... the biggest thing that I seem to be having trouble comprehending is how data access is …

Member Avatar for ~s.o.s~
0
175
Member Avatar for ebmusicman

I have many of them :) At this point I'm looking for help with a specific idea I know is possible, I just have no idea how to pull it off first some code: [code] cout << "Would you like to continue? (Y/N); method1(); [/code] [code] while(someSentinal) { //Do stuff …

Member Avatar for ebmusicman
0
132
Member Avatar for stol3n

hello all; im kinda new to this kinda stuff was just wondering if someone could please help me out with the following parts i have there ... my compiler isnt really letting me draw the board it keeps on insisiting that i have invalid types of data.. also i cant …

Member Avatar for ebmusicman
0
120
Member Avatar for jk_bscomp

Does anyone here knows how to make application in c++ using the wxwidgets for i am having trouble in getting the value in the wxTextCtrl.Could you please help me on how to get the value on the wxTextCtrl and display it in an another textctrl....pls..help.. your help is highly appreciated!!!!!

Member Avatar for ~s.o.s~
0
39
Member Avatar for generalGOTCHA
Member Avatar for ssgatbliss

Hi, I'm fairly new to c++ and I'm having some trouble getting this to work as a function. Here's the error I get: error C2447: '{' : missing function header (old-style formal list?) I can work through the minor troubleshooting of basic syntax I just don't get how to call …

Member Avatar for ssgatbliss
0
150
Member Avatar for Assemblyn00b

Basically I have to take in N and bring it to power of K so N^K i have the c++ i have the basic assembly but something is wrong the math doesn't come out right .386p .model flat .code _func proc near push ebp mov ebp, esp mov eax, [ebp+12] …

Member Avatar for Assemblyn00b
0
165
Member Avatar for Radons

Hi! I hope some one is familiar with pascal. I've been trying to translate this code into c++ for quite a while now... And frankly I've given up hope of solving it. It's supposed to invert an integer from binary data it reads from a file into normal characters or …

Member Avatar for Radons
0
222
Member Avatar for jrivera

I need help trying to compile and test this code, but I keep getting the error: template is incomplete, can not parse field. Here is my code: [code] #include<iostream> #include<iterator> #include<vector> #include<algorithm> using namespace std; template <class T> class my_istream_iterator { public: typedef charT char_type; typedef traitsT traits_type; typedef basic_istream<charT, …

Member Avatar for Narue
0
116
Member Avatar for ft3ssgeek

Hi guys I'm working on a small portion of a larger program here that will accept lines of text and based on the first word in each line needs to conditionally branch...I am using the tolower() function to make the words lowercase and then I test them in an if …

Member Avatar for iamthwee
0
140
Member Avatar for cutebamboo

I design a form in C++ Builder 2006, and i want to handle `WM_NCPAINT` message by my own function (`void RedrawCaption(TMessage & msg);`). After handle this message i have to call the default message handler of the form. But i fail to find out the default handling function. Could you …

Member Avatar for Ancient Dragon
0
603
Member Avatar for jaeSun

im compiling a basic sorting algorithm that utilizies POSIX threads (pthreads) .... everything was compiling fine, until i put the thread implementation in .... all of a sudden, it gives me this: [code]-bash-2.05b$ gcc project4a.c -lpthreads project4a.c: In function `main': project4a.c:32: subscripted value is neither array nor pointer project4a.c:33: subscripted …

Member Avatar for ~s.o.s~
1
1K
Member Avatar for anw

I have a daemon I'm working on that seems to bomb out in the middle of strcmp, WAY down in the bowels of the ODBC library. It would run for hours, then just mysteriously quit (well, as mysteriously as a SIGSEGV can be)- classic memory corruption symptom. So, I built …

Member Avatar for Salem
0
109
Member Avatar for bob1989

i cant figure out how to graph x and y positions using 2 d array i managed to tabulate the results though..does anyone have any ideas?

Member Avatar for iamthwee
0
42
Member Avatar for CodyOebel

I hope this helps for some of those wanting to create a basic menu. [code] #include <iostream> #include <dos.h> #include <windows.h> #include <string.h> #include <fstream> using namespace std; int main() { ofstream OutFile("OutFile.dat"); top: system("cls"); //Opening first prompt to introduce software designer system("title SAT-FAST"); system("Color 6"); cout<<" Created and Developed …

Member Avatar for CodyOebel
0
95
Member Avatar for Mashadar

Hi, I have created an on-the-side project to test some code which I hope to merge with my main program, however I've noticed that the output generated varies between two compilers (VC++ 2005 Express and Dev-C++). Since I am doing the project in VC++, it's output has had me scratching …

Member Avatar for Mashadar
0
162
Member Avatar for CRD
Member Avatar for donaldunca

Could you tell me the mean of this code? [CODE] while(1) { // do something [/CODE] thanks!

Member Avatar for donaldunca
0
124
Member Avatar for jan1024188

hello, I saw option of MFC project in VS2005 and I d like to know what MFC is, and what can we do with MFC. I presume MFC is C++ based, but does it need any framework? And whats the difference betwen Winapi and MFC? What can you actually do …

Member Avatar for jan1024188
0
123
Member Avatar for iTaChi

Hello, I want to know where to start in software programming in C and C++, I know their basics, i can write programs of mathematical solutions, but, can you please help me, adjust to a higher level, like software programming, Thank You Guys!!

Member Avatar for Narue
0
146
Member Avatar for yesm

I've got a custom class that is as follows: [code=C++]class course { private: string prefix; int number; string title; int credits; char grade; public: //Constructors course(); course(string, int, string, int, char); //Accessors void set(); void print() const; string get_prefix() const; int get_number() const; string get_title() const; int get_credits() const; char …

Member Avatar for Narue
0
137
Member Avatar for squinx22

Anyone here who uses wxWidgets? I am a newbie in wxWidgets. I have trouble in inserting an image in my application.. I am using this one: wxImage *img; img=new wxImage("pic.jpeg",wxBITMAP_TYPR_ANY,-1); this code is erotic. What would you suggest? Thanx..

Member Avatar for ~s.o.s~
0
75
Member Avatar for pri_skit

I have application build in Embeded VC++ 4.0 project,now i want to include (.h) file in project which is produced from another (.exe) built in Win32(App) Console.I have added header file in project workspace.The problem is (.h) file is created after compiling the project.I want to include (.h) file before …

Member Avatar for pri_skit
0
251
Member Avatar for jk_bscomp

hello everyone!!!does anyone from this forum knows how to install wxWidgets for the application program in c++ even there is no internet.Furthermore,i am using a ubuntu flavor of linux. Your help is such a great help..... I hope you could give me the complete sypnopsis on how to install wxWidgets …

Member Avatar for Nick Evan
0
108
Member Avatar for DotNetUser

I'm using Visual C++.NET. I need to pass a port number to my gui. What the syntax for passing arguments to "int __stdcall WinMain()." For regular C++ it would be "int main(int argc, char* argv[])" Thanks.

Member Avatar for cpg
0
574
Member Avatar for ammochck21

can someone please tell me why this is giving me a segmentation fault? I am sure it has something to do with the first line. Thanks!! [code] int main() { StackType<char> temp; char sym; cin >> sym; while (sym != '#') { if (sym == '{' || sym == '(') …

Member Avatar for ammochck21
0
110

The End.