Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
8
Posts with Downvotes
2
Downvoting Members
7
2 Commented Posts
~9K People Reached
Favorite Forums
Favorite Tags

28 Posted Topics

Member Avatar for terence193

in your function you are declaring twice the variables needed. 1st time as arguments and 2nd time when you say [CODE]float number, test;[/CODE] this cleans up the variables and you get zero or memory gabadge.

Member Avatar for panpwintphyu.loo
0
239
Member Avatar for SpyrosMet

Hello, I have this Windows Phone app I need to do that gets information from the Google places API about places that the user searches for. For each place I need to have a pushpin on a bing map I have inserted. The problem is that I'm a newbie in …

0
139
Member Avatar for SpyrosMet

Hey everyone, so I have this project for windows phone i have to do and I have to put some pins on a bing map, but in order to do that I make an API request to google for google places. I get back an XML file and it's like …

Member Avatar for Ketsuekiame
0
3K
Member Avatar for SpyrosMet

Hello everyone. I have a problem trying to develop a windows phone app as a university project. Part of it is to use google APIs. So I'm trying to make a test web request.My code is as follows: string api_request = "https://maps.googleapis.com/maps/api/place/textsearch/xml?query=restaurants+in+Sydney&sensor=true&key=AIzaSyDpXZSLtOeGLJcYwKKJs2yAAEdfLST0ZXs"; HttpWebRequest google_request = (HttpWebRequest)WebRequest.Create(api_request); HttpWebResponse google_response_file = (HttpWebResponse)google_response.GetResponse(); …

Member Avatar for SpyrosMet
0
377
Member Avatar for SpyrosMet

I need to create a simple http client to a web server and my code is the following: [CODE]#include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <errno.h> #include <arpa/inet.h> struct sockaddr_in wserver, cl; struct hostent *rem; int fd, newfd, len, l; int main(int argc, char …

Member Avatar for SpyrosMet
0
378
Member Avatar for SpyrosMet

Hello there everyone, I have been thinking about developing for iPhone and iPad but I don't own a Mac, so I downloaded an installed JEdit on windows 7 to develop in Objective C. I downloaded a few sample codes and I tried to run them but I don't know how …

0
98
Member Avatar for SpyrosMet

hi everyone I have a problem with a server - client project i have built. At first I made it work by forking and using shared memory. Then i had to replace those things with threads and the problem is that i don't know how to attach the client to …

0
62
Member Avatar for SpyrosMet

Hey everyone. I have a problem with 2 strings i need to compare. My code is the following [CODE] if((*(fixedparkpnt)).name == pname) { //do stuff }[/CODE] I am trying to make a search proceedure based on a name given by the user but the condition is always false. I have …

Member Avatar for Agnusmaximus
0
1K
Member Avatar for SpyrosMet

Hi everybody. I need to pass the value of a pointer to a struct for a server program to a client program. my code is the following for the server: [CODE] write(ns, &fixedparkpnt, sizeof(fixedparkpnt)); write(ns, &fixeddriverpnt, sizeof(fixeddriverpnt));[/CODE] and for the client: [CODE] read(sock2, &fixedparkpnt, sizeof(fixedparkpnt)); read(sock2, &fixeddriverpnt, sizeof(fixeddriverpnt)); [/CODE] sock2 …

Member Avatar for SpyrosMet
0
155
Member Avatar for SpyrosMet

Hi everyone. i have an issue with a server program i'm developing for a university project. The issue is the following: The server program i'm building uses shared memory and forks. However i have a problem as to how can i destroy the shared memory segments i've created. A simplified …

Member Avatar for SpyrosMet
0
200
Member Avatar for yuri1969

I'm not sure but i think that you should try *x = "foo"; instead of x = "foo"; because it is a pointer to a string (actually a series of chars) and its values are not chars themselves. they are addresses. I repeat, I'm not sure if right. I'm just …

Member Avatar for yuri1969
0
128
Member Avatar for SpyrosMet

Hi everyone The question i have is: Do i necesarily need to have a mac computer to be able to run mac os or can this be done on any computer other than mac? I'm asking because they are insanely expensive. P.S. A virtual amchine is out of the question. …

Member Avatar for tmkramer
0
238
Member Avatar for SpyrosMet

Hello everyone, Sorry if i'm asking this in the wrong section of the forum (That's because I am a newbie) but i was wondering, if I have a rack for hard drives (I mean the ones used in server rooms) how do I connect these hard drives? Do I need …

