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
Ranked #4K
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 58
cui x 3
Member Avatar for Zssffssz

Ok when I use gcc (all th time) the program it makes in c++ with debug on is around a megabyte when off it is around half a megabyte when working with c with debug on it around 50 k with it off it's at about25 k this doesn't seem …

Member Avatar for mike_2000_17
0
179
Member Avatar for someidiot

[CODE]#include<iostream> #include<fstream> #include<string> using namespace std; #define months 12 #define temps 2 void getData(int [months][temps],int,ifstream); void testcout(int [months][temps],int); int main() {int y=0; string skipwrd; int mainArray [months][temps]; ifstream in_data; ofstream out_data; in_data.open ("C:\\Users\\Worker\\Desktop\\Ch09_Ex09Data.txt"); getline(in_data, skipwrd); getline(in_data, skipwrd); in_data>>skipwrd; getData(mainArray,y,in_data); y++; getData(mainArray,y,in_data); } void getData(int locArray[months][temps],int x, ifstream locin_data) {int z=0; …

Member Avatar for mebob
0
167
Member Avatar for mebob

When I tried to compile my code, I got this in the log: child 2136(0xD8) died before initialization with status code 0x1 *** child state waiting for longjmp *** child state waiting for longjmp Resource temporarily unavailable C:\Users\Collin\Desktop\Programming\Makefile.win [Build Error] [HW8P1Class.o] Error 2 This is the file that seems to …

Member Avatar for mebob
0
260
Member Avatar for mebob

Hi, I wrote a function as part of a homework assignment, but all it seems to be outputting is 1.#QNAN (I know what this is, I just can't find the cause of it). Here is the function: [CODE] double length ( const int a[], int size ) { double length …

Member Avatar for mebob
0
106
Member Avatar for mebob

I have to make a program that takes 4 inputs and outputs the 2 largest inputs. So I wrote this code, [CODE] #include <iostream> using namespace std; void largest_two ( int input[4], int output[2] ) { bool restart; int i; int temp; do { restart = false; for ( i …

Member Avatar for thelamb
0
100
Member Avatar for mebob

Hi, I recently downloaded the GMP library, and I am completely lost in building it. I tried building it, but it just doesn't want to work for me. I want to build the C++ wrapper. BTW, I have never built a library before, so please excuse any of my stupidity …

Member Avatar for mebob
0
87
Member Avatar for mebob

I am getting an error in Windows Vista that says "Project3.exe has stopped working", and has a bar like a loading a bar, and under it, it says it is looking for a solution. The program is an class assignment that takes a data fiile with information about energy usage …

Member Avatar for mebob
0
159
Member Avatar for mebob

Hey, i was wondering if there was a way to output really large decimals, either to a file or to the output stream? because when i do this: [CODE] file << setiosflags(ios::showpoint) << setiosflags(ios::fixed) << setprecision(50); [/CODE] or do that with cout, the program crashes.

Member Avatar for DinoBA
0
101
Member Avatar for mebob

hi, i created a program to use bubblesort to sort numbers in an array, but when i try to display the new array, nothing appears on the command prompt. after some exploring, i figured out that it gets stuck in one of the loops in the sorting function. here is …

Member Avatar for WaltP
0
86
Member Avatar for mebob

for my own satisfaction, im trying to make a program that does AES encryption, but ive run into a problem: i cant find an efficient way to us the s-box, and i would rather not have a switch statement with 256 cases. what could i do to do this effieciently.

Member Avatar for robertl2
0
157
Member Avatar for mebob

how would i make a new type of variable, like instead of int or double? would i use classes or something like that?

Member Avatar for Stefano Mtangoo
0
90
Member Avatar for mebob

Hi, i am doing my mom's c++ for engineering class, and doing a project for her, i noticed something in the extra credit section of her project directions. it says to add graphics to represent what variables the users are entering. in this one, it is about beam deflection, and …

Member Avatar for mebob
0
116
Member Avatar for mebob

i was trying to make a program that uses the chudnovsky algorithm to calculate pi with this code: [code] #include <cmath> #include <iostream> #include <cstdlib> using namespace std; float fac (float num) { float result=1; for (float i=1; i<=num; ++i) result=result*=i; return result; } int main() { double pi=0; float …

Member Avatar for vmanes
0
437
Member Avatar for mebob

Hi, i have two questions about making a c++ based programming language. the first: is there a c++ function or something that can separate text by commas and parenthesis, so if i wanted to write function [I]foo[/I] with argument [I]arg1[/I] and [I]arg2[/I], i would need code to take foo(arg1,arg2) and …

Member Avatar for mebob
0
94