Visual C++ :: Make Transition From Console Programming To GUI Programming?
Nov 30, 2013
my a book or website where I can make a transition from console programming to GUI programming. I'm totally confused about this. I know how to program in console and can make a whole program based on console. I also know the OPP programming, but it's clear that nobody uses console programming anymore.
View 10 Replies
ADVERTISEMENT
Jan 4, 2014
I would like to make a program for final project, which can let me send any file to my computer at home, and i can access any files in my computer when i am not at home.sending and getting file will be with socket programming.
i would like to reach all folders in computer, not only the folder, where client program exist. how can i access other folders at remote computer by using my program?
View 4 Replies
View Related
Mar 19, 2014
I'm trying to make an alphabet soup on C programming, and I'm stuck with a problem.I need to make a function able to automatically find all the words that exist in alphabet soup.
View 4 Replies
View Related
Oct 22, 2013
I need VB code to remove any rows in excell that contain ONLY CAPS.
View 4 Replies
View Related
Dec 18, 2014
I am trying to test my client-server socket program wherein the client connects to the server,client sends a message, server receives it and echo back to the client.So far, in the program server receives the message from the client, prints it BUT when it tries to send the message back to the client it shows an error.
sendto(): Invalid argument.I am new to socket programming.
Code:
//Server
#include<stdio.h> //printf
#include<string.h> //memset
#include<stdlib.h> //exit(0)
#include<netinet/in.h>
#include<sys/socket.h>
#define BUFLEN 512 //Max length of buffer
#define PORT 10003 //The port on which to listen for incoming data
}
[code]....
View 3 Replies
View Related
Sep 9, 2014
I try to ON and OFF the LED's via parallel port. I connect the cathode of LED's with pin number 18 that is ground and anode of each LED is connected through a 1K resistor to pin 2 to 8. I write the following programe
Code:
#include <dos.h>
#include <stdio.h>
#include <conio.h>
#define PORTID 0x378
void main(){
outportb(PORTID,0x00);
getch()
}
But when i connect the LEDS to the parallel port all the LEDS are LIT while i also change the 0x00 to 0xff and so on. But no effect on the LED's.
View 8 Replies
View Related
Mar 6, 2015
I'm supposed to make a program that can tell which date, out of any number of dates entered by the user, is the earliest date. However, this is based off another program that I did not do in the last chapter. Since it's a pretty simple program to use as the base for the more "generalized" one, I decided to make the more basic one that can only take two dates, first. If it was just one integer, I could just use date1 for the first date and date2 for the second date, but each date uses 6-8 separate numbers.
how do I tell it something like, "if(date1 < date2)", with date1 and date2 including their month, day, and year. I could do a separate integer name/tag (I forgot what they're called) for each number, but that sounds like doing a lot more adding and subtracting, and like it could easily get messy.Should I, or can I, add all the numbers under the "date" together to see which date has the "lowest number" or "earliest date", or should I somehow handle each number, that is month, day, and year, separately?Here's the code so far:
Code:
include <stdio.h>int main(void)
{
int date1, date2;
printf("Enter first date (mm/dd/yy):
");
scanf("%d/%d/%d", &date1);
printf("Enter second date (mm/dd/yy):
}
[code]....
View 10 Replies
View Related
May 22, 2013
I am trying to send a packet across a client/server communication. I am getting a seg fault (while running the program(It compiles fine)) when I try to read the neighbor file, You should be able to see this below the comment /***** Read neighbor file***/ :
Code:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
}
[code]....
View 2 Replies
View Related
May 16, 2014
I'm trying to create a stack of generic variable with template. This is the code.
BlockingStack.h
#include "stdafx.h"
#pragma once
template <class T>
class BlockingStack {
[Code] .....
I don't understand why ,but it dont work... It produce this errors:
1>Blocking_stack.obj : error LNK2019: riferimento al simbolo esterno "public: __thiscall BlockingStack<int>::BlockingStack<int>(int)" (??0?$BlockingStack@H@@QAE@H@Z) non risolto nella funzione _wmain
1>Blocking_stack.obj : error LNK2019: riferimento al simbolo esterno "public: __thiscall
[Code] ....
View 4 Replies
View Related
Nov 28, 2013
I know this question must have been asked before, but the problem that I am facing is that I am using a library PoDoFo to parse PDF files. It seems that it is only compatible with C++.
Now I want the application to be web-based. That is, the user uploads a PDF file on the server, the server parses it and the parsed content is then sent back to the user.
Is such a thing possible with C++, or maybe any good work-arounds? Or should I look at server-side scripting languages like PHP and their respective libraries?
View 8 Replies
View Related
Nov 13, 2014
Where are the c programming variable name rules defined? I usually use these two websites for figuring out these kind of things but I don't see it anywhere.
[URL]
View 4 Replies
View Related
Oct 13, 2014
I am trying to read all the 9 letter words in a words list text file and print them to the screen. Here is the code I have so far, but I am currently printing nothing.
Code:
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main()
{
[Code]....
View 7 Replies
View Related
Jan 29, 2014
I have attached a circuit diagram below, which has been tested. Currently you have to manually push the switch to change the brightness of the bulbs. I want to program a chip to automate this.
Over 90 days the chip will output a high signal in replace of the switch every set period of time (say once every 1.5days). I can use any chip but the smaller the better!
View 1 Replies
View Related
Sep 7, 2014
why an array would lose its contents when I believe it shouldn't. Below is a skeleton program just to kind of show what seems to be happening. Basically I set up the delims array with just a star. The program runs a good number of times but at some point the delims array gets lost. My guess is the stack is overflowing or something? But it "appears" all other variables are ok (although I cant be sure).
I move the char delims into the while loop. What is this "actually" doing to the original delims variable ... are we wasting memory here (bearing in mind the original delims variable is sometimes loosing the string :/)
Code:
somefunction()
{
char delims[] = "*" ;
char *result = NULL ;
while (1)
}
[code]...
View 6 Replies
View Related
Feb 19, 2014
Write a program that orders three double numbers by increasing value. The program should include a function named sort3 that takes three double * arguments (pointer to double). The function prototype is void sort3(double *x, double *y, double *z); The function should reorder the values pointed to by its arguments so that after the call sort3(&x, &y, &z); the numbers satisfy . Your program should input data and print results using the following format:
Enter three numbers: 4.7 1.4 3.2
The ordered sequence is: 1.4 3.2 4.7
And here is my program: C code - 32 lines - codepad
I am getting a lot of errors when I run it through GCC. I can only use pointers.
View 4 Replies
View Related
Nov 21, 2013
This is the code i have so far
#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
/* function main begins program execution */
int main() {
[Code] .....
I have gotten the conditions to execute properly but will end the program after doing a case instead of asking to play again and loop. Also how would i output the number of wins and losses?
View 2 Replies
View Related
Apr 24, 2014
Ive been experimenting with 3d graphics by using SDL only and lines to draw 3d shapes (no OpenGL or extension libraries, just pure math),
Ive used this page mainly to guide me on perspective projection but i have no luck [URL] ....
Ive been trying to draw a cube, but instead it gives me a mirrored dual triangular pyramids
This code here rotates the object as seen from the equations in this link: [URL] ....
double aX, aY, aZ;
for ( i = 0; i < model->qLength; i++ ) {
for ( j = 0; j < 4; j++ ) {
aX = model->quadArr[i].pointArr[j].x;
aY = model->quadArr[i].pointArr[j].y;
aZ = model->quadArr[i].pointArr[j].z;
[Code] .....
generally, i project it onto a 2d plane using: [URL] .....
double dx, dy, dz, dX, dY, dZ;
int bx, by, bX, bY;
for ( i = 0; i < model->qLength; i++ ) {
for ( j = 0; j < 4; j++ ) {
[Code] .....
I understand that my code is very messy and unoptimized, but im just concentrating on getting the core concepts to work with my code
View 1 Replies
View Related
May 20, 2013
I've been studying "algorithm" by myself by book. And there's this part - vulnerable point of "define" syntax on recursive programming.
Code:
int max_arr2(int arr[], int arr_len) {
int (arr_len == 1)
return arr[0];
else
return max(arr[arr_len-1], max_arr2(arr, arr_len-1);
.
.
This book says, " function 'max_arr2' is just recursive function, without any problem. but if max() is defined like this,
#define max(x,y) ((x)>(y) ? (x):(y))
and if array is just declined, it will take very long time."
I typed this code and run, and actually it really takes long time.
View 1 Replies
View Related
Aug 3, 2014
How to find a lowest grade in programing using the c++.
example: {65,89,100,76,80}.
#include<iostream>
using std::cout;
using std::endl;
int main() {
float grade=0;
[Code] .....
View 1 Replies
View Related
Jun 23, 2013
I am using the following code that I copied from a website to send some numbers using TTcpServer in C++.
void __fastcall TForm2::Button1Click(TObject *Sender) {
//Creating a stream
std::auto_ptr<TMemoryStream> myStream(new TMemoryStream);
for (byte i = 0; i < 9; i++) {
myStream->WriteBuffer(&i,1);
[code]....
I do not understand what is being sent in the byte variable, nor why a byte variable was used. I want to send some strings instead of numbers, but I don't understand what's taking place so I can't identify what to change.
View 2 Replies
View Related
May 31, 2012
I have problem with this code:
Code:
#include <string>
#include <fstream>
#include <iostream>
#include <cstdlib>
using namespace std;
// multiplier
const double MULTIPLIER = 0.0000001;
[Code] .....
It should cut wav files into smaller pieces using text file .lab (the values multiplied by * 0.0000001 gives time in second. For example, i have such file with recorded yes and no: [URL] ..... and such boundaries [URL] .... It all should be in the same folder, then, after puting "yesno.wav" into command line and press enter it should gives 2 files with yes and no words. But it doesnt - i obtained one file with silent and one short sound. The record is recorded by Audacity, default sample rate 44100, default sample format 16-bit.
View 10 Replies
View Related
Sep 17, 2013
I am trying to implement the linear programming solver. This is the header file of the linear programming solver :
/*!
internal
Representation of a LP constraint like:
(c1 * X1) + (c2 * X2) + ... = K
or <= K
or >= K
Where (ci, Xi) are the pairs in "variables" and K the real "constant".
*/
[Code] .....
I want to parse all the constraints and bounds as inputs and get the maximum value of the objective function as the output using the above lpsolver header file. I have also attached the sample file below.
View 14 Replies
View Related
Oct 1, 2014
How to use c++ to program network for a multiplayer online game or how would i go about this?
View 5 Replies
View Related
Mar 7, 2015
I am programming a simple spell checker which checks if words match in a given dictionary.
The user first enters the words from the dictionary and then the words to check. I have comments in my code that explain how this is done.
The catch for the checking is: I cannot use functions like strcmp or even functions I made myself. For input and output I will also only use getchar and putchar.
Where I am stuck: I have a concept of how to check and compare the words with the dictionary, but this way the looping is extremely confusing (at least in my mind) and I cannot make a functioning one. The concept for this is in the comments of the code.
Here is what I've got so far.
The user enters aaa bb bbaa;abc aaa aa.
The output should be: *abc* aaa *aa*.
Since abc and aa does not match the dictionary on the left, but aaa does.
Also, words can have a max length of 4.
#include <stdio.h>
int main() {
char dictionary[40];
char words[40];
char both[80];
[Code] .....
View 6 Replies
View Related
Nov 1, 2013
what are the advantages of files and how do we operate on binary files
View 1 Replies
View Related
Dec 8, 2013
can I operate a char string to a function at C programming?
View 1 Replies
View Related