49,761 Topics

Member Avatar for
Member Avatar for colmcy1

Hey all, need some help on little issue im having. I have 2 programs and I am writing an interface to link the 2 of them in MC VC 6 MFC. There is an input text file to input data for the second program. My dialog interface saves the input …

Member Avatar for u8sand
0
89
Member Avatar for tomtetlaw
Member Avatar for arun_354
Member Avatar for jessejamesjjr

hey guys u no any thing bout tex files........... any thing?? i have a few questions to figure out.......... but if u have any advice on what i need to no wrt figuring out these coding questions please help me... i would gr8tly appr. it.... heres the question: and wrt …

Member Avatar for jessejamesjjr
0
176
Member Avatar for SP IT

This is my final assignment before the semester is over. For this program I am supposed to create a switch within a loop. The switch works but the program will not loop. Can you please help me. [ICODE]#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main(void) { double …

Member Avatar for SP IT
0
102
Member Avatar for redserpent7

Hi As the title suggests I'm having a problem compiling MFC based applications, this problem started immediately after installing the windows server 2003 platform SDK and now even when I try to compile a new MFC project I get the following errors: [CODE] c:\program files\microsoft platform sdk\include\zmouse.h(141) : error C2146: …

Member Avatar for redserpent7
0
241
Member Avatar for san26

can anybody help me on this algo provided below.................... I need a c++ implementation for the following algorithm............. Algorithm RST-T Input: A set of points P = {(xi, yi)} Output: A rectilinear Steiner tree with all points in P connected A. Build an RST-T with horizontal trunk 1. Set ymid …

Member Avatar for Nick Evan
0
128
Member Avatar for arun_354

[code=cplusplus] #include<fstream.h> #include<iostream.h> #include<iomanip.h> #include<stdlib.h> #include<string.h> #include<stdio.h> #include<conio.h> #include<process.h> using namespace std; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { …

Member Avatar for tux4life
0
129
Member Avatar for EvilDavo

Hi. You've probably been asked this a million times in one form or another but, .... What is the correct way to write a C++ OOP program (eg. for a game)? I've researched the concepts of OOP several times over a long period of time and I have a (seemingly) …

Member Avatar for EvilDavo
0
204
Member Avatar for Sushma21

hi, i am having a problem with file input/output..the file created in the program using open command is not getting listed in the command line directory..also, the file created in one program cannot be retrieved in another program...how do i solve this problem??is this a problem with the operating system?? …

Member Avatar for Sushma21
0
120
Member Avatar for SP IT

I need help with my homework. The first part is to create two arrays that are random. Afterward I need to creat afunction that finds the Minimun and Maximum of the two arrays. Here is my code: #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int int main(void) { …

Member Avatar for csurfer
0
116
Member Avatar for lotrsimp12345

its in the num=="-". [code] #include <iostream> #include <cstdlib> using namespace std; int main() { cout <<"enter the problemset and number""\n"; //problems represents name and numbers string problems; char quote; char num; string number; //gather name if(cin.peek()=='"' || cin.peek() == ''') { cin >>quote; getline(cin,problems,quote); } else { while (!isdigit(cin.peek()) …

Member Avatar for VernonDozier
0
201
Member Avatar for krishnampkkm

Hii I wanna copy an NTFs partition to another partition of same type and same size.And I tried with windows function Copyfile() and it worked but slow speed is a problem.Then I did with readfile() and WriteFile() instead of Copyfile() again speed is a problem. How can I get a …

Member Avatar for krishnampkkm
0
171
Member Avatar for gretty

Hi :) I want to start creating windows applications. Can you tell me what editor is best to do this & [B]if I can just start coding right away or do I need to download libraries etc [/B]to do it? I am using Eclipse is this the best editor to …

Member Avatar for gretty
0
298
Member Avatar for SP IT

Now Ineed help combining arrays. Please help. Here's the code Ihave so far. [ICODE]#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int findmax (int a1[45], int a2[50], int i, int j); int findmin (int a1[45], int a2[50], int i, int j); int main(void) { unsigned seed = time (0); …

Member Avatar for Ancient Dragon
0
182
Member Avatar for SP IT
Member Avatar for athlon32

I've decided to start my first real project in C++, so I picked something simple; to make a game just like Pong. I've got most of the GUI setup, but i have no idea where to start on programming the computer character that will play against the user. Does anyone …

