15,550 Topics

Member Avatar for
Member Avatar for shariq
Member Avatar for balgarath

okay I am getting segmentation fault whenever I pass more than 300000 ints or so to be sorted....the code works fine for less than this with mergesort quicksort is sorting 100000 fine if they are in random order, but seg faulting if I sort a bigger number, or if the …

Member Avatar for Ancient Dragon
0
540
Member Avatar for mehakkapur

Hello, Can someone help me start my assignment on scheduling a round robin algo for the CPU Module. any help will be appreciated

Member Avatar for mehakkapur
0
65
Member Avatar for gip_mad

Hi all! I have just discovered this very nice website... Thank you all for all the "tips and tricks" posted! I just wanted to ask a little question... I'm writing a program in DOS, it's like a protocol sniffer for the serial port.. But i have a problem, since DOS …

Member Avatar for Ancient Dragon
0
105
Member Avatar for muhaa

Hi guy's i was wondering if any one can help i wat to make a random file generator which will be able to create random file's with random string's in them also i wilkl have to be able to control the file extension..Its for a file fuzzer im working on …

Member Avatar for muhaa
0
130
Member Avatar for joyce_16jo

hey,, i'm joyce, newbie.. I am very stuck in this problem,, had been on it in days. I've tried many prgrams but none seemed to work properly. the objective is to use a function that displays a reversed version of a long integer. e.g. 12345 then display 54321. Out of …

Member Avatar for Salem
0
95
Member Avatar for iubike

First off yes this is for school. I am using a basic program I already have that takes 5 numbers and averages them. I am trying to design a basic program that asks for name (easy), number of grades to calculate, then I input the grades in letter format; a, …

Member Avatar for iubike
0
127
Member Avatar for dhruvisinha

hi, i need the program code and algorithm to find the sum of the sin and cos series, print 1/232/34543/4567654 in the form of a triangle. Please mail me the solution on <removed email as per forum rules> thanks so much.

Member Avatar for andor
0
93
Member Avatar for mitchelltab

I'm having trouble calling my linked list of Insernode. Can some one help me please. I need ot call it when it read teh data from teh file and puts it in the lists. I also need to use the list once i eneter in there data. adn if i …

Member Avatar for Lucanio
0
130
Member Avatar for boujibabe

this program is supposed to evaluate an equation of the form f(x)=ax2+bx2+c using the standard quadratic formula to find x This is what I've done so far [code] check=b*b-4*a*c; //Validate incoming data if (check>0) { x=-b+sqrt(b*b-4*a*c)/2*a; printf("The square root is %.2f",x); } else[/code] My question is how do I properly …

Member Avatar for boujibabe
0
168
Member Avatar for kimw

can anyone offer performance tips to improve the running time ? this function opens a file (a 7000 row by 30 col), and stores each elements in a matrix data . current running time is 4 sec, and i desperately need to minimize the running time as i need to …

Member Avatar for kimw
0
86
Member Avatar for theUnNown1

Can someone tell me how I can draw a diagonal or slanted oval on my form? I know DrawEllipse draws circles that are either straight vertical or straight horizontal....

Member Avatar for iamthwee
0
135
Member Avatar for Line

Helloes! I'm using getrusage to get the usertime and systemtime, but sometimes the times returned are negative --> SELF: user time: 1313366639 microseconds system time: -1547562616 microseconds I'm not sure I've understood getrusage correctly, so I'm posting my code in hope of getting a few tips on how to avoid …

Member Avatar for Line
0
198
Member Avatar for rowly

