10 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for dot_binary

Hello! After I compile and run my program a windows error message shows up, it doesn't give some specific information it's just a standard windows xp error that asks me to send report. It gives me the error because in my code I have some basic math like this: int …

Member Avatar for dot_binary
0
296
Member Avatar for nuclear

Just wanted to know if we need to texture map the texture on the model with code or is it better to just import a model with textures already on him? (considering its even possible)

Member Avatar for mike_2000_17
0
196
Member Avatar for thecoolman5

hi, I am trying to make a variable equation solver using DEV-C++. I just need to know how to get C++ to solve an equation inputed by the user. So you input something like 1+1 and i need it to solve the problem and output the answer. heres an example: …

Member Avatar for eddiecrosby
0
4K
Member Avatar for thecoolman5

Hi, i am trying to make a BMI calulator and here is my code: [CODE]#include<iostream> #include<sstream> #include<fstream.h> using namespace std; int main (char argc) { double ff1; double ii1; double ww1; for(;;) { system("cls"); cout << "Enter feet." << endl; string f1; cin >> f1; stringstream(f1) >> ff1; if(ff1 >! …

Member Avatar for thecoolman5
0
955
Member Avatar for thecoolman5

hi, i am writing a program that keeps track of the money in my debit card account. i need the program to be able to pull out a value (such as 1.56356) from a text file, round it to the nearest hundredth, and put it back into the file. any …

Member Avatar for m4ster_r0shi
0
464
Member Avatar for thecoolman5

hi, i have this code [CODE]#include <fstream.h> #include<iostream> using namespace std; int main (char argc) { for(;;) { fstream file; file.open("file.txt"); cout << "Enter new high score." << endl; double n2; cin >> n2; double n1; file >> n1; if(n1 > n2) { cout << "You didn't beat the high …

Member Avatar for thecoolman5
0
1K
Member Avatar for thecoolman5

hi, how would you get a certain part of code to run while the program is waiting for the input? [CODE]string in; int n1 = 0; n1++ // get this part of code to loop while the program is waiting for the input cin >> in[/CODE] thanks.

Member Avatar for thecoolman5
0
876
Member Avatar for thecoolman5

hi, i have this code: [CODE]#include <iostream> #include <fstream> #include<cstdio> #include<cstdlib> using namespace std; int main (char argc) { for(;;) { fstream myfile; myfile.open("example.txt"); cout << "1: Write" << endl; cout << "2: Read" << endl; int n1; cin >> n1; if(n1 == 1) { string n2; getline(cin,n2); myfile << …

Member Avatar for raptr_dflo
0
2K
Member Avatar for Progr4mmer

I'm trying to make a program where you enter the number you want to find primes up to which then lists all the primes up to that number... But I enter 100 then it just sits there... Here's my code so far: [CODE]#include <iostream> #include <cmath> int prime(int); int main() …

Member Avatar for Progr4mmer
0
178
Member Avatar for beejay321

so for my computing project we have just started to work with using input and output of text files, the tutorial my teacher gave said to include these libraries, which i did [CODE]#inclue <fstream> #include <iomanip>[/CODE] and explains how to use [CODE] ifstream fin; //fin is my file input variable …

Member Avatar for beejay321
0
324

The End.