49,761 Topics
| |
i tried to do something like this in one of the program i made.... if the user entered something that is not the same with the number and the word that are available in the program,it will ask the user to enter the input again.. But the problem is that … | |
Hello, I am very new to all of this and I need a little help. I am supposed to create a simple calculator and here is what I have: [CODE]/* Specification: This program is a simple calculator */ #include "stdafx.h" #include <iostream> using namespace std; namespace calculation{ enum menuOptions {Add, … | |
Hello, i am searching for way, to open web page with C++ and after that to control its elements. I know that i can do this in Delphi, with WebBrowser.OleObject.Document and TWebBrowser. Do you know similar way that i can use in C++? | |
Hey... I've written a program that changes a single character from uppercase to lowercase and viceversa but I want to change a whole word from uppercase to lowercase and viceversa how do I do that? [CODE]#include <cctype> #include <iostream> using namespace std; int main() { for (int i=1;i<=10;i++){ char ch; … | |
Hi Guys, I am writing a program which enables the user to enter a size for a square and then they can choose to output it in several ways, clear filled horizontal/verticals lines. The first two I have manged however the latter horizontal/vertical I cant quite get right, as they … | |
I'm a begginner programmer running a windows XP with Dev-C++. Would it be possible to know the syntax to disabling mouse and keyboard input? (I want to disable the mouse first, then later both the mouse and keyboard.) Google's pointed me towards blockinput(), but I can't get that to work. | |
Hi, I have homework assignment to make a minesweeper game using classes. In that game I have 3 lives,when I enter coordinates with I loose life,otherwise i get point. Here is how I tried to solve the problem,but I have some errors in it. Can you check it please and … | |
I completed a test today that didn't go so well. The last question dealt with binary files. For the review, he told us we had to go over seekg, tellg, and read and write methods. On the test there was a class that could find a record (with a record … | |
I am write a program that both uses inheritance and composition. I am a bit new to inheritance so I am a little confused on some aspects of it. Let's say I have a class definition like this [CODE]class Month { Week *week[4]; }; // class Month class Week { … | |
hello ; here is a quastion . i understand it until the red senence , i do not know what dose it mean mathematically ? Write a program that prompts the user to input a positive integer. It should then output indicating whether the number is a prime. Note: an … | |
First Google expressed an interest in the [URL="http://www.itwire.com/content/view/20370/53/"]web browser client[/URL] market, and then the [URL="http://www.itwire.com/content/view/26281/53/"]operating system market[/URL] and now it has launched its own open source systems programming language. [URL="http://golang.org/"]Google Go[/URL] is being touted as 'expressive, concurrent, garbage-collected' and promises to produce fast code, fast. According to Google a typical … | |
Can someone help me with this problem here about Binary Trees. I was given this code... and I am required to write a function void count_nodes(?) to determine the total number of nodes in a Binary Tree. | |
This function does not work either.. error msg is as follows beep.cpp: In function ‘int main()’: beep.cpp:8: error: ‘Beep’ was not declared in this scope please assist! [CODE]#include <windows.h> #include <iostream.h> using namespace std; int main() { Beep (100,100); return 0; }[/CODE] | |
hey there..i'm a beginner in C++ and i'm written the following code using vc++ compiler..actually i took a little help from a book [code=c] #include<iostream> #include<stdio.h> #include<stdlib.h> #include<winsock.h> #define NETWORK_ERROR -1 #define NETWORK_OK 0 using namespace std; int main(void) { WSADATA ws; int nret; WSAStartup(MAKEWORD(1,1),&ws); SOCKET commsocket; commsocket=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP); if(commsocket==SOCKET_ERROR) { … | |
hi...I got solution after initializing stInfo..Thank u soooooooooooooooooooo much.....Thanks for ur helping heart... Could u plzzzzzzzz help me to solve another one problem... i have one dll created by using C#.Net...I refered that dll and i could access all the C# methods inside my VC++ applications.. this is the method … | |
I am little bit confuse about this operator. Can any one tell me what does operator -> internally. And what are the importance of -> in pointer? Appreciated in advance for help (all daniweb group). | |
Hello -- 1. Can you compile C code in Visual Studio.NET ? If so, can you please submit the proper steps in order to do this. Thank You :) | |
Hi guys, I hav a problem, may i noe how to link visual c++ with silicon IDE. which is C programming n 8051. i noe i need to use a serial port. after doin tat wads the nex step? thx in advance | |
Hello, I am having problems debugging a program that was written to decrypt a caesar cipher. The program reads in a text file character by character into an array, determines which character appears most and declares it 'e', then proceeds to determine the "shift" to employ. Currently i have the … | |
I am having a problem wih the compiling of my code. The whole program consists of a driver program and a header file. the problem is showing up around where it is compiling the header file. since the header file only has template functions in it and no input file … | |
Hi, We are web/Flash people but were asked if we can take on a project that I would describe as creating a shell environment for Windows (probably XP), to hide the normal Windows Interface. The idea is for the company's employees to work in this environment and only have access … | |
I am trying to load a list of image files into an image array. The following code snippet works: Graphics gImage(hdc); Image iTiles[intNumTiles] = {L"Image[0].jpg", L"Image[1].jpg", L"Image[3].jpg", ...}; gImage.DrawImage(&iTiles[0], 100, 50); gImage.DrawImage(&iTiles[1], 140, 90); gImage.DrawImage(&iTiles[1], 180, 130); ... The problem is, I don't know how many image files there are, … | |
I'm having a lot of issues with a program I'm working on and I really use any suggestions I could get. The purpose of the program is to take an input file that has a users name, the number of minutes in their call plan, and the number of minutes … | |
Hi ! I need the command to compile a C++ Project in Ubuntu. Help me please!! I am able to compile and see the output if created as single source file. In this case I have three file stock.h , stock.cpp, usestock.cpp in a folder which is the working directory. … | |
I'm having an issue with an end of file while loop. I have narrowed a problem with a previous program into a smaller bit of code and the error is in the read in and i hove no idea what to do about it... I have done this kind of … | |
#include<stdio.h> void AddMatrix(int[2][3],int[2][3],int[2][3],int,int); int main() { int i,j; int matrixA[2][3], matrixB[2][3], matrixC[2][3]; printf("This Program is to find the summation of matrixA and matrixB\n\n"); for(i=0;i<=1;i++){ for(j=0;j<=2;j++){ printf("Please enter matrixA[%d][%d]:",i+1,j+1); scanf("%d", &matrixA[j]); } } printf("\n\n"); for(i=0;i<=1;i++){ for(j=0;j<=2;j++){ printf("Please enter matrixB[%d][%d]:",i+1,j+1); scanf("%d", &matrixB[j]); } } printf("\n\n"); AddMatirix(matrixA,matrixB,matrixC); return 0; } void AddMatrix(int matrixC[2][3], … | |
Hi, i have two questions about making a c++ based programming language. the first: is there a c++ function or something that can separate text by commas and parenthesis, so if i wanted to write function [I]foo[/I] with argument [I]arg1[/I] and [I]arg2[/I], i would need code to take foo(arg1,arg2) and … | |
I am writing a program which should output some frequency shift keyed (FSK) audio. I am using a sin(...) function to find some values to plug into an array of unsigned ints which I am outputting using waveOutWrite with a sample rate of 44100 specified in the header. The values … | |
I am trying to optimize code for Monte Carlo simulation. Even minute performance differences piles up after 100 million iterations and thus I need to squeeze every nanosecond from math operations! One area where I thought I could save a lot stems from the fact that I only require precision … | |
[code] vector<int> vi(3); for (int i=0; i<vi.size(); i++) { cout << vi[i] << endl; } [/code] output1: 0 0 0 [code] vector<int *> vi(3); for (int i=0; i<vi.size(); i++) { cout << vi[i] << endl; } [/code] output2: 0 0 0 [code] vector<int *> vi(3); for (int i=0; i<vi.size(); i++) … |
The End.