15,551 Topics
| |
Tilox game.I have to write the programe of game plan.I need help about idea.(Graphic use GDI) | |
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"), … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 : … | |
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 … | |
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 … | |
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 . | |
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? | |
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 … | |
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++). … | |
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 … | |
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) … | |
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] … | |
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 … | |
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 … | |
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 … | |
c program to print upper right triangle in the format: * * * * * * * * * * * * * * * | |
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?? | |
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 … | |
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 … | |
[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() { … | |
[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 … | |
hi guys! plz help with the code in C which can calculate the fectorial of 500. | |
[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 … | |
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 … |
The End.