49,760 Topics

Member Avatar for
Member Avatar for nthompkins

Hello will someone please help!! Here is the assignment • Using a function with the header below, pass it arguments in main, alter ary1 contents and display ary2 contents in the function definition. Display the contents of ary1 in main after the function is called. void arrayTst(int ary1[], const int …

Member Avatar for nthompkins
0
178
Member Avatar for c++clueless

I have an assignment to create a mortgage calculator in C++. I have attempted to complete this but I cannot get it to compile. Any help would be appreciated. Here is what I have come up with: [code] #include <stdio.h> #include <math.h> using namespace std; /* Begin program */ int …

Member Avatar for Narue
0
168
Member Avatar for perlsu

I create the dynamic array with malloc and assign the last char to NULL. When I assign the NULL character, the warning message as follow appear: `'=' : 'unsigned char ' differs in levels of indirection from 'void *'` The code is as follows: void main() { const char sendText[] …

Member Avatar for Narue
0
394
Member Avatar for mccbebz

just want to ask if this is an array program????... my professor told us to make array program that displays 10 names.. He also tells us that we can use C or C++ program.. i prefer using C cause im much familiar with C programs... my knowledge in Array is …

Member Avatar for Ancient Dragon
0
102
Member Avatar for lsu420luv

I have been fiddling with these damn loops for hours. I am new to c++ but not too programming. My teacher is absolutely worthless. she refuses to help me and explains things very poorly. I have a 100 % on the assignments in the class and do not wish to …

Member Avatar for Lerner
0
405
Member Avatar for heavyc

I have all this code for my project which is to copy a file to another file using windows coding in C ++ i have to repeat the the code 5 times using diffrent buffers everytime which the numbers are 1, 5, 10, 100, 1000 i know i have to …

Member Avatar for WolfPack
0
136
Member Avatar for Scoobs
Member Avatar for Bench
0
124
Member Avatar for djbsabkcb

Below is my source code for a tictactoe program. However, my output after first move always states invalid choice, no matter what number I enter? [code] #include <iostream> #include <string> #include <cmath> using namespace std; class TicTacToe { public: TicTacToe(); // constructor int Pick_Player(); // member function int Pick_Row(); // …

Member Avatar for Narue
0
775
Member Avatar for tyczj

can someone give me a good link on how to add, subtract, multiply matrixes i cant fint it anywhere

Member Avatar for tyczj
0
139
Member Avatar for That Man

Any ideas on how to do this program because I have the slightest idea. This is what I have to do, [I][B]Multi-Function Calculator - Ask the user for 2 numbers, then ask them to select from a numbered list of operations. As rudimentry error checking, give them an extra chance …

Member Avatar for shaikh_mshariq
0
359
Member Avatar for WolfPack

Can anybody please tell me what is wrong with this piece of code? [code] std::string query; std::cout << "Enter the Query String :";// Type something with spaces here. e.g ( "financial instruments being traded on the American stock exchange" ); while (std::cin >> query ) { std::cout << query <<std::endl; …

Member Avatar for WolfPack
0
360
Member Avatar for jimtaylor

There follows a fragment of a program in Borland C++: void __fastcall TForm1::FormCreate(TObject *Sender) { Memo1->Clear(); ListBox1->Clear(); Memo1->Lines->LoadFromFile("c:\\blitz\\history.txt"); a=Memo1->Lines->Count; x=0; while (x<a) { str1=Memo1->Lines->Strings[x]; if (str1 != "") { DATA MANIPULATION HERE, THEN if (ListBox1->Items->Count==0) ListBox1->Items->Strings[0]=str3; else ListBox1->Items->Add(str3); } } ListBox1->Items->SaveToFile("C:\\blitz\\history.txt"); Close(); } The form does not close, but "history.txt" …

Member Avatar for jimtaylor
0
132
Member Avatar for crestaldin

Please I need help on how to insert elements into a sorted linked list.I actually have a list that contains names and scores for students and I want the elements to be inserted into the right postion such that the names of individual students are arranged alphabetically. This is my …

Member Avatar for Nedals
0
5K
Member Avatar for supes32

The following program Assignment#2 was assigned to us a few weeks ago. I understood that assignment. Our professor told us soon we would be editting it to run more efficient. We have now been introduced to struct nodes. Needless to say, I am very confused. Our new assignment is due …

Member Avatar for iamthwee
0
207
Member Avatar for vamsi_rgiit

I am presently learning c and c++.I find problems with linked lists and related topics.Can anyone suggest me the ideas to make them easy.

Member Avatar for Narue
0
92
Member Avatar for fitfool

Hello im pretty new to proggramming. Im making a console program. I want to be able to play a sound when it opens. I have no clue on how to do this. :o Is it possible running a sound in a console program? Plz reply and thxXx for the help!

Member Avatar for fitfool
0
120
Member Avatar for gampalu

Hi! I'm new in C++, but perhaps this is a general problem, not C++ exclusive. This is printed in my console, "-1.#IND", when using a printf, when this occurs? thanks

Member Avatar for Narue
0
244
Member Avatar for JoBe

Hello ladies and gents, I wanted to ask if any of you could help me out here, Ive got this program: [code] //Test programma voor Accelerated C++. #include <fstream> #include <iostream> #include <string> int main(int argc, char** argv) { int fail_count = 0; //for each file in the input list …

Member Avatar for JoBe
0
81
Member Avatar for bmarzouk

SUMMARY --------- I need the detailed steps of building a DLL project from .LIB & .H files using VC++ 6.0 DETAILES --------- I have Windows XP SP2 and I have installed Platform SDK in order to get the ibrary files to use in my Bluetooth application that will be developed …

Member Avatar for whatisid
0
336
Member Avatar for Arvinth

Hi My problem reqs a simulation code ( *.exe), which shd read the inputs from a file ( *.in) and after calculations , write the results to an output file ( *.out) .The names of the input and output files are hardcoded. I shd be able to execute my sim …

Member Avatar for Arvinth
0
319
Member Avatar for hiten_1984

hi all, this is my 1st message. i am a beginner in C. can anyone help me out with the following Turbo C problem. i am unable to complile my programs. i.e. instead of compiling my program the s/w compliles something else (tc\inclde\iostream....something of this sort of a file pops …

Member Avatar for hiten_1984
0
126
Member Avatar for BobGoolay

we have a project due that involves reading in data from a file which is a 30x20 grid consisting of 30 processes each of which have 10 CPU bursts and IO bursts. From this we are supposed to implement FCFS, SJF, RR and a multi-level feedback queue in C++. From …

Member Avatar for Narue
-1
931
Member Avatar for krishsakura

hello, good day.. i would like to do a simple simulation ( discrete event simulation ) based on this article ( link below ) using C or C++ . as this is the first time i'm dealing with simulation, i dont know where should i start and what parameters/ algorithm …

0
59
Member Avatar for tyczj

i am totally stumped on what to do here. basically whats goin on is i have a 3D dynamic array and i need to have a cursor inside of it and move around on the inside. i do i go about doing that? like i said im completely stumped. here …

Member Avatar for iamthwee
0
1K
Member Avatar for Coach_Nate

Ok, here's my code: [code] string connect; cout<<"enter node, then linked nodes"; cin>>node; while(node != 0) { cin.get( connect ); adjList.insert(make_pair(node,connect)); cin>>node; } [/code] The problem at hand is that the compiler (Dev C++) keeps telling me : 21 no matching function for call to `std::basic_istream<char, std::char_traits<char> >::get(std::string&, char)' referring …

Member Avatar for Narue
0
132
Member Avatar for souphmars

in VC++.NET i am trying to create a gui, to display live video, i am using Intel OpenCV - i need help integrating OpenCV - if you could write a short gui it would be greatly appreciated - thanks

Member Avatar for WolfPack
0
57
Member Avatar for AhmedHan

I had been studying OpenGL in DevCPP all the time. Using DevCPP you link OpenGL library files libopengl32.a and libglu32.a adjusting project options. But I dont know how to do this in VC++. Can you help me what files to link and how to link in Visual Studio 2005 for …

Member Avatar for jwenting
0
254
Member Avatar for stupidenator

Hi everyone, I am currently facing a problem with a program that I am writing. It is a computer simulation of the card game War. I am receiving this error [CODE]main.cpp:22: invalid conversion from `Card*' to `int' main.cpp:22: initializing argument 1 of `Card::Card(int)'[/CODE] Card is the name of one of …

Member Avatar for stupidenator
0
169
Member Avatar for Nedals

In CApplView I create a Login Form. [code] void CApplView::Login_Entry(CDC *pDC) { .. if (pUserid == NULL) { pUserid = new CEdit; pUserid->Create(WS_CHILD|WS_VISIBLE|WS_BORDER, CRect(x,y1,w,h), this, IDC_USER); pPasswd = new CEdit; pPasswd->Create(WS_CHILD|WS_VISIBLE|WS_BORDER, CRect(x,y2,w,h), this, IDC_PASS); pbLogin = new CButton(); pbLogin->Create("Login",WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON, CRect(x,y3,w,h), this, IDB_LOGIN); } } [/code] How do I add code …

Member Avatar for Nedals
0
941
Member Avatar for fsloke

I doing assignment about file processing. It quite hard. 1.Sometimes can open the file sometimes cannot 2.How to overwrite y content in the file? 3. How to add Data into the file? Brief: You know I create the file then when I close the program. After that open again. It …

Member Avatar for Salem
0
319

The End.