18,491 Topics

Member Avatar for
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
151
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
345
Member Avatar for asish kumar

Hii, i am asish.i am an embedded Programmer.i am programming RTOS Q2686 for gps/gprs based vehicle tracking system.i am creating one file management API in C.i am writing with help of A&D API.i am storing some root information in a cell.But when i am reading the root,Entire Cell i am …

0
81
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
656
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
641
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
202
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
207
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
778
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
102
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
172
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
536
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
177
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
173
Member Avatar for endofworld201

c program to print upper right triangle in the format: * * * * * * * * * * * * * * *

Member Avatar for xavier666
-1
113
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
326
Member Avatar for lisedaton

hi everybody!!! I will really appreciate if somebody could help me.... we are working with c and python and the same time and it gets confusing sometimes... I need to write a program in python tha will receive a string and it will print only the number in the string …

Member Avatar for Namibnat
0
128
Member Avatar for Murderous Mouse

Hey guys, I've just been presented with a challenge, of sorts, and I am wondering what language I should use in order to make a piece of software. The only specifications which the language will need to have are: [List] [*] Must be relatively common (Not some small language that …

Member Avatar for Murderous Mouse
0
136
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
115
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
139
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
234
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
153
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
152
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
121
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
121
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
192
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
518
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
122
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
92
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
144
Member Avatar for endsamsara

Hi I want to print in the screen only [B]the fields [/B]of some of the data that is in the structure, Doom3 like: the name for example, or the field time in FIFA, or the field memory in word How can i do this ? [CODE] #include <conio.h> #include <stdio.h> …

Member Avatar for sasik
0
15K
Member Avatar for twgood

I posted this in the computer and science forum, and i believe it should be here, and with no one saying anything I am afraid I posted in the wrong place so here goes again. I am having issues with an assignment, I am lost as how to do a …

Member Avatar for drwright68
0
545
Member Avatar for Iam3R

i run the below code and surprised to see the o/p . take a look and let me know whats happenning there. [CODE]#define print(x) printf(#x"=%d\n",x) int main(){ int a[10]; print(a); print(*a); print(*a+1); print(*a+3); print(*a+1-*a+3); return 0; } [/CODE] Out Put: [QUOTE] [Zonnie@telnet CPz]$gcc funny.c [Zonnie@telnet CPz]$ ./a.out a=-1073745776 *a=1 *a+1=2 …

Member Avatar for ssharish2005
2
224
Member Avatar for Happypants

Heya folks. I'm trying to write a BMI calculator, but I'm missing something. Splint tells me I have a parse error before the scanf, but I'm not seeing it. Also, I'm struggling to get the BMI to print (I'm pretty sure the two are related). It worked (before I put …

Member Avatar for Happypants
0
196
Member Avatar for jephthah

why do you think the following "solution" in the C-language forum is a good solution? [QUOTE=xavier666;1069864]The problem is that you have not flushed stdin. Put [icode]fflush(stdin);[/icode] before the [icode]scanf[/icode]. That should do it. -- [URL="http://www.daniweb.com/forums/post1069864.html#post1069864"]/forums/post1069864[/URL] [/QUOTE] ... because you actually gave it a green cookie with the comment: [QUOTE] Well …

Member Avatar for jephthah
0
290
Member Avatar for jcax

I'm trying to move one big C++ string (with separators) like one below [CODE] & 12345 & 12345 & 23423 & 90323 & [/CODE] into 3x5 array like one below with the first group of numbers excluded char array[3][5]; [CODE] { '1' , '2' , '3' , '4' , '5'} …

Member Avatar for jcax
0
303
Member Avatar for HunterFish

Good day to all. I would like to ask some help regarding C++ sounds. I read some codes in playing sounds using C++ and this codes was based on WINDOWS. I would like to as if there is a possibility that I can play a wav file in LINUX using …

Member Avatar for Stefano Mtangoo
0
398
Member Avatar for bhavz

hey all, im new to this programing stuff consider a buffer of size 2048bytes. the data i need to send is more than 2048 bytesof the of buffer. i have a func SendDataReq (u8* pu8_TxBuffPtr,u16 u16_NoBytes);. how do i send this data using this func

Member Avatar for Narue
0
84
Member Avatar for bhavz

hi all, can u write me a sample code to receive the data when sender sends the data throu fun senddata(u8* pbuffer, u16 bufferlen);.. its should store in a recieve buffer and should return the length of the data received.

Member Avatar for programmersbook
0
87
Member Avatar for karthik.c

hi, im getting recv:bad address error in the server code when im receiving the data from the client.i tried passing the structure and an integer alone ,but for both i got the same error. for structures: client: [code=c++] struct Data { char data1[255]; char data2[255]; int val1; }; struct Data …

Member Avatar for programmersbook
0
3K
Member Avatar for bubonic88

i have been trying to compile for a while now worked fine until i added a symbolic constant then i get all kinds of syntax errors please help thanks heres source code: [CODE]#include <stdio.h> #include <stdlib.h> //GIGO.c- Coded by Ross Camarillo aka Bubonic_88 // on 12/02/2009 //Created by Randy Gibson …

Member Avatar for xavier666
0
109
Member Avatar for poornimashobana

hi , anybody would help me how to print prime factors in c using recursive function

Member Avatar for xavier666
0
94
Member Avatar for ravinamita

I am new to XML and have a very sketchy knowledge of C. I am writing a C program in which I need to read strings (each on a separate line) in a text file, match that string with a value enclosed in a specific tag inside an XML file, …

Member Avatar for Member #422252
0
2K
Member Avatar for meghs007

patter like n=2 [CODE] * * * * * * * * * * * * * * * * [/CODE] pls help me in solve this program

Member Avatar for xavier666
-4
114
Member Avatar for adventk

Write an if/else statement that compares the value of the variables soldYesterday and soldToday , and based upon that comparison assigns salesTrend the value -1 ( soldYesterday greater than soldToday ) or 1 . i wrote: [code] if (soldYesterday > soldToday) { salesTrend = -1||0; } [/code] and its coming …

Member Avatar for xavier666
0
87
Member Avatar for fedya

Hello, I need help with re-ordering the values in ascending order in the array (Unordered). However, I cannot use swap or sort function (i.e. Bubblesort). How can I do that?

Member Avatar for xavier666
0
6K
Member Avatar for speedy94519

Hello im having a problem with my program. Im trying to read in two files called list.txt and teachers.txt and set them to an array called studentList[] and teacherList[] but i dont know how to do that, any suggestions? I know i have to use a for loop but i …

Member Avatar for speedy94519
0
118
Member Avatar for EddieC

Intel has confirmed reports that it will not release its next-generation graphics processor widely known as [url=http://en.wikipedia.org/wiki/Larrabee_%28GPU%29]Larrabee[/url] as a discreet GPU. Instead, most reports indicate that the company will move ahead with its many-core processor as a design and development platform aimed at graphics rendering and high-performance computing. The idea …

0
135
Member Avatar for Mattpd

I officially have the worst C professor in the world. The guy hasn't answered my email in weeks and I don't have a class meeting before this assignment is due, so I have come here for some help. If anyone could point me in the right direction any part of …

Member Avatar for Trad
0
224
Member Avatar for rico.tee

Hi! I'm new here. I was just wondering if there's someone who could help me in solving this problem. Given a sequence of n numbers, compute the running average of the sequence. For example, given the sequence 1 3 5 7 9 will produce the output: 1 1 3 2 …

Member Avatar for Dave Sinkula
0
141

The End.