can any one help with this function how it works ! thanks u [code] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] compare([/COLOR][COLOR=#0000ff]const[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]void[/COLOR][COLOR=#000000] *a,[/COLOR][COLOR=#0000ff]const[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]void[/COLOR][COLOR=#000000] *b)[/COLOR] { data i= *(data *)a;[COLOR=#008000] [/COLOR]data j= *(data *)b; [COLOR=#0000ff]if[/COLOR] (i.Mark==j.Mark) [COLOR=#0000ff]return[/COLOR] 0; [COLOR=#0000ff]if[/COLOR] (i.Mark<j.Mark) [COLOR=#0000ff]return[/COLOR] -1; [COLOR=#0000ff]if[/COLOR] (i.Mark>j.Mark) [COLOR=#0000ff]return[/COLOR] +1; } [/code]

Member Avatar for rowly
0
124
Member Avatar for andriss

[COLOR=#000000]Good day,[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]I need help from you.[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]I have to split and create output files by every 30.000 recordings. [/COLOR] [COLOR=#000000]Example ,[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]Input file has 150.000 (transaction.txt) recordings of bank accounts transactions.[/COLOR] [COLOR=#000000]The C code has to split this file and create output files …

Member Avatar for Ancient Dragon
0
97
Member Avatar for BombAppetit

greetings i'm really stuck now. i'm making a bootloader for my PIC and i can't really tell what is wrong with my simple line of codes. [CODE] counter = 1; for (counter = 1 ; counter <= linelength ; counter++) { output_b(counter); GetAndBurn(counter); if (transmissionflag = 0) break; else; if …

Member Avatar for Salem
0
106
Member Avatar for kissiwat

What am I trying to establish here... jolly good question :eek: Pretty simple piece of code really but can I get this wretched thing to do as its asked - can I as heck... All it needs to do is display the type of clothing to be worn in certain …

Member Avatar for Infarction
0
108
Member Avatar for vitrag

I am Software Engineer......n i m thinkin to develop my carrer in[B]Technical Recruiter(TR)[/B]......is it worthful or not.....:rolleyes:

Member Avatar for vitrag
0
51
Member Avatar for GreenDay2001

well i am a high school student and we'll study pointers within next month and i am trying to understand it right now. but what i could understand is what is its use, advantages and for the most that pointer concept is not very clear to me. so i would …

Member Avatar for vitrag
0
87
Member Avatar for nimmi

plz help me i need code for binary to decimal and using only functions not arrays .

Member Avatar for Salem
0
58
Member Avatar for rowly

hello, i have a problem with printing records[i].M_F on the screen while reading from a binary file. i'll appreciate any help ! THank U [code] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]"stdafx.h" [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<stdio.h> [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<stdlib.h> [/COLOR][COLOR=#0000ff]enum[/COLOR][COLOR=#000000] sex {m, f}; [/COLOR] [COLOR=#0000ff]struct[/COLOR][COLOR=#000000] student { [/COLOR] [COLOR=#0000ff]char[/COLOR] fname[40]; sex M_F; [COLOR=#0000ff]int[/COLOR] S_AGE; [COLOR=#0000ff]double[/COLOR] W; }; student …

Member Avatar for Ancient Dragon
0
106
Member Avatar for Iron_Cross

I've been wondering about console programming. Not the book example type stuff, but the 'real' console programming. Stuff that seems to use things like ncurses, or something like that I assume. I found a good tutorial on what I'm looking for: [url]http://www.adrianxw.dk/SoftwareSite/Consoles/Consoles1.html[/url] but I'm wanting something that goes a little …

Member Avatar for Ancient Dragon
0
189
Member Avatar for morning_star_18

Hi, I have a homework assignment that is giving me some problems. I need to make a pyramid of * with a spaces and n rows long. It should look something like this: ____* ___* * __* * * _* * * * * * * * * I have …

Member Avatar for WolfPack
0
119
Member Avatar for Line

Hey! I'm writing a program and currently having trouble with getting a written line typed in by the user to be copied correctly into another array... I'm using a for-loop to run through the original char-array, but if I type in "Hello" the program will give me this result: Param …

Member Avatar for Line
0
98
Member Avatar for kimw

I would like to implement a function similar to the math function from excel, that is, given a vector and a value in the vector, return the relative position of that value in that container. However, my code [CODE]vector<double> vec; double x = 25.0; int pos = 0; for (int …

Member Avatar for Ancient Dragon
0
96
Member Avatar for tarakant_sethy

hi i m a new member. i have a question. so plz answer me if any one have the answer. how can i delete a node without traversing the linkedlist. let's say want to delete the third node of the linkedlist without traversing it. thank u

Member Avatar for Ancient Dragon
0
77
Member Avatar for sugantha

Hi friends,my prof has just given me the code that changes the size of the cursor.....the code is heavy in the use of registers ,inregs,outregs etc and I dont even know where to start googling from...so can you tell me what inregs and outregs do and just give me a …

Member Avatar for Ancient Dragon
0
100
Member Avatar for gampalu

Do you know where can I find a Class to operate with matrixes with a fast algorithm? (the class should also have the inverse method) thanks in advance

Member Avatar for Ancient Dragon
0
58
Member Avatar for kissiwat

Apparently this was originally posted in the wrong area :rolleyes: :rolleyes: Anyway.... bit of a cheek I know but if you're feeling ultra generous with your knowledge but can anyone write some code in C using if statements for the following: "A car costs a certain amount. If it is …

Member Avatar for Ancient Dragon
0
102
Member Avatar for dev.cplusplus

hi, I have the following problem, I working with the variable "COleDateTime". I have the following code: [code] DATE CurrentTime = COleDateTime::GetCurrentTime(); [/code] This returns the current time of the system Do you know how to add to this current time seconds, minutes, days? Also I need to get two …

Member Avatar for Ancient Dragon
0
629

The End.