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

46 Posted Topics

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
206
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
305
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
169
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
100
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
424
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
159
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
201
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
177
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
355
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
145
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
298
Member Avatar for kshahnazari
Member Avatar for kshahnazari
0
170
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
262
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
116
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
282
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
140
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
375
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
146
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
107
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
77
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
231
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
112
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
112
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
80
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
145
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
111
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
179
Member Avatar for kshahnazari

HI , everyone can you please write a program for me , I have a set with 5 things in it thats line a={1,2,3,4,5} but it could be everything possible and there are subsets like b={1} c{1,2} d{1,2,4,5} but I cant write the progam so if you can write a …

Member Avatar for np complete
0
124
Member Avatar for kshahnazari

Im really new to php so sry for my small answer ? Im reading a book about it and what things this two are ? and what they do ? Numbers_roman::tonumeral($year); and require_once("numbers/roman.php") will be thankfull if a person answers this question

Member Avatar for phorce
0
323
Member Avatar for kshahnazari

I have a simple question about regular expression and Im new to php so sry about my bad questions , what is the meaning of ^ and $ in regular expression and please give examples that if we dont put them it will go wrong . thank you

Member Avatar for kshahnazari
0
175
Member Avatar for kshahnazari

Im so so new to php and sry for my begginer question . <?php $Sal = "HI"; if (preg_match("[a-zA-Z][a-zA-Z]",$Sal)) echo "hi"; ?> this is my code , why doesent the preg_match run and echo "hi"? thank you

Member Avatar for ryantroop
0
141
Member Avatar for kshahnazari

I want to make a program for yahoomail.com that it would go there and click on the e-mails and go to the e-mail and if availeble click on the links in the e-mail ,If you know the second part the better but if you dont the first one will do …

0
58
Member Avatar for kshahnazari

Im making a program that a person comes localy on the program and make a account offlinly , I want that account have something like a premium on that program -offlinly again lol- for something for 24 hours , I want my accounts to be on the sql server , …

Member Avatar for alc6379
0
124
Member Avatar for kshahnazari

hello everyone , i want to make a object or class that has all the button properties and also has a integer x and y . what shall i do , if your responding please write the code

Member Avatar for kvprajapati
0
75
Member Avatar for kshahnazari

I am writing a simple data reader to fill a dropdownlist but i have an error that dont know what it means : [CODE]SqlConnection cmd = new SqlConnection(ConfigurationManager.ConnectionStrings["Mysqlcon"].ConnectionString); SqlCommand rmdd = new SqlCommand("Select Distinct Language from Ready Versions", cmd); cmd.Open(); SqlDataReader mrreader = rmdd.ExecuteReader(); if (mrreader.HasRows) { while (mrreader.Read()) { …

Member Avatar for pritaeas
0
81
Member Avatar for kshahnazari

Hello everyone i am new to c# and i need to know something in graphics . i am writing something like paint but in the bucket part is there any function in graphic to fill a place like paint .

Member Avatar for skatamatic
0
123
Member Avatar for kshahnazari

Hello everyone , I Want to make a news site , I have a sqlconnection but when i want someting between grid view and details View but its more like Details View , my only problem in details view is that i cant put paging number to say like take …

Member Avatar for hericles
0
76
Member Avatar for kshahnazari

Hello everyone I need to record a sound and save it , i cant find anything on the internet so please could you give me some advice about saving a sound and recording it :icon_biggrin:

Member Avatar for catherine sea
0
88
Member Avatar for kshahnazari

Hello everyone , i am new to c# so please don't get upset with my question . I'm working with system.Io look here [URL="http://msdn.microsoft.com/en-us/library/system.io.directory.aspx"]http://msdn.microsoft.com/en-us/library/system.io.directory.aspx[/URL] now what does Directory.CreateDirectory(path); means , why when we have a path we create a directory . please make me understand

Member Avatar for kshahnazari
0
95
Member Avatar for kshahnazari

I am new to c# so please don't laugh at me :icon_biggrin: i have a database called database1 in my program , when i create a setup file and lunch it in another computer because the database isn't attached i will get many errors , how can i attach it …

Member Avatar for hericles
0
93
Member Avatar for kshahnazari

hi everyone , i want to edit , delete and update classes in css with c# . what shall i do?

Member Avatar for thines01
0
131
Member Avatar for kshahnazari

Hi everyone , I want all of System.Drawing.Color in one list box but the colors don't have any numbers . what shall I do ?

Member Avatar for gusano79
0
101
Member Avatar for kshahnazari

hi i have a big problem with this program . it should work because it works in a CD lesson but now it doesn't . then i tried this program and this doesn't work either . it should do this : in the name box a person should enter a …

0
75

The End.