15,550 Topics

Member Avatar for
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
189
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
81
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
86
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
266
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
80
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
122
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
168
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
146
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
321
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
604
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
608
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
182
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
751
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
90
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
141
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
485
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
152
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
152
Member Avatar for endofworld201
Member Avatar for xavier666
-1
104
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
292
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
85
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
117
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
141
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
129
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
96
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
104
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
491
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
106

The End.