- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
[B]Parallel Resistance[/B] i am trying to input and calculate this for any given number of resistors and any value of the resistors. the formula is [B]1/R= 1/R1+1/R2+1/R3.........+!/Rn[/B] Could someone tell me how to input this into C++ could u explain a little on how to do this aswell. Thank you … |
|
Hi, I am trying to load an image into an applet, however unsuccessfully. What's wrong here? [CODE]package sess31; // Import the AWT graphics package import java.awt.*; import java.applet.*; public class myownapplet extends Applet { Image image; public void init() { // Load image //image = getImage(getDocumentBase(), "show14.gif"); } public void … |
|
Hi, I am trying to implement an applet. The idea is to create the applet, then connect places where I single-click with the mouse with black lines until we give a double-click. With a double-click I should clear the applet. To clear the applet I am trying to set the … |
|
Does anyone know where to download the library from LAPACk to run under C++? |
|
Do you know where can I find a Class to operate with matrixes with a fast algorithm? (the class should also have the inverse method) thanks in advance |
|
Hi I'm using visual c++ express since yesterday and I have an error that visual c++ 6.0 didn't detect :p I think it can be some program configuration... :o [CODE] 1>------ Rebuild All started: Project: IUCUNN, Configuration: Debug Win32 ------ 1>Deleting intermediate and output files for project 'IUCUNN', configuration 'Debug|Win32' … |
|
I'm doing a dialog application in C++ to calculate something, but I want the result to be with 2 decimal number, how to do this? here is the function: [CODE]void CCalculatorDlg::Oncalc() { // TODO: Add your control notification handler code here UpdateData(TRUE); if ((m_amostras >= 1) && (m_elementos >= 1) … |
|
Hi, can you please indicate me some ebooks about C for beginners, thanks |
|
Hi, in the declaration of IP_name: [CODE] int InputNumber; ... // function that gets the InputNumber ... char IP_name[InputNumber];[/CODE] I have this error: [CODE] error C2057: expected constant expression error C2466: cannot allocate an array of constant size 0 error C2133: 'IP_name' : unknown size[/CODE] How can I solve this … |
|
Hi I'm creating an application and in DEBUG mode I have zero errors, but when I switch to RELEASE I have this error: [CODE] --------------------Configuration: ipfix - Win32 Release-------------------- Compiling... Command line error D2016 : '/ZI' and '/O2' command-line options are incompatible Error executing cl.exe. [/CODE] Can you help me … |
|
Hi! How in C++ can we make a pause in the code, waiting for an ENTER? regards |
|
I want to open a file and count the number of strings in the first line. Assuming that each string is delimited by spaces. I tried to do some code but yet not successful, can anyone help? [CODE] int main(int argc, char* argv[]) { int count = 0; FILE *stream; … |
|
In c++ how do I count the number of strings for the first line of a stream? |
|
Hi, In C++ how do I get information from a configuration file and put it in variables. A file like this one: [CODE] # # The number of inputs for each epoch # Default value if omitted: 60 # InputNumber 60 # # The maximum epochs allowed in the network … |
|
Hi! I built this class, however when I executed my program the memory run out quickly, because I wasn't making any "deletes", so I added the delete in the destructor, but It crashes there... what's wrong? [CODE]class CMatrix { public: void Identity(); void SetMaxColRow(int nRow, int nCol); void SetElement(int nRow, … |
|
I'm programming in C++ and I've been told that "printf" is faster than "cout", so since then I've been using "printf" instead of "cout". Do you recommend my option or not? thanks |
|
|
|
Hi! I'm building a Class for matrixes. I have already built several funtions for adding, subtracting, transpose, multiply,.. Now I'm trying to do a function to calculate the inverse... Can anyone help me? [CODE] class CMatrix { public: void Identity(); void SetMaxColRow(int nRow, int nCol); void SetElement(int nRow, int nCol, … |
|
Re:
Hi, I am Meena. I am Java Developer. I am very much interested in C++. Because of my Basic knoeledge in C++ I easily understand Java. Now my big doubt is Java is fully used for Web Orinted. Oracle and VB for Data orinented. Like that what is main purpose … |
|
Re:
the specific problem is that there are no errors in the prob but it is giving segmentation fault.plz check it #include<iostream.h> #include<conio.h> void main() { struct mylist{ mylist * nxt; int val; }; int a,b,c,d=1,i,j;mylist * t; clrscr(); cout<<"Enter the no&the total no of numbers"; cin>>a>>b; mylist * head=new mylist; … |
|
Hi all! I´m having a problem, I'm reading from a txt file values (doubles) but my cout outputs the following: -9.25596e+061 -9.25596e+061 -9.25596e+061 -9.25596e+061 Press any key to continue When it should read this: 1.986772 2.607455 0.000000 0.000000 The code is: [CODE] #include "stdafx.h" #include <stdlib.h> #include <stdio.h> #include <time.h> … |
|
Hi all! I'm working in a project in visual c++ 6.0 with the console application and I want to ask you how to create a program that has portability to work in both platforms, windows and linux. Another thing, which function we use to round a double to the nearest … |
|
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 |