51,593 Topics

Member Avatar for
Member Avatar for jimJohnson

For the half of you that whine and complain that the new people don't use code tags please do not respond to me but for the people that did a great job helping me before: I was asked how to use code tags and i am sorry but this is …

Member Avatar for WaltP
0
288
Member Avatar for vishalkhialani

Hi, I would like to create, modify insert del and read from excel files I found some articles on daniweb and other sites and even on msdn but they are very difficult and not complete. I was wondering if someone could please give some tutorial link to explain how to …

Member Avatar for vishalkhialani
0
197
Member Avatar for jimJohnson

I am in the last part of the program and everything is working but one final thing. I need to get all the Subtotals, taxes, and total cost to add up....I tried using sums, counts, and change the variable names and still having trouble....this program has been a real pain …

Member Avatar for Agni
0
148
Member Avatar for Jboy05

a = 2; b = 3; a = (a + b) % 2; b = b – a; a = a * b; cout << a << "\n" << b ; What is the output for a and b? ------------------------------------------------------------ Why is a [B]3[/B] and b[B] 2[/B] is this one …

Member Avatar for VernonDozier
0
79
Member Avatar for SurviBee

Assignment was to take information about sales made, hours worked and number of dependents from a file, calculate the gross pay expected on one of two plans Plan A 10% commission on sales, and 9.50 an hour with 1.5x overtime after 40 hrs Plan B 30% commission then we had …

Member Avatar for VernonDozier
0
114
Member Avatar for Jennifer84

I have managed to create a file (Sample.txt). So what I need now is to put the contents from array (ReadLines[]) to this file, line by line and the file name should be what is written in textBox3. [code] array<System::String^>^ ReadLines = gcnew array<System::String^> ( textBox2->Lines->Length ); ReadLines = textBox2->Lines; …

Member Avatar for Jennifer84
0
111
Member Avatar for shyterrice

Hello everyone, My name is Stephanie I am new to the forum I have been just reading, this is my first time actually participating in one of the threads. I must say that I have learned a great deal from this site, I have been able to fix minor problem …

Member Avatar for alc6379
0
100
Member Avatar for JRM

hello all, I have an old database that was written for xenix 386 using the old a.out binary format. Since then most unix/linux OS s have adopted the ELF format. These binaries will not run on a modern OS. I don't have the source code, just the binaries. Is there …

Member Avatar for vijayan121
0
149
Member Avatar for Jennifer84

If I have a textBox1 that contains 2 lines of text. What I want to do is to put each line into an Array. So I want to check the textBox1 and read in all consisting lines into an Array. [I](1 line will reprsent 1 memoryplace in the Array)[/I] How …

Member Avatar for Jennifer84
0
341
Member Avatar for armanp

I have a function find(x) in my linked list, that search through the listfor the value and return an Iterator pointing to the first node contaning value x. if x is not found in the list, it returns an Iterator pointing to NULL. it should be a linear search. would …

Member Avatar for Lerner
0
105
Member Avatar for Jennifer84

I wonder. When you are in dubbingmode and develop you program you refer to ifstream like in the code below. [code] ifstream OneFile("Text.txt"); [/code] "Text.text" is in the folder debug. Later when the application is finished. I want the file "Text.txt" to be in a folder like this: C:\NewApplication\FileFolder\Text.txt How …

Member Avatar for Jennifer84
0
140
Member Avatar for bis student

[CODE]#include <iostream> using namespace std; void intialize(char array[][6]){ for(int i=0;i<13;i++) for(int j=0;j<6;j++) array[i][j]='*'; } void menu (char array [][6]){ cout <<endl; cout<<"\tA\tB\tC\tD\tE\tF"<<endl; for (int i =0; i<13 ;i++){ cout<<"Row "<<i+1<<'\t'; for(int j=0;j<6;j++){ cout<<array[i][j]<<"\t"; } cout<<endl; } cout<<endl; } void main(){ char array[13][6]; intialize(array); char smoking,type,exit,column; int row,col; do{ smoking = …

Member Avatar for Narue
0
148
Member Avatar for buddyrocks73