Member Avatar for athlon32
0
134
Member Avatar for SP IT

I need help on two assignments that are due: 1. Initializing the elements of an array a1 and size n randomly, so that its elements have values between [1-45]. 2. Initializing the elements of an array a2 and size n randomly, so that each element is between 0 and 50 …

Member Avatar for SP IT
0
203
Member Avatar for ludasha

In the first computer, a network is defined with 2 addresses: 1. 192.168.10.12 2. (a virtual address) 182.0.0.1 In the second computer, a network is defined with 2 addresses: 1. 192.168.10.13 2. (a virtual address) 192.0.0.1 in the route table I added lines : 192.0.0.1 ..... (interface) 192.168.10.12 182.0.0.1 ........(interface) …

Member Avatar for tux4life
0
78
Member Avatar for valinux

I have never programmed before or used Linux (didn't even know what that was before a few days ago,) well I got a book for beginning C++ and a book for Ubuntu Linux. My stepdad says it would be best to learn C++ on windows and not to even mess …

Member Avatar for tux4life
0
167
Member Avatar for ramthegreatcv

Consider this code [code=c++] class A{ int i; public: A(){ cout<<"default constructor\n"; } ~A(){ cout<<"default destrutor\n"; } /* uncommenting this causes error A(A& obj){ i=obj.i; cout<<"copy constructor\n"; } */ }; A fun(){ A b; cout<<" address of b = "<<&b<<endl; return b; } int main(){ A a=fun(); cout<<" address of …

Member Avatar for tux4life
0
188
Member Avatar for yun

I want to know that how many Student class objects in a file. plz help me out. Below is a class of Students and 2 function for read and write object in a file, in read function [code] while(in.eof()!= 1){ in.read((char *)&st,sizeof(st)); st.showData(); } [/code] st.showData(); always show the last …

Member Avatar for kvprajapati
0
454
Member Avatar for gretty

Hi I am learning windows programming in C++ . I just did a tutorial learning simply making a window appear & I am surprised by the all the things necessary to make a window appear. Maybe its just the tutorial that is too complicated with unecessary code. Is all this …

Member Avatar for gretty
0
111
Member Avatar for coachHinesfan

Hello all. I have been reading / practising c++ and through the course of my journey I have been encountering some phrases that I don't understand. The phrases are : -> Binary operators -> Unary operators I have tried to search on google and also on other posts in the …

Member Avatar for coachHinesfan
0
133
Member Avatar for dzhugashvili

here is what I want to do: I want to read 104-character strings from a text file, one per line. I want to chop those strings in two, the first 32 characters being a string called schecksum and the last 72 characters being a string called sencdata. Then I want …

Member Avatar for dzhugashvili
0
162
Member Avatar for XTRobot

Hi,first i must say this is not my homework,because i am to young (14 Years old)to have programming homework.I am trying to make application for automation of the dental surgery(i am testing my skills :D),this is the program menu : Ask for username and password and if it's correct it …

Member Avatar for Stefano Mtangoo
0
239
Member Avatar for nahmartin

I don't know how to solve this problem in my code voro.cpp(200): (col. 5) remark: LOOP WAS VECTORIZED voro.cpp(395): same problem voro.cpp(423): voro.cpp(427): I am using intel compiler 10.1 to compile my code the code works fine on dev C++ 4.9.9.2 and V C++ 2008 200 [CODE] for(j=0; j<3; j++) …

Member Avatar for wildgoose
0
213
Member Avatar for u8sand

I made a game, and my friend told me: It doesn't work on linux. I thought it was because when you use VK_SOMETHING that is a value that windows returns when that key is clicked. So... Is their a substitute that I could use, a different function or something that …

Member Avatar for tux4life
0
157
Member Avatar for the_nice_guy

hi I am new in c++ although I am reading about ti for a while now :). recently a made a silly code that I can not compile so please some help about it. ps: befo you even star to read it the following errors ocure while compilling [B]Undefined reference …

Member Avatar for the_nice_guy
2
76
Member Avatar for gretty

Why do I get this error/incorrect syntax? Do you know how I can fix this? [QUOTE] comparison between signed and unsigned integer expressions [/QUOTE] [CODE=cplusplus] for ( int j = 0; j < item.length(); j++) // error ocurs here if ( item[j] == '_' ) item[j] = ' '; [/CODE]

Member Avatar for u8sand
0
304

The End.