49,761 Topics
| |
I wrote the following code, so that whenever an item from the list is deleted, the file associated with the name of the items below the delted items get updated. But the program isn't working, i have been reviewing this code for last 2 days but worthless. Please help. void … | |
i have a combo box control in a INTERNET EXPLORER TOOLBAR. the backspace key of keyboard works fine if this combobox is made dropdown enabled But if i disable the drop down feature of this combo box then backspace doesn't work . Moreover if i add a EDIT CONTROL instead … | |
Hi friend, I want to use connector for mysql data base. I am follow this page [url]http://dev.mysql.com/tech-resources/articles/mysql-connector-cpp.html[/url] But it seems hard . Is there any other tutorial present. Please let me know. | |
[CODE]#include <iostream> #include <string.h> #include <ctype.h> using namespace std; void RemoveSpaces(char *str); void RemoveVowels(char *str); int main() { char clear[256]; char cipher[256]; int x,i; int opt; cout<<"Encryption (1) 0r Decryption (2):"<<endl; cin>>opt; cin.ignore(); if(opt==1) { cout<<" Enter a string(sentence):"; cin.getline(clear,sizeof(clear)); RemoveSpaces(clear); x = strlen(clear); for(i=0;i<=x-1;i++) { cipher[i] = clear[i]+3; } … | |
I am trying to create a program that lets you enter an account number and it tells you it is valid or not based if it is in the list. it needs to be a single-dimensional array . this is what i have so far but it does not work. … | |
Hello, I am having a problem with my program that finds the prime factorization of a number. I seem to be getting the correct prime factors, but my problem is with repeating factors. For example, if I input 3,428, the correct prime factorization is 2 x 2 x 857, but … | |
this program contains a template function that can calculate determinant of any n by n matrix using permutations. it can be run in Visual C++ 2010 Express. | |
Hi, I'm trying to write a programme that will take user input strings containing name, surname and city of residence separated by spaces and extract each one and print them out individually. Here's what I have so far. [CODE]#include <iostream> #include <stdio.h> #include <cstring> using namespace std; int main() { … | |
Qt ide gives error about"error: passing 'const QChar' as 'this' argument of 'QChar& QChar::operator=(const QChar&)' discards qualifiers" here for(int i=reqposition;;i++) { if(data.at(i)==',') break; temp.at(j)=data.at(i); // ERROR IS HERE j++; } what do i do to solve it! | |
Hello, I need help with something. I need to write a program that goes into a text file and searches the characters one by one until it finds a group of them that I need, to store into another character array. The group of characters is "7 people who...will fail! … | |
Guys i really need some help here with this function, in my program i enter string to to encrypt. from my function i want to delete all spaces, i'm really having problems here hope someone can tell me were im going wrong. thanks again. [CODE]#include <iostream> #include <string.h> #include <ctype.h> … | |
[B]Question 1 (10 marks)[/B] Design a program that asks for 4 test scores. The program should calculate the average test score and display it. You need to develop an 1.1) IPO chart (3 marks) 1.2) Pseudo-code (5 marks) 1.3) 2 Sets of test data (2 marks) [B]Question 2 (20 marks)[/B] … | |
I am not able to solve problem number 25 mentioned in the attachment. The problem is related to questions 23 and 24, which I have solved. Their code is given below. Can anyone help me with problem 25? Just so you know, since I am a beginner, I am only … | |
I have an image processing project using c++ language. I have also linked opencv to integrate some optimized algorithms.However, I would like to create a nice GUI using Visual C#. Is it possible to call a certain program in c++ in visual c#. (P.S. I have no idea about dll, … | |
I wrote this code for a homework problem. The instructions say that there is a list of phone numbers that were reversed (ex. 6463124137, needs to be 7314213646) and the program needs to reverse them back. My professor also included this hint: [I]"Hint: One way to reverse the number would … | |
Hello, people on daniweb. I was programming in C++CX for a metro application I am making, and needed to do a little string manipulation. Does anyone know if there is a way to individually edit members of String^, like an array, or if there is some equivalent to stringstream on … | |
I am trying to read a file and display data. The data is bank transactions. I need to display the data from the file with a balance column added at the end keeping an accumulated balance of the deposits/transactions. I am having difficulties with the accumulator. Additionally it will need … | |
I'm trying to write a simple calculator that uses functions, but I'm really struggling to understand. Technically I'm supposed to have defined functions to enter both operands, but I'm confused about passing the data once it's been entered. I also need a function that decides if the second operand is … | |
Solved the problem. Decided to remove code. | |
I'm having fits with an assignment. Basically, the program is supposed to read in command line arguments and input from a text file and, through a long and convoluted chain of dynamic structures, sort them according to the command line input. The input text file reads as such: [I]3 "Smith, … | |
Why doesn't my program accept "quit" when I input it? #include<iostream> #include<fstream> #include<string> #include <cassert> using namespace std; int main() { ifstream file; char filename[20]; char infile[20]; int count=-1; for(;;) { cout<<"Enter the file name that you want to open or write 'quit' to exit: "; cin>>filename; if(filename == "quit") … | |
Hi, experts: I am very to c++, and here is a program that should: • create a Customer object– (although you will only be using one constructor here, be sure and test all three) • Display the Customer’s info using the ‘get’ functions • Ask the user how many months … | |
#include "stdafx.h" #include "windows.h" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { HKEY hKey; char sd[255]; char path[MAX_PATH]; int Freq = 0; int Duration = 100; bool Forwards = true; bool Backwards = false; int timer = 0; HWND hWin; HMODULE GetModH = GetModuleHandle(0); GetModuleFileName(GetModH, path, 256); … | |
Hi All, I am new to programming and have been trying to learn the c++ language for the last couple of weeks. I feel that I understand a lot of what I have learnt but where I am confused how databases are used if c++. Most the tutorials or books … | |
Hi, I need help writing a program that allows you to read an English-French dictionary into two arrays. The English words are stored in one file alphabetically while the French words are stored in the other file corresponding to the English words. This means that the program would ask the … | |
Hey guys. I ma new to c++ and need a little help. My teacher gave us an assignment in which we have to take input from the user as to how many integers are to be entered. the program then compares the first integer with the rest, then it compares … | |
We're just getting started on DarkGDK and I thought I was doing okay. The assignment is to "go through" every pixel in an image and "swap" the blue and red one. My program gets hung up after the first dbWait(), and I'm not sure if any thing is happening so … | |
i am receiving this error for this section of my code: int R[] = {3, 4, 1, 2, 0, 5}; int L= dist (R(0),R(1)) + (R(1),R(2)) + (R(2),R(3)) + (R(3),R(4)) + (R(4),R(5)); im not sure how to solve this error. | |
Hello, I have a major problem with a Correlation algorithm I'm trying to implement.. Basically, when I have two small matices: Matrix 1: 0 1 0 1 1 1 1 1 1 1 1 1 0 1 0 0 0 1 1 1 0 0 0 0 1 1 1 … | |
Ok, when I run my program it is asking me twice what I only need to be asked once. [code]#include <iostream> #include <iomanip> using namespace std; int main () { //Variables double calories = 0.0; double weight = 0.0; char gender = ' '; char level = ' '; //enter … |
The End.