Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~6K People Reached
Favorite Forums
Favorite Tags
c++ x 22
c x 9
Member Avatar for jaeSun

ok, I am needing to calculate powers in C++ (ie, 10^6, 10^9, 10^101, etc) the pow function uses double, and after 10^5, returns a number like (8e3245) ... but i need it for larger powers ... now, is there a function I can do that will break it down somehow? …

Member Avatar for mvmalderen
0
2K
Member Avatar for jaeSun

im compiling a basic sorting algorithm that utilizies POSIX threads (pthreads) .... everything was compiling fine, until i put the thread implementation in .... all of a sudden, it gives me this: [code]-bash-2.05b$ gcc project4a.c -lpthreads project4a.c: In function `main': project4a.c:32: subscripted value is neither array nor pointer project4a.c:33: subscripted …

Member Avatar for ~s.o.s~
1
1K
Member Avatar for jaeSun

ok, call me stupid, maybe i forgot my math: but if a C++ program spits out this: -bash-2.05b$ g++ markoff.cpp -bash-2.05b$ ./a.out x = 1 y = 1 z = 2 x = 1 y = 2 z = 5 x = 2 y = 5 z = 29 x …

Member Avatar for jaeSun
0
467
Member Avatar for vamp

Is it possible if anyone could help me out. I asked my friend if he could do this, but pointed me here. I have no computer science knowledge/language. I was trying to get a program that hits a certain key every 4 minutes. Than another for minutes later does the …

Member Avatar for Narue
0
116
Member Avatar for jaeSun

is it just me or am i stupid? (save the comments har har) im using C++ to pull in a character from a file ... (going character by character) how do i check for a line feed, or return? [code]<img src="http://image.jpg" <-- return alt="image" height="100" width="100 />[/code] ive checked for …

Member Avatar for jwenting
0
160
Member Avatar for jaeSun

ok, im trying to figure out this simultaneous process assignment ... i got it finished, runs fine for the most part, but 2 of the processes dont process.... the code: [code] #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <semaphore.h> int numof_bridgecars = 0; int northID, southID; //semaphore declarations sem_t north_s, …

0
81
Member Avatar for WrEcK

heres a problem for u write a program that reads a list of integers from the keyboard and closes the following: a. Finds and prints the sum and the average of the integers b. Finds and prints the largest and the smallest of the integers c. Prints a message if …

Member Avatar for WrEcK
0
145
Member Avatar for jaeSun

is there a generic way of outputing to the screen (or maybe file) a tree? i have a programmng assignment of which i have to choose 1 out of 4 possibilites for my HTML Web Design class .... 1 of them that im thinking is taking a html file (that …

Member Avatar for Narue
0
91
Member Avatar for motswana

PLEASE HELP ME, I WANT TO WRITE A C PROGRAM TO EMULATE THE Is -L -A -F UNIX COMMAND THAT WILL DISPLAY ALL FILES IN THE CURRENT DIRECTORY INCLUDING INVISIBLE FILES, THEIR ACCESS PRIVILEGES, AS WELL AS IDENTIFYING WHICH ARE FILES AND WHICH ARE SUB-DIRECTORIES. but i dont want to …

Member Avatar for jaeSun
0
151
Member Avatar for jaeSun

man, this might be hard for me to get across the question i have .... i have this project that requires using semaphores to do a project. (i have it attached). i am just looking for help on how to start it, or whatever. im just trying to understand where …

0
75
Member Avatar for debashish

I am very new to c/c++ programming. i was writing a few lines of code and after compiling and running the program i did not receive the desired output. can you please help me in this matter. /* Test.c */ #include <stdio.h> main() { char i[30]; clrscr(); printf("Enter a name: …

Member Avatar for frrossk
-1
113
Member Avatar for bryan7890

Write a complete program that creates an array of characters, 3 times the size of ASCII table and itinializes the contents of the array to correcponding ACSII values; when end of ACSII table is reached, you should loop back to the beggining and start again. Print the contents of the …

Member Avatar for bryan7890
0
129
Member Avatar for jaeSun

ok, I have an assignment ... it requires the use of pthreads .. i pretty much understand it, well, sorta .... the assignment is to read input from the command line (input redirection) from a file the file contains a list of numbers, 1 per line, 50 total numbers max …

0
67
Member Avatar for jaeSun

ok...i am trying to figure out how to read input .... i am reading input from the command line [code] sh% ./a.out < input_file[/code] within the input_file, it looks like this: [code]0 4 6 7 3 1 3 6 7 4 3 6 2 3 6 7 3 2 4 …

Member Avatar for Stack Overflow
0
261
Member Avatar for nicoletonyf

Hello there, why do I have this message when I try to use subTwoComplex in my testing file? The addTwoComplex works fine but not the "sub"one. What's wrong? thanks error C2039: 'subTwoComplex' : is not a member of 'Complex' *********header file #ifndef COMPLEX_H #define COMPLEX_H class Complex { public: Complex( …

Member Avatar for jaeSun
0
192
Member Avatar for jaeSun

i havent been able to find anyone to help me .... i am looking to create a queue .... i cant use a stack, as that is LIFO (last in, first out) ... but i need a FIFO (first in, first out) .... i have some code for a stack …

Member Avatar for jaeSun
1
281