19,876 Topics

Member Avatar for
Member Avatar for 0xCoTiNe

I wrote a code which a crossword and a word are inputed and the cord of the beginning of the word are printed out and I keep getting the "Run-Time Check Failure #2" error at the very end. [CODE]#include <stdio.h> #include <string.h> int BottomBorCheck(int index); int TopBorCheck(int index); int main() …

0
59
Member Avatar for dani2010

I need help with the two dimentiona array because this is a big program to start learning this. Here's what i have so far. [CODE]#include <iostream> #include <cstdlib> #include <cstddef> //typedef char* CharArrayPtr; //CharArrayPtr a; //a = new char[number_of_rows]; int NO_ROWS = 7; typedef char* SeatRow[4]; typedef SeatRow Seating[NO_ROWS]; //Seating …

Member Avatar for dani2010
0
977
Member Avatar for adudefelldown

Hi, in standard C, I'm trying to use my redblack tree code along with other data structures for my project. I currently have everything working (as far as I can test atleast) except the red-black tree. The red-black tree is in its own file redblacktree.c and main is in its …

Member Avatar for phpbeginners
0
125
Member Avatar for tien113

hi u I have a project combine a raytrace with SDL library but I dont know how to do... can you help me??? this is all source code of my raytrace: [CODE]http://tinypaste.com/6247b[/CODE] and SDL library on the internet: [CODE]http://www.libsdl.org/[/CODE] thanks...

Member Avatar for tien113
0
79
Member Avatar for jitu44

How can find the repitition of a number from a given array with less time complexity(<N)?

Member Avatar for mrnutty
0
77
Member Avatar for Iam3R

Hi, i dont understand the following; PLZ fix me. when i try to change the character pointed by pointer the behaviour is undefined. but when i change the same by using pointer as formal parameter of function it will be ok. why i cant change the base address of array, …

Member Avatar for Iam3R
0
122
Member Avatar for Spreegem

So I have to make a greedy algorithm to find the fewest number of coins needed to make change for any n cents. I have an infinite number of quarters(25 cents), dimes (10 cents), nickles (5 cents), and pennies (1 cent). This is the algorithm I came up with, it …

0
54
Member Avatar for srvishnukumar

Hi Friends, I dont Know That how to view the data [ie : Fill the datas] from Gird to textbox.... Plz Explain me With Example Thanks with Vishnu

Member Avatar for Silverfox13
0
123
Member Avatar for haiconsoba

Tilox game.I have to write the programe of game plan.I need help about idea.(Graphic use GDI)

Member Avatar for William Hemsworth
0
56
Member Avatar for Fredczj

Hi all, I face a problem using gcc and ld on embedded target. I just want to declare a constant value (designed to be located in flash memory), and I want to have it compile, linked and allocated in my output file. For instance: [CODE]const volatile unsigned long myvar __attribute__((section(".flashdata"), …

Member Avatar for gerard4143
0
193
Member Avatar for Hiromi

Hello i am trying to implement a wordPuzzle but i am having trouble with the last two functions that i need to implement. this is what i am doing. as i'm reading the dictionary from a text file i am checking the length of the word and according to its …

-1
61
Member Avatar for coollife

is it possible to develop a c program which gets the shell windows and fetches the address bar or internet explorer url or a unique id specific to a website . solution solutin solution PLEASE

Member Avatar for jephthah
-1
84
Member Avatar for lisedaton

hi everybody!... so i have this assigment for monday and im having trouble with it... the program in c should get: input: a sentence.....nanny do you have any cheap peach... and it should print the "same" words...: nanny any cheap peach ..they are called "same words when they get the …

Member Avatar for Murtan
0
88
Member Avatar for chester1908

Hey all. (the reason i dont post code is a)because i think its far too long because the whole program is not just about that and b) because i think you might be able to help me w/o code,as it is kind of wierd problem)~~ So i wrote this program …

Member Avatar for Murtan
-2
268
Member Avatar for hassedo

hi, i am computing for a determinant(k.det) of a matrix in my program. at first i was using int and everything worked fine however we were required to use double for the matrix, however, when i used double, the formula won't work any more for getting the determinant of a …

Member Avatar for Dave Sinkula
-1
83
Member Avatar for stewie griffin

