49,761 Topics
| |
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, … | |
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. | |
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()`. … | |
how to write a program to get a result.... 1 1 121 12321 1234321 by usingfor loop | |
#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 … | |
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 … | |
*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 … | |
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 … | |
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); … | |
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 … | |
Wat is the size of string?does string have specific size..??as like integer... Float.. Double.. Char...?? | |
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 … | |
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 … | |
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]); | |
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 uderstanding difference between overiding andoverloading concept? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
#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) { … | |
//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 … |
The End.