49,761 Topics

Member Avatar for
Member Avatar for sudesh.yadav.104

I want to create two textboxes on my window. I used this code case WM_CREATE: hwnd = CreateWindowEx(WS_EX_CLIENTEDGE, TEXT("edit"), TEXT("sending"), WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER | ES_LEFT, 15, 15, 200, 300, hwnd, NULL, NULL, NULL); hwnd = CreateWindowEx(WS_EX_CLIENTEDGE, TEXT("edit"), TEXT("Receiving"), WS_CHILD | WS_VISIBLE | WS_BORDER, 220, 15, 100, …

Member Avatar for sudesh.yadav.104
0
213
Member Avatar for DeanMSands3

Name says it all. Is it still relevant? I guess wxPython sort of counts. What do you think Daniweb? Now, I don't want to start a flame war -said every troll ever.

Member Avatar for mike_2000_17
0
163
Member Avatar for nathan.pavlovsky

Hello programmers! I am making a player vs. computer Tic-Tac-Toe game in xCode that is a class, with its `run()` method as its only public member function apart from the initializer. I want to decide whether the player goes first, and I created a function to do that called `determineFirst()`. …

Member Avatar for nathan.pavlovsky
0
130
Member Avatar for disha malik

how to write a program to get a result.... 1 1 121 12321 1234321 by usingfor loop

Member Avatar for rishif2
-1
86
Member Avatar for zuki88

#include <iostream> #include <string> #include <stdlib.h> #include <winsock.h>//dont forget to add wsock32.lib to linker dependencies using namespace std; #define BUFFERSIZE 1024 void die_with_error(char *errorMessage); void die_with_wserror(char *errorMessage); int main(int argc, char *argv[]) { string request; string response; int resp_leng; char buffer[BUFFERSIZE]; struct sockaddr_in serveraddr; int sock; WSADATA wsaData; char *ipaddress …

Member Avatar for zuki88
0
130
Member Avatar for muhammad.a.haq

class moving { private : short x; short y; int value; public : moving (short xa ,short ya,int va); void gotoxy(short x, short y); void gotoxy(short x, short y,bool clear); void shiftright(int x, int y,int value); short get_x() ; short get_y() ; int get_value(); void set_x(int newx ); void set_y(int …

Member Avatar for muhammad.a.haq
0
120
Member Avatar for abhig

*Question: Create Student class as an abstract class in C++. Inherit GraduateStudent and PostGraduateStudent and ResearchStudent classes from Student class. Define proper constructors, destructors and functions related to attendance and examination result. Make necessary assumptions wherever required.* I am not the same guy who posted this http://www.daniweb.com/software-development/cpp/threads/464146/cpp-program , I just …

Member Avatar for abhig
0
287
Member Avatar for RounaqJJW

float det(float A[][10],int m) { float B[10][10],d=0; int i,a,b,x,y; if(m==2) return (A[0][0]*A[1][1])-(A[1][0]*A[0][1]); else { x=0;y=0; for(i=0;i<m;i++) { for(a=0;a<m;a++) { if(a==i) continue; else { for(b=1;b<m;b++) { B[x][x]=A[a][b]; x++; } } } if(i%2) d-=det(B,x); else d+=det(B,x); } } return d; } I tried to run the program, but it exits with error …

Member Avatar for ddanbe
0
188
Member Avatar for muhammad.a.haq

class moving { private : short x; short y; int value; public : moving (short xa ,short ya,int va); void gotoxy(short x, short y); void gotoxy(short x, short y,bool clear); void shiftright(int x, int y); short get_x() ; short get_y() ; int get_value(); void set_x(int newx ); void set_y(int newy); …

Member Avatar for muhammad.a.haq
0
131
Member Avatar for adam.meyer.712

I need help writing a program in c++ where i have to write 3 different programs, a webcounter.cpp,webcounter.h, and test_prgm.cpp.So then i have to creat a makefile to compile them together, and the result of the program is "When I create the the counter, I would like to be able …

Member Avatar for adam.meyer.712
0
360
Member Avatar for supriya badam

Wat is the size of string?does string have specific size..??as like integer... Float.. Double.. Char...??

Member Avatar for irum.nageen.3
0
2K
Member Avatar for G

Sorry if this is the wrong place to post this. I am new to this site. Actually, I just joinned about 10 minutes ago. Anyway... I want to make a Cocoa applictation using all code in Xcode, not using the Interface Builder. I have searched a lot on this and …

Member Avatar for Ancient Dragon
0
258
Member Avatar for Neko Chan

am awredy maek a table wif MS.Access and i want to integrate it in borland c++ builder... and then i will do dat teh table can be found itz record which r true. if teh table awredy found which record dat r true sooooo it will show in c++ form …

Member Avatar for Neko Chan
0
156
Member Avatar for zuki88

hello everyone i want to input ip like a char,then split into "127 0 0 1" so that i can scan ips for start ip to end ip. I tried with strtok spliting but program crashes when i do sprintf (buffer, "%s",pch[1]);

Member Avatar for L7Sqr
0
317
Member Avatar for maheshmkkd

Create Student class as an abstract class in C++. Inherit GraduateStudent and PostGraduateStudent and ResearchStudent classes from Student class. Define proper constructors, destructors and functions related to attendance and examination result. Make necessary assumptions wherever required.

Member Avatar for deceptikon
0
235
Member Avatar for uttkarshsing
Member Avatar for deceptikon
0
199
Member Avatar for codemonster

I'm trying to overload the assignment operator. The objective is to copy two linked lists. I copy the first element fine, but for some reason the second loop around I encounter a null pointer and my loop ends on me. My brain is fried from over-studying and I can't think …

Member Avatar for irum.nageen.3
0
14K
Member Avatar for VUEKID

I need help to store my data i read from a cvs file, how do i input it into my arrays and use it to manipulate in other #include <iostream> #include <iomanip> #include <string> #include <cmath> #include <stdio.h> #include <fstream> using namespace std; const int MAX_ARRAY_SIZE = 120; void getData …

Member Avatar for VUEKID
0
127
Member Avatar for laklaker

Hello! I would like to ask if its possible to change the size of the array? For example, the user will input a characters then that characters will be counted and the size of the array will be change. For example of the output: Enter your name: Laklaker The size …

Member Avatar for deceptikon
0
187
Member Avatar for coolioschmoolio

Hello everyone I am in need of some help.. I thought that I did my assignment the way that my professor wanted but I just found out that he wants me to solve it differently. Problem: Given any amount of money expressed in dollars, and cents, this program computes the …

Member Avatar for deceptikon
0
506
Member Avatar for Suzie999

Trying to put inline functions in external file within project, and getting below errors. If I remove "__forceinline", then all is well. If I have the inline function in main cpp file and not in header, it is fine also. Is there a procedure to deal with this? file.h __forceinline …

Member Avatar for Suzie999
0
1K
Member Avatar for H_beginner

I am trying to create a program which adds substracts two matrices. Using switch statements. I am not sure that I am making the correct function calls. I ve been struck on this for two days looking for some guidance. Please see below my code. I am trying to create …

Member Avatar for rubberman
0
153
Member Avatar for H_beginner

I wanted to know if I can make the matrix size entered by the user dynamic. Currently I have fixed it as a 2*2 matrix. If I try making it a dynamic array it says the integer should be constant. #include<iostream> #include<iomanip> using namespace std; int input (); void output(int …

0
83
Member Avatar for kyle.mace.35

Alright so I am trying to swap fstreams. I do not use c++11 so there is no swap function. Is there anyway I can swap the files 2 fstreams have open? Or is there a way to get the name of the file that the fstream has open?

Member Avatar for kyle.mace.35
0
194
Member Avatar for BlazingShadow

Ok, I'm starting a Game Developing Company [I]<<snip>>[/I] And we are making an MMORPG Engine for our online game, Gods Online. I need any help at all, I have Notepad ++ as a Compiler. I have seen it been done before in VB6 [I]<<snip>>[/I] Basically, a server - Client Port …

Member Avatar for llUGGIllCrisllChan12
0
260
Member Avatar for Sandhya_1

Hi, I m developing an application using kinect.The IDE I use is Visual studio 2012 and kinect SDK 1.8.I m developing using vc++ I want to overlay an image on the person tracked when the person turns 180 degress to kinect. ie the person is not facing the kinect. how …

0
115
Member Avatar for kyle.mace.35

Okay so I am working on an external polyphase sort/merge and I am using peek to look at the next value in a file, there is just one problem. My peek gives me the wrong number, but if i just read the value it gives me the right value. What …

Member Avatar for mike_2000_17
0
290
Member Avatar for iwanna4get

This isn't really a help me how to program something this is where should I start I am currently watching thenewbostons c++ tutorials it is great and easy to follow I have knowledge of other programming language and I heard that c++ is quite different and a little complicated. Right …

Member Avatar for rubberman
0
201
Member Avatar for RounaqJJW

#include <iostream> #include <cstdlib> #include <cstring> #include <cstdio> #define size 400 using namespace std; char infix[size],postfix[size],Stack[size]; int top; int precedence(char ch) { switch(ch) { case '^':return 5; case '/':return 4; case '*':return 4; case '+':return 3; case '-':return 3; default:return 0; } } char Pop() { char ret; if(top!=-1) { …

Member Avatar for Schol-R-LEA
0
977
Member Avatar for cambalinho

//arr is the array int length;//for recive the array size length=sizeof(arr);//recive the array size cout <<length; length=length/sizeof(typeid(arr));//calculate the number of elements cout << sizeof(typeid(arr)); i'm using these code for calculate the number of elements in array. sizeof(typeid(arr)) these line is for give the type size, but isn't correct can anyone …

Member Avatar for cambalinho
0
783

The End.