- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
23 Posted Topics
This program works... I don´t know if it's like this that youi want: [CODE] #include "stdafx.h" #include <iostream.h> #include <stdio.h> int main(int argc, char* argv[]) { int no_values; float res_eff = 0.0, res_new, denominator = 0.0; printf("\nHow many input resistance do you want? "); scanf("%d", &no_values); int k=0; do { …
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, Is it possible to delete our posts in previous threads?
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, …
[QUOTE=hsayid]hello meena im sori that i am not emailing regarding ur question because i dont kknow anything about c++ could you please help me with this if you can.thank you. i am trying to input this formula in to c++ but dont know how. could you help me and explain …
Try to show your code like this: it's easy :cool: [CODE] #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; head=NULL; mylist * newnode=new mylist; newnode->val=a; newnode->nxt=head; head=newnode; for(i=1;i<b;i++) …
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
The End.
gampalu