I'm having trouble with this program that is a math tutor for a young student. The program should display two random numbers between 1 and 500. Could I get some help?

Member Avatar for Narue
0
142
Member Avatar for Nemoticchigga

Hi, I am writing a simple program to read and write a serial port. I only have access to one serial port on my pc so I am using a HugePine RS-232 to USB convertor. The driver is installed and windows recognizes it is attached. My question is what comm …

Member Avatar for Nemoticchigga
0
148
Member Avatar for gcardonav

Hello Well I have this coding and I thought I set it up ok to catch this simple exception, but as of right now, the program continues to run after the exception happens and its not even catching it. where did I go wrong. Thank you all Your rookie programmer …

Member Avatar for gcardonav
0
100
Member Avatar for vishalkhialani

Hi, My below code compiles and builds ok but it behaves a bit unexpected. Please see my comment where I am having the problem. Any advice will be highly appreciated. [code] while(count<9) { system("cls"); printf("\n\n\n"); printf("\t\t\t PURCHASE ORDER SYSTEM \n\n\n\n\n\n\n\n\n\n\n"); printf("\t\t\t\t INPUT NEW ORDER DETAILS MENU\n\n\n\n\n\n"); printf("PLEASE SELECT ONE OF …

Member Avatar for vishalkhialani
0
106
Member Avatar for Squeeker

Hello all, I am working on a program that takes input from a file, removes extra white spaces and outputs the edited text to another file. So far my program deletes 1 whitespace whether the whitespace should be deleted or not. I have read about peek() and putback(). I am …

Member Avatar for Squeeker
1
1K
Member Avatar for jb7643

I have just started today. I put the following code into DEV-C++: [code=cplusplus] #include <iostream> int main() { std::cout << "Enter two numbers:" << std::endl; int v1, v2; std::cin >> v1 >> v2; std::cout << "The sum of " << v1 << " and " << v2 << " is …

Member Avatar for jb7643
0
94
Member Avatar for codeaa

[B]Background:[/B] I am developing a library for an existing (network) protocol that frequently changes. I want to develop the library to be compatible with the current protocol and support future changes, while maintaining backwards compatibility. Right now, my concern is about the protocol model. I'm trying to find the best …

Member Avatar for DangerDev
0
140
Member Avatar for jov0708

I want to compile a Visual C++ project made by another person and then the following error appears: LINK : fatal error LNK1104: cannot open file "uafxcw.lib" What may be the cause of this problem and any suggestions on solving it? Thanks. Jov Edit/Delete Message

Member Avatar for Nick Evan
0
153
Member Avatar for nilay.rathod

Hello Frnds, I m configuring msxml in my VC++ but it s giving some errors like Error 13 fatal error LNK1169: one or more multiply defined symbols found D:\Major_project\practice\validate\Debug\validate.dll Error 11 error LNK2005: "public: virtual __thiscall _com_error::~_com_error(void)" (??1_com_error@@UAE@XZ) already defined in stdafx.obj comsuppwd.lib Error 12 error LNK2005: "public: static long …

0
49
Member Avatar for aircraft

How can in the output, I want ONLY ONE LINE from 1 to 99, the windows is not enough.. myvector contains: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 …

Member Avatar for Ancient Dragon
0
128
Member Avatar for aircraft

How to correct it? ompiling... 27.cpp C:\Documents and Settings\ashida\My Documents\MASTER C++\main\27.cpp(21) : error C2065: 'aTable' : undeclared identifier C:\Documents and Settings\ashida\My Documents\MASTER C++\main\27.cpp(21) : error C2109: subscript requires array or pointer type C:\Documents and Settings\ashida\My Documents\MASTER C++\main\27.cpp(21) : error C2228: left of '.size' must have class/struct/union type C:\Documents and Settings\ashida\My …

Member Avatar for aircraft
0
242
Member Avatar for Roebuc

Hello all, yes yet again an Assignment problem I need help with haha ;) Anyways this time my code is correct, I think, but I am getting hung up on an ifstream issue. Here is the code: [CODE] ifstream infile; ofstream outfile; infile.open("C:\Users\***\Desktop\School\chapter5.txt"); if (!infile) { cout << "Cannot open …

Member Avatar for Roebuc
0
252
Member Avatar for nurulshidanoni

Can C++ draw a table for matrix? or I must draw a line like this? __________________________ __________________________ _________________________ _________________________

Member Avatar for ndeniche
0
169
Member Avatar for Roebuc

Hey guys, I was doing my reading last night and was trying to come up with a program other than the practice assignments. It has been hard remembering all the keywords when they are given to you in the practice assignment. I came up with one and kinda got myself …

Member Avatar for Roebuc
0
135
Member Avatar for orangejuice2005

I have an assignment dealing with polynomials and adding two of them together. Am using vectors to approach this and i have one vector assigned for coefficients and the other exponents Am very very new to c++ and am at a lost. Here is my + operator [code] Polynomial operator+(Polynomial& …

Member Avatar for Duoas
0
2K
Member Avatar for aircraft
Member Avatar for Duoas
0
119
Member Avatar for augussk

Hi, I am programming in VC++/MFC to make applications for Bus, Airline and other ticket booking softwares. In those applications i need to display the available Buses/Flights in as in Web pages. i.e., like tables. A row for a flight like that. Currently I am making such a view by …

Member Avatar for Duoas
0
121
Member Avatar for knewc

Hello, i need some help with C++...I'm attempting to make an 4x4 array. The user inputs the array "Line 1: " // the the user inputs his 4 numbers for line 1 and so on.... the program then adds the array across on all 4 lines, and twice diagonally. I …

Member Avatar for John A
0
96
Member Avatar for aircraft
Member Avatar for John A
0
31
Member Avatar for Jennifer84

How is a string vector array declared using a Form application ? This seems to work for int in a Form Application: [Code] std::vector<int> Value(10); [/code] But if you change int to string in the same example the compiler says that 'std::vector' : class has no constructors

Member Avatar for Jennifer84
0
159
Member Avatar for pitbro

This doesn't work. Please help. (line 8: invalid conversion from `const char' to `const char*' ) const char *alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; int i=0; do { new_ptr = (struct node *)malloc(sizeof(struct node)); new_ptr->next = NULL; if (start == NULL) { strcpy(new_ptr->letter, alphabet[i]); start = new_ptr; current = new_ptr; } else { strcpy(new_ptr->letter, alphabet[i]); …

Member Avatar for WaltP
0
95
Member Avatar for k2k

I need to let the user input a line of words and make all the 4 letter words in the sentence "love".... example: cin>> I hate programming output --> I love programming does anybody know if there is any library, or string member functions would help doing this task? below …

Member Avatar for WaltP
0
359
Member Avatar for pitbro

is there a quicker way to fill the list with A,B,C,...,Y,Z whithout doing all this? 1. #include <stdio.h> 2. #include <stdlib.h> 3. #include <string.h> 4. #include <malloc.h> 5. 6. struct node /* Declaration of structure "node" */ 7. { 8. char letter[1]; 9. struct node *next ; 10. }; 11. …

Member Avatar for pitbro
0
95
Member Avatar for DJPlayer

ok so I class telling a point to rotate 90 degrees till it reaching the original point.... I'm not using Visual Studio when it compiles just looks like crap.. [code] #include <iostream> #include "point.h" using namespace std; void rotate(point &p); int Main() { a.point(0,0); cout << "(" << a.get_x() << …

Member Avatar for Duoas
-1
109
Member Avatar for nezumi4

I am to open a text file, copy it, increment its ASCI characters by ten and then write it into a created text file. This is the code that I have so far.(visual c++ 6.0). The problem is that I cannot increment the characters. It gives me and overwrites my …

Member Avatar for Lerner
0
101
Member Avatar for abhi_elementx

So so so....finally I have learnt to create a DLL in DEV C++ (Open src compiler with IDE) Now I have also created a DLL in VC++ and I am trying to call the DLL in my DEV c++ EXE project. I have correctly specified the library file (.lib) of …

Member Avatar for zhelih
0
343
Member Avatar for linux0id

Hello everyone! I have seen some code where some variable gets inserted into string throught the % sign, like so - [CODE]("insert into songs values (%Q ,%d, %d, %Q, %Q, %Q, ... ", someInt, someChar, someChar... )[/CODE] I have tried to look it up in google but I do not …

Member Avatar for linux0id
0
13K
Member Avatar for nurulshidanoni

How to arrange the number properly? [code=C++] /*------------------- Two dimensional array -------------------*/ #include<iostream.h> #include<fstream.h> #include<iomanip.h> ifstream infile("STA83EXM.txt"); void main() { const int row = 140; const int column = 140; int matrix[row] [column]; //**************creates Matrix**************** int num; for(int i = 0; i<=row-1; i++) { for(int j = 0; j<=column-1; j++) …

Member Avatar for WaltP
0
114
Member Avatar for Thew

Hi, I am using Microsoft Visual C++ 9.0 Express Edition. In File > New > Project, you can select Win32 group and then the Win32 Application. I think, when you use this in your project then the compiled program should run on Windows without .NET Framework too. How is it? …

Member Avatar for vmanes
0
78
Member Avatar for vishalkhialani

Hi, I am getting a syntax error : \Sainath.C(24) : error C2059: syntax error : '__stdcall' for the below code: [code=c++] int main() { COORD WINAPI GetLargestConsoleWindowSize( __in HANDLE hConsoleOutput ); printf("%d",x.WINAPI); // I know its the printf statement which is wrong as only when I wrote it I got …

Member Avatar for vishalkhialani
0
470
Member Avatar for C41R0

374 / 9 = 41.6 (from calculator ) if in c++, it will become 374 / 9 = 41.555 how do i make the final calculation become 41.6 ? i've tried ceil() and setprecision(1) , the answer i got quite big different compare with the answer from calculator. answer from …

Member Avatar for C41R0
0
208
Member Avatar for sgw

In the following simple program, [CODE]int main() { string name; char sex; cout << "enter M or F: "; cin.get(sex); cout << "enter name: "; [B]getline(cin, name);[/B] cout << name << " is " << sex << endl; return 0; }[/CODE] after the user typed in a character "M" or …

Member Avatar for Narue
0
258
Member Avatar for VersEtreOuNe

[COLOR="Red"][B]Circle.h[/B][/COLOR] [code=c++] #ifndef CIRCLE_H #define CIRCLE_H #include <iostream> #include <fstream> using namespace std; class Circle { friend ostream& operator <<(ostream& output, const Circle& aCircle); friend istream& operator >>(istream& input, Circle& aCircle); public: Circle(); Circle(double radius, int id); Circle(const Circle& aCircle); void SetCircleRadius(double radius) { _circleRadius = radius; } void SetCircleId(int …

Member Avatar for vmanes
0
104
Member Avatar for jaepi

Hello there. Is there someone kind enough to please explain to me the difference of using fork() and exec() with system() in invoking a process. I just want to know their difference according to well experienced with processes here. And what is the most efficient in invoking a process between …

Member Avatar for Nick Evan
0
323
Member Avatar for guitarrick

Got most of this done. I just can't see why my advance_date() method is only partially working...I think it's something with all my bools....but I don't know how else to get this condition met. Project is to Design, implement, and test an ADT that represents a calendar date..Integers are fine...include …

Member Avatar for guitarrick
0
268
Member Avatar for TSharma

i am trying out merge sort. i have made two functions sort and merge; i am calling merge recursively. i think my sort function is working fine. the problem lies with merge function. in merge function i am dividing the array using recursive calls. it ends when lb = = …

Member Avatar for TSharma
0
135
Member Avatar for risa

Scenario: I hav set a timer using SetTimer(),after timeout my application gets a WM_TIMER and it exits. I Want: to pause this timer before a particular process and again restart it when the process gets over,so tht there is no timeout during this process and my application doesnt exit during …

Member Avatar for Ancient Dragon
0
312
Member Avatar for jimJohnson

Guys I am completely lost....what I want to do is make a loop to where the code im about to show. The issue is I need when I type a negative number in hotdogs, tacos, etc to make me type an error message and stop the code...here is my code …

Member Avatar for jimJohnson
0
150

The End.