Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~18.1K People Reached
Favorite Tags
Member Avatar for kshahnazari

I have an HDC file(that is taken by screen that I want to save it to any image file (prefer Bmp) , the thing is I don't really know the format and any function that I find for saving takes to many function inputs (that must be maximum 2). Any …

Member Avatar for Tajuddin_1
0
5K
Member Avatar for kshahnazari

hey , I'm trying to read a 24 bit bmp file but after reading the first pixel something goes wrong, any ideas? int i; FILE* f = fopen("Sample.bmp", "rb"); unsigned char info[54]; fread(info, sizeof(unsigned char), 54, f); // read the 54-byte header // extract image height and width from header …

Member Avatar for triumphost
0
7K
Member Avatar for kshahnazari

Hi , I have a small 2d array and I want to check if it exists in a bigger 2d array. I have coded it but I don't know what am I doing wrong cause even if exists it won't detect it. 2 arrays are PI and NPI. PI is …

Member Avatar for Hiroshe
0
204
Member Avatar for kshahnazari

I have a c++ program that is writing in a txt file every second and I want to get that data that is being written by c#. so the c++ is only writing and the c# is reading. with my knowledge txt files can't be accessed from 2 diffrent programs …

Member Avatar for Ketsuekiame
0
301
Member Avatar for kshahnazari

this might be a simple question so accept my appolegises , I am creating a 2 dimetional pointers to int and I want to release the memory at the end but I think I'm doing It all wrong and all of the memory isn't being relaesed. int **a; a = …

Member Avatar for rubberman
0
168
Member Avatar for kshahnazari

I wanted to start learning to scrap data from web and someone told me to use [htmlunit](http://htmlunit.sourceforge.net/gettingStarted.html) if you go the the website the first page is using java to run the htmlunit and there is no example about how to add the htmlunit jar files to javascript and how …

Member Avatar for pritaeas
0
98
Member Avatar for kshahnazari

I'm just learning jquery , The thing is that how can I make jquery and php contact each other in one single page ? if there is an example I really appreciate it!

Member Avatar for Patrick Thomas
0
308
Member Avatar for kshahnazari

its maybe a really dummie question but I was wondering is there any way to create a file (like txt) that the program can use its data but the users can't access it ? sql is an option but the data aren't large enough to be used. is there any …

Member Avatar for deceptikon
0
156
Member Avatar for kshahnazari

Hi , The question is in the topic , the thing is that the sources now availabe in web are old and dont work anymore , I want to connect to a usb port meaning like "Com4" port and send commands a get data from that port , anyone know …

Member Avatar for kshahnazari
0
195
Member Avatar for kshahnazari

There is a big problem , when I go into my website with the url www.xxx.com the cookies go into the www.xxx.com and when I go with xxx.com the cookies place is xxx.com meaning that its diffrent from the first one , how can i set and get the cookies …

Member Avatar for GliderPilot
0
175
Member Avatar for kshahnazari

I have a ajax fucntion that gets a json array from the php , 8 numbers formed like this ["0","0","0","0","0","0","0","1"] , As I get this in a var called data , data[0] and this kind doesen't work , how can I access this numbers ?

Member Avatar for Bachu
0
347
Member Avatar for kshahnazari

$link = "http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=90A1173C22358704FA80D2070D9C987C&steamids=76561198081118741" $file = file_get_contents($link); echo $link; echo $file; I have coded this php , when it runs the link and the file are echoed but the link is right (also I know its correct) but the file echo gives nothing , when I go to the link a …

Member Avatar for anthonydaly
0
143
Member Avatar for kshahnazari

I'm working with openid library and one thing has been bodering me. <?php # Logging in with Google accounts requires setting special identity, so this example shows how to do it. require 'openid.php'; try { # Change 'localhost' to your domain name. $openid = new LightOpenID('localhost'); if(!$openid->mode) { if(isset($_GET['login'])) { …

Member Avatar for Atli
0
292
Member Avatar for kshahnazari
Member Avatar for kshahnazari
0
169
Member Avatar for kshahnazari

I was writing a data structure but suddenly after a little coding a strange error gives that no operator">>" matches these operends and also no operator"=" matches these operends . its just after if (right==1) in the cin>>a[i] and a[i]= mininfinitive the code : #include <iostream> #include <iomanip> #include <fstream> …

Member Avatar for Moschops
0
254
Member Avatar for kshahnazari

Is there any command in c# to make a c++ program run (no need to return a value and ...) ?

Member Avatar for Ketsuekiame
0
69
Member Avatar for kshahnazari

hello programmers . I have a question not a syntax one but I need it for speed in contests we have a 3x3 array and when we call a number it add to itself and around him +1 but in many casses like [0][1] when we want to add around …

Member Avatar for ravenous
0
114
Member Avatar for kshahnazari

Hey guys I just learned how to work with header files but I have a simple error . I suggest you guys dont look at gameboard.cpp because it just runs fine with ubuntu and no errors with it. my problem is when I run the main it gives the eroor …

Member Avatar for Moschops
0
277
Member Avatar for kshahnazari

I have a simple question about this code struct a { char key; a *next; }; a = here*; and in the function I check if here is NULL or not if (here->key==NULL) ... and Im sure here is pointing to an a(struct) but it gives access violation . what …

Member Avatar for deceptikon
0
137
Member Avatar for kshahnazari

I'm new to php and I'm trying to download a webpage text(no need to seperate the data with elements or things like that). Could someone Give a simplized php program (using curl) so I can Get to know it more like the syntax things . for example could someone download …

Member Avatar for pritaeas
0
372
Member Avatar for kshahnazari

I have a recrusive program -Im new to it!- that gives all the possible ways to make a money to smaller coins for example : we want 10$ the coins are 5$ , 2$ , 1$ we can give 1 5$ , 2 2$ , 1 1$ or only 10 …

Member Avatar for Gonbe
0
145
Member Avatar for kshahnazari

Im trying to open a txt file to write into it . heres the warning : Warning: fopen(C:\inetpub\wwwroot\testFile.txt): failed to open stream: Permission denied in C:\inetpub\wwwroot\get.php and heres the code $fh = fopen("C:\\inetpub\\wwwroot\\testFile.txt" , 'w'); fwrite($fh, "PHP"); what am I missing ?

Member Avatar for pritaeas
0
104
Member Avatar for kshahnazari

I want to get some datas from a php file that the data changes every 10 min . With what framework should I do it or is there any book that tells how to do this simpely ? please consider this That Im not familier with php and I want …

Member Avatar for pritaeas
0
75
Member Avatar for kshahnazari

I am trying to write a function that helps to find a smaller 2D array in another one . I wrote it but the problem is that it always finded the array when it didnt exist . the only thing I want is that to say does it exist or …

Member Avatar for mrnutty
0
222
Member Avatar for kshahnazari

have a simple question about working with files . when Im reading a txt file like this example Hello how are you. fine thank you. when I read it how can I find out there was an endline or not ?

Member Avatar for deceptikon
0
108
Member Avatar for kshahnazari

Im new to C# and I only want to know how to set an objects tag to a number for example button a= new button(); a.parent=this; ... a.tag=12; (but it says it must be an object and I dont want to pass an object to it , any int to …

Member Avatar for Momerath
0
106
Member Avatar for kshahnazari

Can someone help me with a funtion that find a string in another one ? the example is string a= "hello how arsdddf" , b = arsdd ; I want a funtion that if b exists in a gives me the number that begins with it like it must give …

Member Avatar for L7Sqr
0
79
Member Avatar for kshahnazari

Have a question , if we can compare two arrays for equality like this #include <iostream> using namespace std; int main() { int a[5],b[5]; for (int i=0;i<5;i++) { cin>>a[i]; cin>>b[i]; } if (a==b) cout<<"they are equal"; } as you see isnt there a way like this or a function to …

Member Avatar for L7Sqr
0
141
Member Avatar for kshahnazari

Im training for olaympiad and need a little of your help to know useful functions that You use . one of an important things I need , Is that to take a number base 10 to base 2 for example : 66 (base 10) , 1000010 (base 2) if available …

Member Avatar for deceptikon
0
108
Member Avatar for kshahnazari

hey guys reading deitel book and have a little problem with the code that I cant understand #include <iostream> using std::cout; using std::endl; #include <iomanip> using std::setw; int main() { // define array sizes const int responseSize = 40; // size of array responses const int frequencySize = 11; // …

Member Avatar for NathanOliver
0
176