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
~33.3K People Reached
Favorite Tags

44 Posted Topics

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
109
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
114
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
118
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
75
Member Avatar for phummon

cout<<Matrix[ atoi(argv[1]) ]<<"\n"; something i want to say about this line. argv[1] is a char* type and you converting this to an int. doesn't make sense, and it is not related to the enum you defined

Member Avatar for phummon
0
332
Member Avatar for gethelpcpp123

what if you check it this way.. hasAlpha...hasLower are boolean pw is string... for(int i=0; i<pw.length(); i++){ if(isalpha(pw[i])) hasAlpha = true; if(isdigit(pw[i])) hasDigit=true; if(isupper(pw[i])) hasUpper =true; if(islower(pw[i])) hasLower = true; }

Member Avatar for WaltP
0
111
Member Avatar for choosenalpha

take a look at here http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#replace(char,%20char) replace public String replace(char oldChar, char newChar)

Member Avatar for TrustyTony
0
222
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
172
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
127
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
125
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
94
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
121
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
102
Member Avatar for Rickay
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
222
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
108
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
123
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
95
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
155
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
111
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
58
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
63
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
77
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
804
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
77
Member Avatar for Lolecule

wat u was doing is comparing args[x] and "-" refer to the same object, in this case args[x] always different from "-" and .equal() is comparing if they are the same string

Member Avatar for wildplace
0
160
Member Avatar for OffbeatPatriot
Member Avatar for yeezy_10

the program u show is a different story. that is check if they two number u enter are the same. but you're checking a digit from left to right is the same. when u writing ur program, you need a loop to loop thought each character of your input. after …

Member Avatar for masijade
0
205
Member Avatar for ku95

you need to make the rest into a static method, so you can call it Connet4Model.rest(numCols, numRows) in your constructor. static void rest(int numCols, int numRows){...} since your rest method require two int variable, you need two parametesr for your constructor. public Connect4Model(int numCols, int numRows){ Connet4Model.rest(numCols, numRows); }

Member Avatar for wildplace
0
227
Member Avatar for Illidanek
Member Avatar for evak77
Member Avatar for wildplace
0
103
Member Avatar for flyingcurry
Member Avatar for bigsurya

u got nothing in the array.. but u trying to do something with the things inside the array College c[]=new College[n]; for(i=0;i<n;i++) c[i].read(); what is c[i]?

Member Avatar for bigsurya
0
132
Member Avatar for wildplace

i know how to determine if x instanceof aClass. if x is not an instanceof aClass, how can i tell if it it will give me a compiler error or run time error. Consider the following question~ [QUOTE]interface I { ... } class A { ... } class B extends …

Member Avatar for wildplace
0
241
Member Avatar for AcidG3rm5

read it using scanner Scanner in = new Scanner(new File(fileName)); String name = in.next; String one = in.next; String two = in.next; .....

Member Avatar for AcidG3rm5
0
110
Member Avatar for redleafrose

[CODE] public static void main(String[] args){ Staff staff1 = new Staff(); Scanner in = new Scanner(System.in); String name = null; int id = 0; double hour = 0; int rate = 0; System.out.println("enter employee name"); if(in.hasNext()) name = in.next(); System.out.println("enter employee id"); if(in.hasNextInt()) id = in.nextInt(); System.out.println("enter employee hour"); if(in.hasNextDouble()) …

Member Avatar for wildplace
0
95
Member Avatar for student.09

Profile student = new Profile(); Profile base = new Profile("02", "29"); Profile oldestStudent = new Profile("1999", "12", "31"); according to these , you have have 3 constructor in ur Profile class public Profile(){...} public Profile(String month, String day){...} public Profile(String year, String month, String day){...} i wonder if you want …

Member Avatar for wildplace
0
543
Member Avatar for wildplace

[CODE]class calculator: def __init__(self, num, operator): self.__num = num self.__operator = operator def changeNum(self, newNum): a = newNum return a def getNum(self): return self.__num [/CODE] [CODE]def click(num): if num == "one": v = "1" elif num == "two": v = "2" elif num == "three": v = "3" elif num …

Member Avatar for Namibnat
0
105
Member Avatar for wildplace

self.button1 = Button(root, text = '1', \ command = self.buttonAction) self.button1.grid(row = 1, column = 0) self.button2 = Button(root, text = '2', \ command = self.buttonAction) def buttonAction(self): if self.button1 [COLOR="Red"]is clicked/pressed... [/COLOR]: value = 1 how do i express the word in red in python code?!!?? thanks :D

Member Avatar for lrh9
0
129

The End.