- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 14
- Posts with Upvotes
- 11
- Upvoting Members
- 8
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Re:
Hi pals, I am a Newbie in C++ Programming field. I plan to add graphics.h header class in Dev -C++ Version 4.9.9.2 from Bloodshed which is come along with Borland Compiler. I follow the Steps in URL : [url]http://www.uniqueness-template.com/devcpp/#step2[/url] But I Got Error in the Sample code which test the … |
|
I am doing this assignment for my computer science course, and I have to write a function that determines if 'x' can fit into an n-bit, two's complement integer. I am not allowed to use any control statements or operators other than the [ICODE]! ~ & ^ | + << … |
|
|
Re:
#include<stdio.h> int main() { int pcheck=1,i; int k=1000 for(i=2;i<k;i++) { if((k%i)== 0) { pcheck=0; break; } } if(pcheck) { printf("%d is a prime .\n",k); } else { printf("%d is not a prime.\n",k); } return 0; } this code works to check any number i that write in k but when … |
Re:
I usually listen to music while I'm browsing here, what are you listening to right now? EL-P - Fantastic Damage |
|
Re:
Purpose: To practice writing a simple well-documented (lots of comments) C++ program using repetition structures (loops). Assignment: The power of a repetition structure lies in the fact that a section of code can be executed several times (often using different data) in the same program run. Modify, Laboratory Assignment # … |
|
Re:
Hi, I wanted to write a C program which searches for text files in a directory(assuming the directory and files are not write protected),list them and open each one of them(files) write a letter A in them.Can anyone give me a sample code. I believe it can be done with … |
|
Re:
I have no idea what is going on here, first, the code: [CODE] #pragma once #include <stdio.h> //#include <stdafx.h> #include <allegro5/allegro.h> //#include <allegro_image.h> class DisplayController { public: int bitmapx; int bitmapy; // ALLEGRO_DISPLAY display; ALLEGRO_BITMAP *crosshairs; ALLEGRO_EVENT ev; ALLEGRO_EVENT_QUEUE *event_queue; void display() { this->event_queue = al_create_event_queue(); al_register_event_source(event_queue, al_get_mouse_event_source()); al_wait_for_event(event_queue, &ev); … |
|
Re:
Hello, I am trying to read exact 2 bytes from binary file, and transfer it to int, whatever is it 2 or 4 bytes. Atm on my computer is 4 bytes. So I have two bytes into four bytes scenario. I am using this code [CODE]ifstream in_stream; in_stream.open("test.dat", ios::binary); streamoff … |
|
Re:
I am trying to figure out how to automatically close a simple windows application in C. I know how to create the window. But I have no idea how to get it to automatically close when it has opened without user input/interaction. Basically when it is called upon, I want … |
|
Re:
how do i move the value of %eax to the memory location of %0 [CODE] int size 10; long *list = (long*) malloc(size*sizeof(long)); asm( movl $999, %%eax movl %eax, (%0) // this is what im trying, how do i fix it? :"=r"(list) :"0"(list), "a"(strLen) );[/CODE] |
|
Re:
[CODE] I am a novice programmer and need help..... #include <stdio.h> int main (void) } int n1=2; int n2=0; n2= (++n1) + (++n1); printf("Result= %d",n2); return 0; } Result= 8 How is this possible?? Similarly, #include <stdio.h> int main (void) } int n1=2; int n2=0; n2= (++n1) + (++n1) + … |
|
Re:
Hello firends , i am new here.. am interested in programming languages... here am sharing some useful graphics codes [B]1.solar system using C[/B] [CODE] #include<stdio.h> #include<graphics.h> #include<conio.h> #include<math.h> #include<stdlib.h> void main() { int gd=DETECT,gm; float i=0,j=100,me=75,ve=23,ma=105,ju=175,sa=10,ur=300,ne=200,pl=175,s=0; int x,y,k,si,sx=random(300),sy=random(400),X,Y,ss; unsigned int earth,moon,mercury,venus,mars,jupiter,saturn,uranus,neptune,pluto,sunsize; void *ear,*moo,*mer,*ven,*mar,*jup,*sat,*ura,*nep,*plu,*sun,*ships,*ships2; x=300; y=210; initgraph(&gd,&gm,"d:\\tc\\bgi"); setfillstyle(1,10); setcolor(2); fillellipse(50,50,13,13); earth=imagesize(35,35,65,65); … |
|
Re:
I'm trying to get a C version of this game working on my computer using gcc on ubuntu. [url]http://www.lemoda.net/c/boggle/boggle.html[/url] I have no need for a pearl script or anything since I just have a simple dictionary text file and want to be able to just load in the text file … |
|
Re:
how to write the interrupt instruction in assembly language and what the diferrent between subroutine and interrupt in assembly language?? anybody can help me?? |
|
Re:
Create a class Cat with its data members weight & age, each of which defaults to 1. Provide get & set member functions for each data member. Also provide data member functions speak & walk. Both set functions should verify that data members are >0 otherwise set the default value … |
|
Re:
hi to all, i want to know how to compiler tsr programme using the borlandc v3.1 compiler anyone know plz guide me what is the command to compile and moreover what are the runtime directories that are we set for tsr programe or generating for .com file i will be … |
|
Re:
Hello, I have a few questions about Assembly. I am extremely new to it! Question 1: How do you write functions in assembly? Is it even possible? Question 2: How do you get an input to a dd variable type (do I have to do the math on four db … |
|
Re:
I'm trying to create a C console program that produces a directory listing (one filename per line) of all files matching a specified filename pattern. I'm kind of clueless as to where to start and was wondering if someone could give me a boost? I'm mainly a C++ coder but … |
|
Re:
Errors when compiling. its seem to be complaining about line 52 and i do not get output of second file.(data.words) strarray[numStrings++]=strdup(word); $ gcc -Wall -ansi prt.c -o prt In function ‘main’: warning: implicit declaration of function ‘strdup’ warning: assignment makes pointer from integer without a cast [CODE]#include <stdio.h> #include <stdlib.h> … |
|
Re:
[CODE]#include<stdio.h> int main() { char *arg[10],*c; int count=0; FILE *fp,*fq; printf("Name of the file:"); scanf("%s",arg[1]); fp=fopen(arg[1],"w"); printf("\t\t%s",arg[1]); printf("Input the text into the file\n"); printf("Press Ctrl+d to the stop\n"); while((*c=getchar())!=EOF) { fwrite(c,sizeof(char),1,fp); count++; } return 0; } [/CODE] |
|
Re:
i am writing a decryption program that reads a file from another project solution and decrypts it then writes it to a new file in its own project folder. For some reason when i try and read the file in the program says that file doesn't exist. Im pretty sure … |
|
Re:
I'm very very new to c++.I'm truing to built a program to make new appointment etc. [CODE]#include <iostream> #include <vector> #include <string> using namespace std; class Appointment; class MyDate { private: string date; string hour; public: MyDate();//constructor xoris parametrous// void set_date(string _date) { date=_date; } void set_hour(string _hour) { hour=_hour; … |
|
Re:
hi, im working on josepus problem but this programe is not working well it is working in unlimited loop any one can point out the mistakes????????? #include<iostream> using namespace std; class node { private: int object; node *nextnode; public: int get(){return object;}; void set(int object){this->object=object;}; node *getnext(){return nextnode;}; void setnext(node … |
|
Re:
Hello there everyone. I am in need of assistance in writing a code for my program. What I have to do is write a code to generate the following: (1) * ** *** **** ***** (2) ***** **** *** ** * (3) ***** **** *** ** * (4) * ** … |
|
Re:
Write a C program in to calculate the parking fare for customers who park their cars in a parking lot when the following information is given: A. A character showing the type of vehicle : C for car, B for bus, T for truck. B. An integer between 0 and … |
|
Re:
i created a new project, added some textboxes and labels with one button. when i built the project the first time, i just got the error: general error c101008d: Failed to write the updated manifest to the resource of file "..\Debug\Login.exe". Access is denied. mt.exe Login someone help me please! |
|
Re:
I am working on a rainfall program that will ask the user to enter the total rainfall for each month, then will calculate the total rainfall for the year, the average monthly rainfall and is supposed to display the month names for the highest and lowest month. I have everything … |
|
Re:
I am using darkGDK to complete an asignment where I am to create a sprite with a moon background and to make a rocket ship move up with the spacebar pressed and come back down agian when it is released. I can't figure out what I don't have in my … |
|
Re:
helo, my file r.csv is as follows 07 02 2011 09 05 2011 .. .. i don't know what is error. but the function is not being called.. [CODE] #include<stdio.h> #include<stdlib.h> #include<math.h> #include<conio.h> int calday(float,float); int main() {// main start FILE *in, *out; char *rdf,*wdf; char day[10],mon[10],year[10]; float Day,Mon,Year; rdf="A:\\r.csv"; … |
|
Re:
hi,i have a pc that uses windows 2007 and there is the files that copied themselves into other documents so when i amtrying to delete them even the original one got deleted.please help |