Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~8K People Reached
Favorite Forums
Favorite Tags
c++ x 26
java x 1
Member Avatar for Yaserk88

Hi I'm trying to create a random number generator with float values ranging from -1 to 1 i.e.. [-1,1]. The only problem is I can only find methods that do it from [0,1]. Can anyone help me with this? Here is what I have so far.... [CODE]Random r = new …

Member Avatar for tong1
0
96
Member Avatar for Yaserk88

Hey does anyone know if there is an error function in the math library of C++? I think there is so, but I just can't figure out how to use it.

Member Avatar for tesuji
0
614
Member Avatar for Yaserk88

I have a csv file that is being read as a continous string of different characters and values(integers and Real #'s). I separated these 35 different values by interating with factor of 35. My goal now is to convert these different characters and values into int, float, and keep some …

Member Avatar for Lerner
0
100
Member Avatar for Yaserk88

Hello! I am trying to open this CSV file separated by semicolons. I know how to open a text file and I tried searching the way to open a CSV, but most methods seemed extremly complicated. Does any one have a simple suggestion that would work with what I already …

Member Avatar for Ancient Dragon
0
4K
Member Avatar for Yaserk88

High I am in Europe right now and here they treat their commas as decimals points. I am working with Visual express 2008 and I cannot find a way to read a file that has all commas for decimal points. I can read the numbers as a string, but than …

Member Avatar for Yaserk88
0
2K
Member Avatar for Yaserk88

I am reading a file that has a column of words, but each time the column is read, the first letters are the only things that are outputed. Does anyone have any simple solutions to this? I don't want to have each letter be a separate variable. [ICODE]#include <iostream> #include …

Member Avatar for Yaserk88
0
114
Member Avatar for Yaserk88

Alright, I have a loop with a few nested loops inside like so: ........ for (int s=0; s<200; s++) { for (int i=0; i<N_plates; i++) { for (int j=0; j<3; j++) { V=V+(Cen[i][j])*(N[i][j]); } for (int j=0; j<3; j++) { ................ } } V=V/6; cout << "Volume:" << V << …

Member Avatar for vmanes
0
98
Member Avatar for Yaserk88

Hey. I am trying to output a file. I pretty much have down, but the only problem is I'm getting the last set of my numbers and missing the other 5000 or so sets. Here is what I have [[ICODE]for (int i=0; i < N_plates; i++) { cout << i …

Member Avatar for Yaserk88
0
130
Member Avatar for Yaserk88

Here is what I have right now. I created a loop that loops through 6 times. Each time it loops, it spits out a different answer at the end, then when it gets back to the top it starts at 0 and {0,0,0}. [QUOTE] ........ double U[6]={0,0,0,0,0,0}; double g[6][3]={{0,0,0}, {0,0,0}, …

Member Avatar for Yaserk88
0
92
Member Avatar for Yaserk88

alright. I have this file that lists about 3000 coordinates in this way. -90.0000 0.0000 220.7533 -90.0000 5.0000 220.7533 -90.0000 10.0000 220.7533 -90.0000 15.0000 220.7533 I'm trying to open this file in my program, but I'm having no luck at all. I've tried reading numerous threads on doing so, but …

Member Avatar for Ancient Dragon
0
95
Member Avatar for Yaserk88

Ok. I'm not experienced at all, and I need to program a set of different math formulas into a code. Here is the first step I'm trying to take. I have an octahedron that has 8 plates. Each plate is composed of 3 vectors. There are 6 vectors in total …

Member Avatar for dougy83
0
97