381 Posted Topics

Member Avatar for nateuni

[QUOTE=firstPerson;961968]Your a cocky girl huh?[/QUOTE] Don't mess with Narue. Look at her avatar, you will get some idea :sweat:

Member Avatar for mrnutty
0
214
Member Avatar for invisal

Recently, I have wonder how to execute machine code instruction from memory in C/C++. I am aware of data execution protection. Anyway, I have this piece of code: [code=cplusplus] int main() { // allocate 2 bytes for storing machine code char* mc_add = (char*)malloc(sizeof(char)*2); int reg_eax; // for storing register …

Member Avatar for MosaicFuneral
0
266
Member Avatar for glahh

Took me 5 minutes to indent your code [code=cplusplus] /*This program removes duplicates from a sorted array of integers*/ #include <stdio.h> #include "genlib.h" #include "simpio.h" #include "strlib.h" #include "math.h" #define size 100 #define sentinel 0 void getArray(int arr[size]); int maxCycles(int arr[size]); void sortArray(int arr[size],int cycles); int indexMin(int arr[size],int low,int high); …

Member Avatar for glahh
0
109
Member Avatar for sotvisal

Control array simply is a group of control that share the same name, same type, and same event procedures that increase flexibility of Visual Basic 6: [LIST=1] [*]Being share the same name and same event procedures allows VB6 programmer to reduce the amount of code. [*]Able to create new element …

Member Avatar for invisal
0
4K
Member Avatar for dgr231

You can't simply compare 2 strings with operator ==. There is a function in library <string> called strcmp(). [code] Syntax: int strcmp(string1, string2) Return: Return 1 if string1 > string2 Return 0 if string1 == string2 Return -1 if string1 < string2. [/code]

Member Avatar for dgr231
1
157
Member Avatar for MrNoob

[B]1.[/B] Why create this function when you can simply compare two characters with operator ==. [code] int Check_Characters(char s1,char s2) { if([COLOR="Red"]s1==s2[/COLOR]) return 1; return 0; } [/code] [B]2.[/B] You have made same mistake again like your last post. First, you assign [icode]num = i[/icode] so that also mean [icode]num[/icode] …

Member Avatar for MrNoob
0
135
Member Avatar for Hiroshe

[B]kbhit() [/B]function is in [B]conio.h[/B] library and [B]conio.h[/B] is not a standard library which is not what Hiroshe want

Member Avatar for Duoas
0
2K
Member Avatar for Hiroshe

Learning AI is already existed except it is built to serve their specific purpose. I haven't seen any learning purpose-less AI.

Member Avatar for Hiroshe
0
206
Member Avatar for MrNoob

Here is your code and its logical error. [code] int RemoveChars(char *S,char c) { int i=0; int spaces=0; char temp; for(i=0;S[i]!=0;i++) { [COLOR="Red"]temp=S[i];[/COLOR] if(S[i]!=c) { [COLOR="Green"]// temp = S[i] and S[i] = temp, Hence, S[i] = S[i][/COLOR] [COLOR="Red"]S[i]=temp;[/COLOR] putchar(temp); } else spaces++; } return spaces; } [/code] So basically, the …

Member Avatar for MrNoob
0
172
Member Avatar for zsady

Sorting concept is simple: from the least to the greatest or from the greatest to the least. To do so, you need to do comparison. So, the magic trick is comparison-rule (which is greater and which is lesser). For example: we got 5 points (consisting of x-axis and y-axis). [code=cplusplus] …

Member Avatar for mrnutty
0
105
Member Avatar for MrNoob

[QUOTE=MrNoob;937283]it just returns 1 not more than that for int *num for first function[/QUOTE] How could *num go beyond 1 when your code does not allow it to go beyond that. [code] char *Strchr(char *String,char c,int *num) { char *ptr;//whish will be ptr to first stuff we found after that …

Member Avatar for Dream2code
0
231
Member Avatar for ju_10_ve

If you truly understand the concept of doubly-linked list, these problems would be very easy. Lets start with basic doubly-linked list concept. Doubly-linked list data structure consist of 3 important components: set of data, pointer to address of previous data (*prev), and pointer to address of next data (*next). When …

Member Avatar for invisal
0
164
Member Avatar for SP IT

[code] while (tryanother [B][COLOR="Red"]=[/COLOR][/B] 'y') [/code] Change = to ==

Member Avatar for SP IT
0
105
Member Avatar for SP IT

[QUOTE=SP IT;901543]Yes. I just do not understand the logic that goes into the program.[/QUOTE] Posting the whole assignment will not help you or help us know what you have problem with. If you do not understand the logic, tell us which part that you don't understand. Tell us more about …

Member Avatar for SP IT
0
205
Member Avatar for ShaneM
Member Avatar for invisal

* [B]Edit:[/B] Sorry about double negative on the title, I don't know how to edit it back First of all, I am fairly new to Microsoft Access VBA. I created a form with 2 textbox (txtUsername and txtPassword) and one label act as button (I use label instead of button …

0
81
Member Avatar for ProgrammersTalk
Member Avatar for NekoGráfico
Member Avatar for MosaicFuneral
0
163
Member Avatar for lilprincess

What is your website about? How about article contest? Who write the best article will recieve the special award.

Member Avatar for mackone
0
184
Member Avatar for bling_bling_vr6

My algorithm is a little bit different. First, I generate the random number into the array in order. Then randomly swap the array elements to make it disorder. For example: I want to generate 11 unique numbers from range of 1 to 1000. Firstly, I would fill my array with …

Member Avatar for kitf84
0
3K
Member Avatar for invisal

I am trying to make a simple engine with WinAPI and I encounter this problem: [code] class Window { .... public: [COLOR="Red"]static HINSTANCE hInst;[/COLOR] .... }; .... .... .... int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MSG msg; [COLOR="Red"]Window::hInst = hInstance;[/COLOR] .... .... } [/code] The …

Member Avatar for invisal
0
245
Member Avatar for AcidG3rm5
Member Avatar for srivtsan
Member Avatar for steven woodman

I do not know much about physic. However, I have recently read wikipedia about "Environmental effects of wind power". It points out a few disadvantages of windfarm. I will quote only the important parts: [LIST=1] [*][quote] Wind power consumes no fuel for continuing operation, and has no emissions directly related …

Member Avatar for sneekula
0
2K
Member Avatar for cicigirl04

It is quite simple. User input the value into [icode]number[/icode] not [icode]A[number][/icode]. So it should be [icode]sum = sum + number[/icode].

Member Avatar for DaJoker
0
283
Member Avatar for ~s.o.s~

[QUOTE=TheNNS;653392]it's bullcrap. if you're gonna post something funny, make sure IT IS funny.[/QUOTE] It is not funny for you, but it is funny for us.

Member Avatar for sneekula
3
427
Member Avatar for FragFighter

[QUOTE=FragFighter;676644]Well, the release date is set for the first of September. Please let me know if you wish to be a tester.[/QUOTE] You can alway post your game here and we will give you comment. :)

Member Avatar for FragFighter
0
140
Member Avatar for zabr

[QUOTE=zabr;677518]I know how to make the flow of the program, my only problem now is the conversion from hex to dec and oct to bin.[/QUOTE] Do you, youself, know how to convert from hex to dec and from oct to bin? If you know, then program your program to do …

Member Avatar for Aia
0
127
Member Avatar for BattlingMaxo

Blender3D is a 3d modeling tool, while [URL="http://en.wikipedia.org/wiki/Game_Blender"]Game Blender[/URL] is a tool to create a 3d application.

Member Avatar for msk88
0
154
Member Avatar for gregorynoob

Please explain it more clearly. I don't seem to understand what are you trying to do.

Member Avatar for gregorynoob
0
172
Member Avatar for dpaxton

[QUOTE=tiger86;676803]I have reached a new level of geek today one I will never forget! one of my blogs on daniweb became a featured blog and then was picked up by googles news and was on google top news stories![/QUOTE] Congraulation!

Member Avatar for Lardmeister
0
158
Member Avatar for kidda
Member Avatar for Lardmeister
0
46
Member Avatar for takuna
Member Avatar for invisal
0
53
Member Avatar for llmoney87

[QUOTE=llmoney87;676793]hello everyone[/QUOTE] Welcome to Daniweb. You should introduce more about yourself here. For example, where are you from? what do you do? etc...

Member Avatar for invisal
0
30
Member Avatar for omol
Member Avatar for invisal
0
53
Member Avatar for chanthan
Re: Hi

Look like I am not the only Cambodian here. Hi from Cambodia here.

Member Avatar for wilstraw
0
136
Member Avatar for scream2ice

[QUOTE] By the looks of it, you're supposed to manually manage the numbers. Edward's first attempt would probably use strings to store the numbers and then handle the arithmetic just like it's taught in elementary school with digit by digit calculations and saving of the carry or borrow values. That's …

Member Avatar for invisal
0
331
Member Avatar for nobi

If [B]^[/B] is a exponentiation operator, then the [icode]sum[/icode] will be equal to the [icode]MyByte[/icode]. If the [B]^[/B] is a XOR operator, then the [icode]sum[/icode] depend on [icode]MyByte[/icode] Since: [code] [B]ABCD[/B] represents for MyByte binary. ABCD & (0010 ^ 0000) = 00C0 (it can be 0 or 2) ABCD & …

Member Avatar for invisal
0
245
Member Avatar for disturbedfan

How about try this code: [code=cplusplus] #include <iostream> int main() { std::cout << "Hello World"; std::cin.get(); return 0; } [/code]

Member Avatar for gregorynoob
0
145
Member Avatar for The Buzzer

We don't even know what is your project? and what were your problems with the project. At least, give us more detail about your project and what you have done so far.

Member Avatar for The Buzzer
0
65
Member Avatar for loken

[LIST=1] [*][URL="http://nehe.gamedev.net/"]Nehe OpenGL Tutorials[/URL] [*][URL="http://www.ultimategameprogramming.com/demoDownload.php?category=OpenGL&page=1"]Demo of Simple OpenGL code[/URL] [/LIST]

Member Avatar for suszen
0
197
Member Avatar for LuckyMan

I don't really like VB.NET, so the code is in VB6 [code] Function WordCounter(words) As Integer Dim strTemp As String Dim counter As Integer strTemp = Split(words, " ") counter = UBound(strTemp) For i = 0 To counter If strTemp(i) = "" Then counter = counter - 1 End If …

Member Avatar for Soulrage
0
435
Member Avatar for lil_panda

[URL="http://www.daniweb.com/forums/thread63827.html"] Game Development FAQ's, Books and Resources[/URL]

Member Avatar for invisal
0
239
Member Avatar for Redmarketeer
Member Avatar for invisal

I have argued with this guy for hours. In this conversation, I am [B]Silence[/B] and he is [B]link[/B] [code] [22:24] <link> Silence, how many times do you hack? [22:24] <Silence> link: hack me if you can [22:24] <link> I thought you were a programmer, yet you told me to hack …

Member Avatar for Ancient Dragon
0
388
Member Avatar for The Dude

I have listened to it and I feel... I don't know... I feel normal. Maybe I've missed some points. hm....

Member Avatar for GrimJack
0
75
Member Avatar for 88supra86
Member Avatar for 88supra86
0
140
Member Avatar for redrum237

You might wonder why your problem hasn't been answered. It is obvious that you haven't use the code tag which make it very unfriendly to read your code. I recommend you to tag your code and post your error messages. Here is the key of having a successful question: (if …

Member Avatar for redrum237
0
147
Member Avatar for The Dude
Member Avatar for gangsta gama

The End.