- Upvotes Received
- 2
- Posts with Upvotes
- 1
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
- Interests
- Assembly, Scheme/Lisp, C/C++ and Python. Want to learn Haskell and Scala
- PC Specs
- MOS Technology 6502 (Bender and Terminator have it too)!
Re:
Hi all I've been asked to write a C++ program that the user enters a five digit integer. The program then needs to return how many zeros in the number, how many odd numbers and how many even numbers. I've set it up to %2=0 and %2!=0 to determine if … |
|
In this game, post confusing or hard to understand code, and the reader will try to figure out how it works. I will start with a small C++ program that uses #define's. #include <iostream> #include <string> using namespace std; #define FUNCTION(?????) ?????? FUNCTION(inline, int, hello, for(int d = 0; d … |
|
|
Re:
hi.... int x=30, *y,*z; y=&x; assume x address is 500 and int is of 4 bytes z=y; *y++=*z++; x++; printf("%d %d %d",x,y,z); i want to ask that how the value of y is 504 here ? firstly value of z is assigned to value of y. then z is incremented … |
|
Re:
hi, int fun(int(*)()) { ....... ....... ...... } int main() { ....... ...... ....... fun(main); ........ ........ } my question is that how can we use "main" (only name without parenthesis) as the pointer to a function ? because main() is a function. I am not getting it how is … |
Re:
I am trying to use bad words filter but I want to load the bad words from a txt file on my server but some how failed to do so.here is my bad words filter code function badWordFilter(&$text, $replace) { $patterns = array( '/butt/i', '/poop/i', '/crap/i' ); $replaces = array( … |
|
Re:
Hello my name is Leonard E. Norwood Jr. I haven't been back much but I'm still studying and practicing C++ I'm still doing arrays starting from beginning to better get used it it. Anyway, it's a simple program of finding the largest number of the 10 numbers. I know my … |
|
Re:
Hello, can anyone suggest me how to execute graphics programs(such as DDA line algo) using GCC compiler under windows? graphics.h is a part of turbo c and is not available in gcc.. so is there any way to do this?? |
|
Re:
Please i want to know if in a dual-boot system, having installed grub and MBR on different partitions,I would have the chance to select which bootloader should be the default at any point in time. In other words,can i set grub to have a higher priority than MBR in such … |
|
Re:
I kinda want to code in binary just for the fun of it. But I have no idea how to compile my code. Anyone know how? |