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

16 Posted Topics

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 tux4life
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
469
Member Avatar for vamp

this isnt for his homework, i can vouch for that (he dont go to college or anything)! i dont know how to do this myself, so i have no help from me ....so i pointed him here.. so any help would be great .... its for a game, and on …

Member Avatar for Narue
0
119
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
163
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
83
Member Avatar for WrEcK

or this: int main() { printf("sure, give me $40, and ill give you the wrong answer."\n); return "$40 bucks for me!"; }

Member Avatar for WrEcK
0
147
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
93
Member Avatar for motswana

sound like a hw assignment i had... we had to program a "shell" to take in certain commands and display it to the screen ...

Member Avatar for jaeSun
0
157
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
77
Member Avatar for debashish
Member Avatar for bryan7890

[QUOTE=Narue]>but its not compiling I can't imagine why. Here's an idea, maybe it's because you can't seem to tell the difference between C++ and Java. :rolleyes:[/QUOTE] lol...sorry, probably mean for me to be laughing, but i cant help it.... but yes, your getting your java and C++ mixed up..fix that …

Member Avatar for bryan7890
0
130
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
69
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
276
Member Avatar for nicoletonyf
Member Avatar for jaeSun
0
196
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
288

The End.