Search Results

Search: Posts Made By: GQiang
Forum: Programming 07-21-2012
3,966
Posted By GQiang
Client Server programming
Hi

Could someone give me some advise, basically i am learning UDP client server programming. I understand how to do send and receive between client server
( learn from this site Sending and...
Forum: Hardware 06-21-2012
2,117
Posted By GQiang
Hi Cornona thank for the reply, i using...
Hi Cornona

thank for the reply, i using gparted for the partitioning, i believe i cannot reorder the partitions (maybe is i too noob). Can i do it with fdisk? i'm not good with fdisk can you guide...
Forum: Hardware 06-20-2012
2,117
Posted By GQiang
Bootable thumbdrive
Hi all!

I trying to modify my bootable thumbdrive to be seen in window OS when i plug in. I did a FAT32 partition for it but it seem like!

"windows only recognizes the first primary partition...
Forum: Programming 11-07-2011
1,213
Posted By GQiang
I have solve my problem!! ...
I have solve my problem!!

for(unsigned i=0;i<store.size();i++){
temp=store[i]->getID();
if(temp==input){
delete store[i];//free the memory to...
Forum: Programming 11-07-2011
6,198
Posted By GQiang
If i am not wrong the system call u talking about...
If i am not wrong the system call u talking about should be shell programming? As for the set permissions are u toking about file permissions(Read write execute). Give more information if not it hard...
Forum: Programming 11-05-2011
1,213
Posted By GQiang
Polymorphism delete vector problem
Hi all

Really need some help here, i have a vector of pointer "vector<*e.g>store" i need to delete one of the chosen container and it seem like the normal way of deleting a vector cannot work!
...
Forum: Programming 08-10-2011
2,713
Posted By GQiang
fget() have buffer problem like u say... it take...
fget() have buffer problem like u say... it take in my whole buffer.. i dont understand your solution can give an example?? btw why say using scanf is overkill... i totally noob in C thank for your...
Forum: Programming 08-10-2011
2,713
Posted By GQiang
Hi ALL!! I solve my own qn... ...
Hi ALL!!
I solve my own qn...

scanf("%[^\n]s",input);
put a space before the % and the loop will go in to scanf =) hope it help people in further need
Forum: Programming 08-10-2011
2,713
Posted By GQiang
C While Loop not working like C++
Hi new to C give me a hand thank.


do
{
bzero(input,256);
printf("Please enter the country name!");
scanf("%[^\n]s",input); //& character is essential for...
Forum: Programming 08-07-2011
2,087
Posted By GQiang
YES!!!!!!!!!!! THANK YOU YAZU FOR EVERYTHING DONE...
YES!!!!!!!!!!! THANK YOU YAZU FOR EVERYTHING DONE DONE DONE
Forum: Programming 08-07-2011
2,087
Posted By GQiang
er met another problem. do /* Loop until...
er met another problem.

do /* Loop until user input exit */
{
//My work
printf("Please enter the country name!");
scanf("%399s", input); //& character is essential for...
Forum: Programming 08-06-2011
2,087
Posted By GQiang
Ok i get what your trying to say but char input...
Ok i get what your trying to say but char input [400] is not a pointer why cant i

scanf("%s", &input);

and also what is

%s399

i understand that

%f

is float then

%s
...
Forum: Programming 08-06-2011
2,087
Posted By GQiang
Sry but i dont get what you mean. In scanf i did...
Sry but i dont get what you mean. In scanf i did try what you say using "input" instead of "&input". What is the & for?? I put the & because i read a book saying that
& character is essential for...
Forum: Programming 08-06-2011
2,087
Posted By GQiang
C* && C[400]
I am normally a Java programmer, super noob in C. I got a noob question here


char input[400];
printf("Please enter the country name!");
scanf("%s", &input); //& character is essential for...
3,269
Posted By GQiang
Wah i really got alot more to learn, the way of...
Wah i really got alot more to learn, the way of writing so way different from Java and C..
A big thank to you for your time and effort... thank thank
3,269
Posted By GQiang
Ok the 2nd 1 work thank man. Just to clear my...
Ok the 2nd 1 work thank man. Just to clear my doubt how do u know where to put the [] is there a standard way?? and also when do i use == instead of -eq.Lastly u will saying there are different shell...
3,269
Posted By GQiang
Thank!! shell really different from other...
Thank!! shell really different from other programming language haha
If you dont mind can i ask you another double condition problem i having??


while [ "$author" == "" -o "$title" == ""]; #User...
3,269
Posted By GQiang
( [!0-9]|"" ) Y cant i just do this??
( [!0-9]|"" )
Y cant i just do this??
3,269
Posted By GQiang
Wow radoulov this work like charm can i ask you...
Wow radoulov this work like charm can i ask you something i am actually very new to shell. Why when you set a condition for it to check number you put wild card symptom in front and behind
3,269
Posted By GQiang
menu.sh: line 260: syntax error near unexpected...
menu.sh: line 260: syntax error near unexpected token `fi'
menu.sh: line 260: `fi '

i also using dash(posix shell)
3,269
Posted By GQiang
Erm yazu yours code have the same problem as my,...
Erm yazu yours code have the same problem as my, i do not know why but it seem like every time there double condition it will alway have interpretation problem for shell. My code can also work stand...
3,269
Posted By GQiang
Double condition
I trying to prevent user from entering empty string and alphabet, but i can do only on of either one cannot seem to make a double condition =.= Any one can help me?? Thank in advance


while expr...
1,096
Posted By GQiang
OK done i know le THANK!
OK done i know le THANK!
1,096
Posted By GQiang
Sed not working the way i want it
I dont get something about sed

If i have a text file inside contain a:a:a:a:a
sed "s/"$title:$author:$price:$qtyAvailable:$qtySold"/"$Ntitle:$author:$price:$qtyAvailable:$qtySold"/"

This...
1,152
Posted By GQiang
Curious
I dont get something about sed

If i have a text file inside contain a:a:a:a:a
sed "s/"$title:$author:$price:$qtyAvailable:$qtySold"/"$Ntitle:$author:$price:$qtyAvailable:$qtySold"/"

This...
Showing results 1 to 25 of 30

 
All times are GMT -4. The time now is 11:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy