Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
4
Posts with Downvotes
3
Downvoting Members
3

12 Posted Topics

Member Avatar for westony

I am having this simple script: #!/usr/bin/expect -f set values "#host=CE101 #host=CE102" set found [regexp {[A-Z]{1,2}\d{2,3}} $values CE CE1] if {$found == 1} { puts "px is $CE" puts "vpx is $CE1" } else { puts "\nfailed to match anything from\r\n$values" } puts $found So my problem is that regexp …

0
130
Member Avatar for westony

Hello guys, I am having problem with making tower def game. I am having a class for Turret where it has [CODE]int damage = 65; int x; int y;[/CODE] I am having problem with the function which is going to plant them on the map... Can you give me some …

Member Avatar for nick.crane
-1
144
Member Avatar for westony

[CODE] private void FillList() { listView.Items.Clear(); DataTable dtPeople = GetPeople(); listView.BeginUpdate(); foreach (DataRow dr in dtPeople.Rows) { ListViewItem listItem = new ListViewItem(dr["id"].ToString()); listItem.ImageIndex = 0; // Get child rows from a parent one. // person_name is a name of relation between two // tables. DataRow[] r = dr.GetChildRows("person_name"); if (r.Length …

Member Avatar for nick.crane
0
111
Member Avatar for westony

I am developing an application with Visual Studio 2010. my application works fine in 1024 x 768 resolution but it doesn't fit in my laptop's screen which happen to have 1366 x 768. my question is how to make my application automatically resize according to the resolution ? Thanks !

Member Avatar for westony
0
633
Member Avatar for westony

[CODE]#include <stdio.h> #include <string.h> void proba(char *test) { int i; char det = *test; printf("%s", det); } int main(void) { char datar[] = "asds"; printf("%d \n", datar); proba(datar); return 0; }[/CODE] printf("%s", det); is the problem. When its turn to execute its trowing me out from the app. With "wrong …

Member Avatar for westony
0
110
Member Avatar for westony

Hi there guys, how the hell i am able to create a UNIX window, I mean i am pissed off from that console, and how can I use GTK ? Thanks in advance!

Member Avatar for westony
0
103
Member Avatar for westony

I have this code in here: [CODE]#include <stdio.h> #include <conio.h> #include <string.h> void array_input(int *a) { int i=0,n,p; printf("How many items you wanna input? : "); scanf("%d", &p); for(n = 0; n <= 99; n++) if(*(a+n) != 0) i++; for(i; i<(i+p); i++) { printf("Enter %d number:",i); scanf("%d", &(*(a+i))); } } …

Member Avatar for Shankye
0
111
Member Avatar for westony

Hi, there i didn't even know is that how its called but can you help me and tell me what is that LLIST from the structure into the type function and why its used in this case: [code=c] typedef struct node { int data; struct node *next; /* pointer to …

Member Avatar for abhimanipal
0
163
Member Avatar for reddishmiles
Member Avatar for reddishmiles
0
977
Member Avatar for westony

Can you help me to start with them I cant find any information about them the exactly thing i need its Array of pointers where the pointers are pointing a menu like this idea below. Pls just help me with the syntax ...

Member Avatar for kings_mitra
0
90
Member Avatar for Ray007

[CODE]#include <stdio.h> #include <string.h> struct BOOK { char catalog_number[20]; char title[80]; char author [40]; float price; int year_published; } book[100]; void input_books_info(int number_of_books) { for (int i = 0; i < number_of_books; i++) { printf("%d book catalog number: ", i + 1); scanf("%s", &book[i].catalog_number); printf("%d book title: ", i + …

Member Avatar for farahlyna
0
111
Member Avatar for danswater

[QUOTE=danswater;1284251]Hi guys! I just wanna ask on how to access the first character in a string?[/QUOTE] Ok its my turn :) first you have types of data in your case you can make it in two ways char and int char means that you can input strings and numbers kind …

Member Avatar for danswater
0
101

The End.