- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
16 Posted Topics
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? … | |
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 … | |
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 … | |
Re: 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 … | |
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 … | |
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, … | |
Re: or this: int main() { printf("sure, give me $40, and ill give you the wrong answer."\n); return "$40 bucks for me!"; } | |
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 … | |
Re: sound like a hw assignment i had... we had to program a "shell" to take in certain commands and display it to the screen ... | |
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 … | |
Re: [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 … | |
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 … | |
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 … | |
Re: this looks very familiar to me .... is this for a class? if so, which class? ... | |
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 … |
The End.