Im working on shell like software under Linux, In my shell the main process print ">>" than the user enter the command. The main process forking new process that will execute the command And than new ">>" will be printed To run the wanted command im using execl (I have …

Member Avatar for nezachem
0
124
Member Avatar for titosd

Hello, I have a problem in my program I want to check the input if it's a number or not the number Component of N boxes for example if N=4 the input 1234 is valid the input 123a is invalid i try with this code [CODE]printf ("Please enter guess no.%d …

Member Avatar for anonymous alias
0
171
Member Avatar for Almutamarred

I need to solve this question rapidly please I need you help>>>>>>>>>> Write a C program to create and manipulate a one dimensional array (list) of up to a hundred sorted ( ascending order) numbers by using functions to insert, remove, or print elements as follows: - Function insert : …

Member Avatar for Almutamarred
-4
147
Member Avatar for bgspace

Hello I have a little problem. I have to make a single task for the school. Here the condition of the task: Elaboration of a program with which to process the source texts of arbitrary C progams, saved as file structures. Should be created and creates and displays statistics on …

Member Avatar for jephthah
1
326
Member Avatar for n3r3d

I have this class : int br=0; // br is counter how much records i hold in my vector [CODE]class racunalo{ public: void upis(string naziv, string velicinaRam, string velicinaHDD, string brzina, string proizvodac); void upisKomp(); string getNaziv(int s) const; void pregled(); void upisDat(); void pregledNaziv(); void pregledProizvodac(); void brisanjeRac(); string …

Member Avatar for n3r3d
0
195
Member Avatar for Alibeg

I'm new to this editor, i used Dev-Cpp, and i heard this is a better tool to program with. Problem is that Code::blocks wont compile this: [code=CPP] #include <stream.h> main () { cout << "Hello world!\n"; } [/code] I switched to Code::blocks mainly because i'm using linux and i cannot …

Member Avatar for chris_mccabe03
0
609
Member Avatar for harshchandra

This program takes two decimal number from the user and a operator for addition or substraction.it displays the binary equivalent of both number and also the added or substracted binary number .

Member Avatar for Nick Evan
-2
614
Member Avatar for Micia

please help me, i'm a student..our teacher wants us to make a program that will merge two arrays into one and sort it into ascending order, but she didn't taught us how to..please give me an example code?

Member Avatar for xavier666
0
193
Member Avatar for 49ersfan

Hello, I am trying to pass a 2d array of a struct to a function. Sadly, when I pass the array to the function, only the first row appears to get passed. Every other row's values are set to zero (or in the case of the code snippet I provided …

Member Avatar for 49ersfan
0
1K
Member Avatar for Dave Sinkula

In [URL="http://www.daniweb.com/forums/post1071291.html#post1071291"]another post[/URL] I found the following construct: [CODE]#define STATIC_ASSERT(condition) \ do \ char foo[condition] = {0}; \ while ( false );[/CODE] First, I had to do a [URL="http://clusty.com/search?query=static%20assert%20compile%20time"]search[/URL] to see whether "static" meant "compile-time" here (that poor keyword [I]static[/I], it's got too many overloaded meanings in C and C++). …

Member Avatar for jephthah
1
184
Member Avatar for charlichickxx

hello, I am trying to write this code to solve the josephus problem. All I am getting is Segmentation Fault(coredump)? i am assuming its something to do with me using calloc but i cant tell what i've done wrong? any suggestions? thanks! [code=c] /*program to give solution of josephus problem …

Member Avatar for jephthah
0
763
Member Avatar for lisedaton

Hi everybody, so I need to give this huge proyect on monday. Its a proyect that includes another 6 in it and i already did 5 and Im missing one witch im stuck with and I just cant anymore (have been working on it 24/7 since we receive the assigment) …

Member Avatar for jephthah
0
95
Member Avatar for wingers1290

Hi, I have a list box that on form load displays file names inside a directory using this code [code] DirectoryInfo di2 = new DirectoryInfo(path); foreach (FileInfo fi2 in di2.GetFiles()) { listBox1.Items.Add(fi2.Name); } [/code] Which works fine, however i have another function on my form which adds files to the …

Member Avatar for DdoubleD
0
292
Member Avatar for Draculaboy1014

SO here is the code I need help with, basically I need to write a program that cheks if 5 words from a input document are in a dicionary document both .txt files I made, I really tried but cant find where to start, any help would be appriciated. [CODE] …

Member Avatar for jephthah
0
146
Member Avatar for jodie121997

Hi All, I have the function that need to be type cast the void point to different type of data structure. Is there any way to do that with the name of structure and the void pointer. For example I have the follwowing data structure: [code] typedef struct struct_a_s u_int16_t …

Member Avatar for Narue
0
503
Member Avatar for eissen_eiram

i have this program and i'm already done with the data entry, search, display and exit menu.. my only problem is my search and delete and the search and edit...please help me. i've attached my unfinished program here: Programming Assignment: Write a program to simulate a telephone directory. The user …

Member Avatar for jephthah
0
157
Member Avatar for xavier666

During run-time of a menu driven program, I want the user to see what option the user has entered. Something like this :- [CODE][OUTPUT] . . . Enter Option : [1] <- [I]User given[/I] Press Any Key To Continue ... [_] <- [I]Blinking Cursor[/I] . . . [/OUTPUT][/CODE] After I …

Member Avatar for xavier666
0
157
Member Avatar for endofworld201
Member Avatar for xavier666
-1
105
Member Avatar for speedy94519

Hello im having trouble understanding between the difference 0 and 1 in C. the way i understood it is that 0 is true and 1 is false. Is this correct??? or is it 0 is false and 1 is true??

Member Avatar for Narue
0
295
Member Avatar for hassedo

hi i am new to c/c++ i am making a program for a project in class i have only started the program it still has no content, only structures however when i compiled and run it in C the first printf wont display in the .exe there are no errors …

Member Avatar for hassedo
0
94
Member Avatar for coolfriends

Hey everyone, I am working on this integer decomposition problem that I cant figure out. I would really apperciate your help on this. Here is the problem: It is known that every integer n greater than 17 may be written as the sum of three distinct integers, each greater than …

Member Avatar for ssharish2005
0
120
Member Avatar for jennwenn25

Hello, Been trying to work on this tic tac toe game and I can't seem to figure out how to post the moves to the board. Everything as I have it now seems ok with the compilier but I just need help with that part. Let me know . . …

Member Avatar for Clinton Portis
0
217
Member Avatar for jst4pgm

[CODE]#include<stdio.h> #include<conio.h> struct llist { int info; struct llist *next; }; typedef struct llist linked_list; linked_list *start=NULL,*new1; void main() { int menu; void ll_insert() { char ch; do{ new1=create_node(); if(start==NULL) start=new1; else addnode(); fflush(stdin); printf("Do you want to add one more row(y/n):"); scanf("%c",&ch); }while(ch=='y' || ch=='Y'); } linked_list *create_node() { …

Member Avatar for ssharish2005
-1
147
Member Avatar for wingers1290

Hi, this is the final step of my program, so far I've set a button to change the default save location and now the last step is to be able to click on the serialized file and have it open in my form. The problem is I don't know how …

Member Avatar for wingers1290
0
201
Member Avatar for xavier666

[INDENT]Hello everybody, I just started learning C and decided to join this site. But as soon as I posted some of my code snippets here, immediately I got a stream of insults (thanks to [icode]conio.h[/icode]). But it's not my fault, I've grown on [icode]clrscr()[/icode] and [icode]getch()[/icode] (due to my experience …

Member Avatar for xavier666
0
133
Member Avatar for es cape85

hi guys! plz help with the code in C which can calculate the fectorial of 500.

Member Avatar for jephthah
0
101
Member Avatar for johndoe444

[CODE] typedef struct tag_linked_list linked_list; struct tag_linked_list { int value; linked_list* next; }; typedef struct tag_list list; struct tag_list { int size; linked_list* data; }; void list_insert(list* lst, int x) { printf("lst->data %p\n",lst->data); lst->size++; // create a new node linked_list node; node.value = x; node.next = lst->data; // make it …

Member Avatar for johndoe444
0
105
Member Avatar for f0rcegr0wn

Hi all, just to be sure. I have a C++ DLL in which I am implementing a bit of low-level functionality. To this library I wish to pass a managed System.String pointer (ref) so that the library can load the string with the new/returned value. The question is, do I …

Member Avatar for cikara21
0
177
Member Avatar for reyarita

1. (PrimeNumbers) An integer is said to be prime if it is divisible by only 1 and itself. For example, 2, 3, 5 and 7 are prime, but 4, 6, 8 and 9 are not. a. Write a function that determines whether a number is prime. b. Use this function …

Member Avatar for ddanbe
0
74
Member Avatar for tzushky

Good morning coders !, I stumbled accross an initialization this morning and even though I get it , it's not 100%. I'll simplify it this way: I have an array declaration: [CODE]uint8_t MyArray[MAX_SIZE][/CODE] I have a linked list structure: [CODE]struct MyLL{ struct MyLL * next; struct MyLL * previous; uint16_t …

Member Avatar for tzushky
0
497
Member Avatar for reyarita

Hey guys!! can you share some ideas about this program, i tried but its not working. 1. Write a program that inputs a five-digit integer, separates the integer into its individual digits and prints the digits separated from one another by three spaces each. For example, if the user types …

Member Avatar for reyarita
0
116
Member Avatar for indev

Hey everyone. Some back info : I have been developing in C for about a year now on and off. Recently I grabbed myself a C++ book and am progressing at a steady rate. Up until recently I have been developing small applications and done a lot of ports. Wolfenstein …

0
41
Member Avatar for Iam3R

Hi , i want to use hash tables in my project. i got few codes in that i got some function called hash() [CODE] int hash(char *s) { int h =0; for (; *s;s++) h = *s + h * 31; return h % 101; } [/CODE] i understand the …

Member Avatar for Narue
0
109
Member Avatar for coolnani

i need a complete working program in TRIE data structure. the program should insert words into trie and also search it when asked. please help me out. at least post the links where i can find them. thank you.

Member Avatar for coolnani
-1
85
Member Avatar for newcoder777

hi there. i have 6 long numbers in a text file that i am reading from. these numbers can be of any length but written in the one of the formats as i have written below. the numbers are 102,2131,432 //format 1 32,531 //format1 74 //format2 534532.5 //format3 1,500 //format1 …

Member Avatar for hichnam
0
120

The End.