19,876 Topics
![]() | |
Hey all: I've been trying to figure out how I would go about doing the following task. Basically, I have a folder with about 20,000 notepad files. My goal is to have one big word document, and append the contents of each notepad file to the word document. Each notepad … | |
Hi there, here is a copy of my server program. It worked this morning but has now decided to stop and i am after some help with it please. It stops half way through the authentication(), it must be before it does the stcmp function as i never get that … | |
Basically I have to take in N and bring it to power of K so N^K i have the c++ i have the basic assembly but something is wrong the math doesn't come out right .386p .model flat .code _func proc near push ebp mov ebp, esp mov eax, [ebp+12] … | |
hi all, can anyone tell me that how can I change the functions in written for 16 bit processor in c language for 32 bit processor? | |
I am so lost. I don't know what I'm doing. Can somebody help me? What I'm trying to do right now is just store ID numbers in an array to use them elsewhere in my program. I can't even do that right though. This is my first time taking computer … | |
im compiling a basic sorting algorithm that utilizies POSIX threads (pthreads) .... everything was compiling fine, until i put the thread implementation in .... all of a sudden, it gives me this: [code]-bash-2.05b$ gcc project4a.c -lpthreads project4a.c: In function `main': project4a.c:32: subscripted value is neither array nor pointer project4a.c:33: subscripted … | |
Is it possible to convert a process name to a process id in win32. If so how? Thanks | |
This is my code: [code] #include<stdio.h> #include<conio.h> #include<alloc.h> #include<string.h> #include<dos.h> typedef struct node *nodeptr; typedef int infor; struct node { infor data; nodeptr left; nodeptr right; }; void insert(nodeptr p,nodeptr *T); void insert_node(infor e,nodeptr *T); void freenode(nodeptr p) { free(p); } void init(nodeptr *T) { *T=NULL; } nodeptr remove(nodeptr p) … | |
Hello Geeks! I have tried real hard trying to figure out the solution for why the getchar() and fputs() arent working in my program. I have already wasted so much time thinking and debugging about it and here I am after registering wid DANIWEB for the first time. I will … | |
Heres my current code: [code=cpp] #include <windows.h> #include "menu.h" int win_w=640; int win_h=480; const char* win_cap="VMake"; LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); static char gszClassName[] = "db"; static HINSTANCE ghInstance = NULL; int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { WNDCLASSEX WndClass; HWND hwnd; MSG Msg; ghInstance … | |
having problems on how to start doing this program as i missed the lectures and practical classes involving that.. so any help on how to start the program..do the table and plot the position of the projectile would be appreciated a lot..the file is attached . thanks a lot.. | |
Hi, Is there someone out there who can help. I've written some simple functions, on the same page as the main code: [code] bool IsAVowel (char ch) { if(ch=='a')|| (ch=='e') || (ch=='i') || (ch=='o') || (ch==''u) { return true; } return false; } [/code] The compiler message gives 'linker error' … | |
I am trying to get the system date into 3 different varibles Month,Day, and Year but I cant figure out how to get the system date from the OS. | |
Hello, I want to know where to start in software programming in C and C++, I know their basics, i can write programs of mathematical solutions, but, can you please help me, adjust to a higher level, like software programming, Thank You Guys!! | |
Sir./mam.. Please Tell me Some GOod Instructions or method To install the applications in tHe TeRminal.. Thnks.. God Bless!! and.. currntly i've been install it on the [B][U]synaptic[/U][/B] and all wxwidgets and their libraries were installed when i run a sample wxwidgets program.. there are too many errors... :( ahmm … | |
I'm working on a breakout game and i want the paddle to follow the mouse It works from the left side of the client area to the far right of the screen but when i go over the left side of the client area, i expected it to return a … | |
Anyone here who uses wxWidgets? I am a newbie in wxWidgets. I have trouble in inserting an image in my application.. I am using this one: wxImage *img; img=new wxImage("pic.jpeg",wxBITMAP_TYPR_ANY,-1); this code is erotic. What would you suggest? Thanx.. | |
hi I'm working on TMS320F2812, a 32-bit DSP. I need to interface an a 8X1 LED with my Processor through the GPIO's of the processor. The GPIO's are connected to the LED's through a 74HC273 D-Latch. Can anyone give me pointers on how I must go about the same ?? … | |
How can I initialise different video modes... like SVGA 800x600 mode, EGA 640x350 mode, et cetera using interrupts... what exactly must I do? Could you demonstrate an example or two for EGA 640x350 and how I can then write to the memory? Thank you. | |
at the end of this program we have to add the average of all the students* add and divide by 3* also put a ** next to student who have over 95 % both thses should be displayed at the end so ANYONE dare to try #include <stdio.h> #include <math.h> … | |
right basicly i need to make a class. I have a file called book.cpp which needs to be modified and i have no brain at all today. help is so needed. [code] //book.cpp #include"bookheader.hpp" Book::Book(void) { title[0]='\0'; quantity = 0; deleted = false; } Book::Book(string tit) { strcpy(title, tit.c_str()); quantity … | |
hey I was wondering if any of you had an idea for this program I need to write for extra credit in my class. It involves using a rational class which is what Im having trouble writing, I understand if no one wants to take a shot at it, any … | |
Hi, everybody, Before I ask for help I'd like to say thanks for all your help you've been really helpful. If anyone has the algorithm for the compaction technique used in fragmentation please post it in the Code snippets it would be very helpful to me please!! | |
| |
Basically I'm writing a program that reads in the number of words in a file and counts them based on the number of whitespaces, though I'm also considering using tokenising im just more familiar with whitespaces. It compares the ACII code of whitespace(I think) then adds one due to not … | |
Hi all, I want to know the optimization code for following c source code: int i=0; i=p*q<<12; if(i>20) i=15; so here i should range from 0 to 15 but if i goes beyond 20 then it should remain as 15. Here I have hint as to use bitwise operator to … | |
I want to write a function int Listofleaves (Tree tree,List* list) which recieve a binary tree -"tree"(the input) and a list pointer "list"(output)...the function supposed to return the trees leaves nodes(nodes with no children) from right to left as a linked list(!) in "list"...and also return at the end the … | |
Ok here is what I am trying to do now ! I have everything I need to take a list of computers and run the script on them. Now I need to grab the list of computers. So this will require grabbing an intranet website that contains all of our … | |
I am thinking about a landscape generation program, ie building a model from a 2D contour map or something similar. Would C++ be the best language for this or is there a more suitable language to use? P.S I am a novice to programming and so far only have experience … | |
Hi guys, I need some help with file input output. I have a file that has a array size on the first line followed by a 2d array. The array size can change. I need to read this file, and place the array in a array variable. But im not … | |
I am writing a simple (extremely simple) hangman program. Basically the user inputs a word, then they have double the number of letters in the word for guesses (for instance if the word has 7 letters they get 14 guesses). Please don't ask why I want the user to input … | |
say I need to the below to store as a string variable. Set autoUpdateClient = CreateObject("Microsoft.Update.AutoUpdate",strComputer) notice teh quotations ? How can I store all of this as one string with the quotations included ? I need to store this so I can manipulate it, but those quotes keep throwing … | |
I am suppose to create a program that counts the number of alphabets in string, words in a string and the lenght of the string and print them out! I have some code but I'm not sure how to get the string counted. Can anyone please offer some help? I … | |
Hi, I want to know about C++, How do I declare a constant (like C++ const) in Java(tm) and how do I declare enums (like C enum) in Java(tm).if any one knows about this reply me Thanks in advance | |
is it possible that when I do this: g++ -c function.cpp the function.o will be generated in the other directory? say for example i have FUNC folder FUNC/function.cpp I want to generate a function.o that is outside the FUNC folder. thanx in advance.... | |
Hi, I have a text file which looks like this: 3Com 3C996B Gigabit Server NIC NEC PCI to USB Enhanced Host Controller (B1) .... .... Now, I need a 'C' Program which will copy each line into an array of strings or character array, such as char* Cards[10] . Could … | |
i'm using a LINUX Ubuntu Operating System.. Sir/Maam. could u teach me how to install the wxWidgets. all its processess.. and how to compile the program using that application,, THnk U VeRy MuCh!!..:'(:pretty: | |
How to check if file is in a working directory in WinAPI? | |
how can i install alloc.h in my computer?i need to compile a program and i don't know how to install it...can someone tell me? thank | |
hey, please i need help with the program tutrtle graphics, i have been trying to solve the problem but i have difficulty with turning right and left... i have been trying to solve that but oops...... i dont need a code... all i need is a hint, i will figure … | |
This may seem like a dumb question, or maybe I just feel dumb asking it. I have spent hours trying to figure out how to retreive the current MM/DD/YYYY from the system output in that format. strftime? time function? I'm spent! Any help would be great..... | |
I am writing a short c program which simulates resource management on the operating system. The parent process is the resource manager and allocates resources to its children if they are available. I have created the processes and the resources, but I am having trouble communicating resource status between the … | |
I need to understand the folowing code return(fab(n-1)+fab(n-2)); As most of u will be fimiliar with this itz to make fabonachi series in C but can any one tell me How the computer Reads it i mean how is the sontrol transfered plzzz | |
plz someone tell me a program to add 10 numbers using the while(condition) loop very quickly plzzzzzzzz | |
Do you have any links where I can find stuffs in making c++ class archive? thanx in advance | |
Hey, I'm hoping someone can help out here. I'm trying to use the rand() function to generate sequential random numbers in C, and then write them to file. Now I know it's possible, I'm just not sure whether it is the way I want to do it. I have already … | |
Hi everyone again me again I have lots of questions... I have a program which reads something into a txt file like notepad. But I need to read into a dat file. Here is my code [code] #include <stdlib.h> #include <stdio.h> main() { int employeeNumber; char name[30]; char engineeringDicipline[40]; int … | |
Hello, I have a problem with my Win32 app. I made a window, and than a Dialog boxes. For window I use one message loop, and for Dialog boxes another. But It seems this wont work: [CODE]while(GetMessage(&Msg, NULL, 0, 0) > 0) { if(!IsDialogMessage(g_hToolbar, &Msg)) { TranslateMessage(&Msg); DispatchMessage(&Msg); } TranslateMessage(&Msg); … |
The End.