Heya guys, My onboard audio of my motherboard just died a few days ago. Now i'm forced to use an usb headset, which is fine for games, but music on the other hand... My motherboard is an P7P55D EVO, which has an VIA VT1828S on it. i'm looking for a card with atleast 5.1 out, but i have no idea what card would be good, price/performance wise. Can anyone recommand me anything?

Member Avatar
Member Avatar
+0 forum 9

Hi all, I have a question regarding an extern variable. ---test.c [CODE]#include <stdio.h> #include </home/peuceul/debug/test.h> extern int a; int print1() { printf("value of a in extern is %d\n", a); int a = 2; printf("value of a is %d\n", a); } int print2() { printf("value of a in second method is %d\n", a); } int main() { print1(); print2(); }[/CODE] ---test.h [CODE]int a = 0;[/CODE] I am trying to change the value of an extern variable(mainly int a) using print1 method. And in main() I need to call print2 with the changed value of this int a, without passing the "a" …

Member Avatar
Member Avatar
+0 forum 2

i have a header file which contains a random number generator here is the code: [CODE]#include <cstdlib> #include <time.h> #ifndef RANDOM_H struct rand_var{ int x,y; }Rand_var; static int rand_gen() { srand ((unsigned)time(NULL)); extern int random; random = rand() % (Rand_var.x-Rand_var.y+1) + Rand_var.x; } #endif /* random.h */[/CODE] you will probably com-plain about the struct, and that i should just put the declaration in the static int, or just not in there at all. anyways, the problem i'm having is when i try to intialize it in this code: [CODE]#include <iostream> #include <Windows.h> #include <conio.h> #include "random.h" struct enemies { bool …

Member Avatar
Member Avatar
+0 forum 2

The End.