Member Avatar for freshfitz
0
66
Member Avatar for SpyrosMet

hello forum I need help in making a function that randomly chooses between two numbers that I give through the parameters. Please give me a hint or something. Thanks in advance guys.

Member Avatar for Narue
0
531
Member Avatar for Zaelis

try using [CODE] scanf( "%s\n", &input ); or scanf( "%s\n", input); [/CODE] instead of [CODE]scanf( "%c\n", &input[81] );[/CODE]

Member Avatar for erantivanisha
0
143
Member Avatar for SpyrosMet

Hello. Can someone tell me what will happen if i have an array Ar[5][5] and a pointer ptr = Ar[0][0] and try accessing the second line of Ar throught ptr by increasing it by 5? I mean ptr+5 ==Ar[1][5] or something else?

Member Avatar for Salem
0
102
Member Avatar for SpyrosMet

I need to make a program that takes one character as an input and instantly continues execution and the time limit for the user to enter that character is 2 or 3 seconds. please help me and if possible ppost an example. Thanks for your help.

Member Avatar for Duoas
0
209
Member Avatar for SpyrosMet

Hello. I need an example of how to pass an array of pointers to objects as a parameter to a function or a constructor. It's urgent. Please help me. Thank you.

Member Avatar for Narue
0
189
Member Avatar for SpyrosMet

My problem is the array Field which is considered by the compiler as undeclared. I declared the array in main and i'm trying to access it through the following .cpp file. animals.cpp : [CODE]#include <cstdlib> #include "organisms.h" #include "animals.h" // class's header file // class constructor Animals::Animals() { } void …

Member Avatar for SpyrosMet
0
132
Member Avatar for mfrancis107

Try using my code: [CODE]#include <stdio.h> int main() { unsigned int n; int k, l; int p = 0; k = 1; l = 0; scanf("%d", &n); printf("1\n"); while((k<=n) && (l<=n)) { if(p % 2 == 0) { l = k + l; if(l <= n) { printf("%d\n", l); } …

Member Avatar for WaltP
0
157
Member Avatar for vicsta

I suppose you're looking for something like that if i am not mistaken [CODE]#include <stdio.h> int main() { int x; printf("Please enter an integer\n"); scanf( "%d", &x); if(x%5 = 0) printf( "\n", x, "is a multiple of 5"); else printf(X, "is not a multiple of 5"); return 0; }[/CODE]

Member Avatar for Narue
-1
105
Member Avatar for abhimanipal
Member Avatar for SpyrosMet
0
264
Member Avatar for SpyrosMet

Can anyone please tell me how to create a simple window? If possible can you provide an example? Thank you.

Member Avatar for Ancient Dragon
0
100
Member Avatar for SpyrosMet

I was wondering if [CODE] *pntr.age = 19;[/CODE] is valid considering that pntr is a pointer to an object that has age as a varible. If it is valid, can it be used with an array of pointers to objects? if yes can i get an example please? thank you.

Member Avatar for mrnutty
0
102
Member Avatar for SpyrosMet

Hello. I need some help with a project of mine and the thing is that I have the class organisms that has two sub-classes: animals and plants. Animals has two subclasses itself: Carnivores and Herbivores. I have succeded in including the plants header file or cornivores header file or herbivores …

Member Avatar for SpyrosMet
0
118
Member Avatar for SpyrosMet

Hello. I'm a newbie and i was wondering if anyone can tell me how to create an array that contains objects and number 0 wherever there is no object. Thanks in advance

Member Avatar for kvprajapati
0
122
Member Avatar for SpyrosMet

the error by the compiler is [code=text]Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\Makefile.win" all g++.exe Untitled1.o plants.o -o "Project1.exe" -L"C:/Dev-Cpp/lib" Untitled1.o(.text+0x182):Untitled1.cpp: undefined reference to `Plants::Plants()' collect2: ld returned 1 exit status make.exe: *** [Project1.exe] Error 1 Execution terminated[/code] main code is [code]#include <iostream> using std::cout; using …

Member Avatar for SgtMe
0
132
Member Avatar for SpyrosMet

Dev cpp gives me the error 18 C:\Dev-Cpp\Untitled1.cpp request for member `setStats' in `plant1', which is of non-class type `Plants ()()' And the same for line 19. Please someone tell me what's wrong. I'm a noob at c++. Thanks in advance. #include <iostream> using std::cout; using std::cin; using std::endl; #include …

Member Avatar for SpyrosMet
0
358

The End.