Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
67% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~32.5K People Reached
Favorite Tags
Member Avatar for wildplace

i need to create a project that able to run both under linux and windows(visual studio)... i pretty much finish all coding and able to run both windows and linux in separate files the problem i deal with is the header file which visual studio required #include "StdAfx.h" and not …

Member Avatar for deceptikon
0
2K
Member Avatar for wildplace

how to code a jscript similar to fb that click the image and a layer pop out? i would like to see some example on how it is done. thanks!

Member Avatar for wildplace
0
107
Member Avatar for wildplace

let say i have an expression like the one below, I guess it goes from left to right? if(exp1 && (exp2 && exp3 || exp4) || exp5)

Member Avatar for wildplace
0
111
Member Avatar for wildplace

Hi all... position elements is giving me a hard time here :( hope you could hlep with with these 2 questions. 1. how does inline, inline-block, block affect position? 2. consider the code below, how do i vetical and horizontal center the elements inside #contenter. seems code tag doesnt <html> …

Member Avatar for JorgeM
0
99
Member Avatar for wildplace
Member Avatar for wildplace

bool aCondition = true; for(int i=0; i<numOfThreads; i++){ pthread_create(&firstThreads[i], NULL, &myThreads1, (void*) NULL); if(aCondition == true)//for here, if some condition is true i want at least one thread from firstThreads to complete before any secondThreads runs pthread_join(firstThreads[0], NULL); pthread_create(&secondThreads[i], NULL, &myThreads2, (void*) NULL); } for(...) //join the rest of the …

0
62
Member Avatar for wildplace

int main(){ fstream in; in.open ("myFile.dat", fstream::in | fstream::out | fstream::app); char* temp = new char [40]; string aString; in.write("123\n",4); getline(in, aString); //in.read(temp, 4); cout<<aString<<endl; } i want to either display the text already in myFile.dat or 123 if it was a empty file i tested with a emtpy file, …

Member Avatar for wildplace
0
74
Member Avatar for phummon

Hola code gurus, I’m wondering if there’s a way to use a string to access a specific item in a matrix of int[X]. I have a program which uses enums as iterators to reference a large amount of data. To select an item in the matrix, the user will enter …

Member Avatar for phummon
0
317
Member Avatar for gethelpcpp123

A password is good if it has at least one digit,one alphanumeric charecter, one uppercase letter, one ordinary lowercase letter letter and consists of 8 charecters or more. I created this program, but I'm not getting correct results.. What is the problem? void main() { cout<<"This program checks whether the …

Member Avatar for WaltP
0
108
Member Avatar for choosenalpha

Hi All, I'm fairly new to Java. I have a question involving the Replace Method. Is there, any way I can use the replace method to change a string that results in: Helle, Werld; to get it to result to Hello, World using the replace method. I have seen the …

Member Avatar for TrustyTony
0
217
Member Avatar for wildplace

so i fork n process: for(i=0; i<numOfProcess; i++) pid == fork(); if(pid == -1) //error handling if(pid == 0){ //child, do something exit(0); } else{ //parent //i want to wait till all children are done before continue..how? //i tried wait(NULL), and waitpid(pid, NULL, 0) //but both wont work..? //........... //something …

Member Avatar for histrungalot
0
10K
Member Avatar for wildplace

i created some segement of shared memory using <sys/shm.h> <-- im not sure what this thing called.. shared memory? seems shared memory doesnt like dynamic allocation and vectors what are some apporaches i could create a 2D array like structure in shared memory?

Member Avatar for wildplace
0
167
Member Avatar for wildplace

hey, today my teacher told us to use pipe and fork to write a program without teaching us anyway... if any would recommend some good tutorials would be great~!! and what does fork a child mean really mean(example would be great), and how write to a pipe? everything is done …

Member Avatar for vimalseo
0
122
Member Avatar for wildplace

[CODE]struct Information { ifstream* in; ofstream* out; ... }; ..... ((*info).in)->eof() //this one (*(*info).in).eof() // and this one[/CODE] so, info is a Information struct, is there any different between the two shown above? my guess is they are the same. and what is "->" and "." called?

Member Avatar for ejosiah
0
119
Member Avatar for wildplace

so to create a thread all i need is to call this function? and the codes in the "void *(*start_routine)" function is a thread? [CODE]int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void*), void *arg);[/CODE]

Member Avatar for mike_2000_17
0
87
Member Avatar for wildplace

let say, i have a House object; House* someHouses = new House[100]; -----fucntion call... may or may not add stuff to someHouses ------ now, i want to get to the last position that haven't used yet. i tried to check NULL, and 0, both doesn't work. how can i check …

Member Avatar for mrnutty
0
5K
Member Avatar for wildplace

hi.. im trying to get a line using getline() function from an input file, but it is ignoring end line character. is there any other function that would including the end line character? btw, im not allowed to use something like aString+'\n' thanks in advance~

Member Avatar for WaltP
0
118
Member Avatar for wildplace

i used one register in my inline asm. when i compare the asm codes with and without clobber, i dont see any different between them. so, what exactly does clobber do?

Member Avatar for thines01
0
101
Member Avatar for Rickay

[CODE]double speedTest() { double dInitialTime = clock(), dFinalTime = 0; double dRepititions = 99999999; double dResult; cout << "\nCalculating...\n\n"; for(int nCounter = 0; nCounter <= dRepititions; nCounter++) { pow(dRepititions, pow(dRepititions, dRepititions)); } dFinalTime = clock(); dResult = dFinalTime - dInitialTime; ofstream outf("Results.dat", ios::app); outf << dResult << endl; return dResult; …

Member Avatar for Rickay
0
5K
Member Avatar for wildplace

so..i found this on wikipedia but i dont really get what dist, previous, alt mean in here.. [CODE] 1 function Dijkstra(Graph, source): 2 for each vertex v in Graph: // Initializations 3 dist[v] := infinity ; // Unknown distance function from source to v 4 previous[v] := undefined ; // …

Member Avatar for mike_2000_17
0
216
Member Avatar for wildplace

so.. my professor ask us to read map(x,y) into a graph data structure and traverse using Breadth First Search. although i asked him for help, i still so lost..can someone please explain how should i start, such as what are some functions the graph class should has..and what they should …

Member Avatar for wildplace
0
104
Member Avatar for wildplace

how do i move the value of %eax to the memory location of %0 [CODE] int size 10; long *list = (long*) malloc(size*sizeof(long)); asm( movl $999, %%eax movl %eax, (%0) // this is what im trying, how do i fix it? :"=r"(list) :"0"(list), "a"(strLen) );[/CODE]

Member Avatar for wildplace
0
118
Member Avatar for wildplace

im trying to learn pointer n the &(no idea the specific name for it); so my question is.. im passing the memory address of P to changePTR, why p is not taken the address of o(lets assume o is dynamic allocated), or even i want to change p to NULL. …

Member Avatar for wildplace
0
90
Member Avatar for wildplace

hi, i have the following codes, is there any way to check if the user entered a character instead a number? btw, i dont want to change the input type from long to char thanks =D [CODE] long input; printf("enter a digit to your list: "); scanf("%ld",&input);[/CODE]

Member Avatar for Narue
0
153
Member Avatar for wildplace

i have a header file defined as : [CODE] template <typename NodeElement> class Node{ //public members public: something here..... private: }; template <typename ListElement> class List{ public: something.... Node *nodePtr; //problem here }; [/CODE] [CODE] list.h:38: error: ISO C++ forbids declaration of ‘Node’ with no type list.h:38: error: expected ‘;’ …

Member Avatar for wildplace
0
109
Member Avatar for wildplace

i pushed a floating point into my stack fstpl -4(%ebp) how do i print this value store at that memory location in GDB using x command(value in hex and binary)

0
54
Member Avatar for wildplace

hi all, which flags are set if the conditions..such as the follow : signed graeter-than unsigned less-than unsigned greater-than explain needed~!! also what is the different btw JLE and JNGE, i know that JLE also set the ZF..what does that mean..? very appreciate for your help =D

0
60
Member Avatar for wildplace

[CODE] 0: #include <iostream> 1: #include <string> 2: using namespace std; 3: 4: int main() { 5: int myIntArray[4] = {1, 2, 3, 4}; 6: double myDoubleArray[4] = {100, 101, 102, 103}; 7: 8: int i; 9: int *ip, *ibp; 10: double *dp, *dbp; 11: 12: ip = &myIntArray[0]; 13: …

Member Avatar for Fbody
0
76
Member Avatar for wildplace

can someone please explain why that is the answer to the question. for question 3, i thought it would be a) and c) thanks, 1 Circle which of the following (it could be any number of them) are flags that will be set (to 1) when 0x80 and 0x40 are …

Member Avatar for wildplace
0
737
Member Avatar for wildplace

[url]http://i54.tinypic.com/4zymi0.jpg[/url] can someone please explain how does the sizeof() and the mask help me on converting from dec to binary? and also bit shift? this what i got now: i followed the book says to bit-wise & the mask and my input; but the mask is ending with 0s(0x80000). isnt …

Member Avatar for wildplace
0
74