199,114 Archived Topics
Remove Filter ![]() | |
Good day to all of you who assisted me. I never thought I'd pass this class, but with all your help, I made it. This is the only C++ course that I needed...so I really wont have any c++ questions to post around here to bug anyone...but i'll still hang … | |
wap to print following pattern?? [code] ABCDEFGFEDCBA ABCDEF FEDCBA ABCDE EDCBA ABCD DCBA ABC CBA AB BA A A [/code] the pattern is not showin up proper,,but hope u guys get it.. its kinda /\ shape formation b/w those letters this is wat i tried out..... int i,j....; int m=65; … | |
I've been writing my own implementation of stdio.h whenever I get a few spare minutes recently. Nothing fancy or thorough, and without wide character support, it's hardly conforming. But I was looking at one of my intermediate versions of printf and could only marvel at how ugly it was. So … | |
[code=c] /***头文件(.h)****/ #include "stdio.h" /*I/O函数*/ #include "stdlib.h" /*其它说明*/ #include "string.h" /*字符串函数*/ #include "conio.h" /*屏幕操作函数*/ #include "mem.h" /*内存操作函数*/ #include "ctype.h" /*字符操作函数*/ #include "alloc.h" /*动态地址分配函数*/ #define N 10 typedef struct nw /*定义数据结构*/ { char word; /*生词*/ char acceptation; /*词义*/ char aspirate; /*音标*/ int no[N]; /*序号*/ char note; /*注释(包括词性,例句等)*/ struct nw *next; }NEWWORD; … | |
For those of you who haven't heard of or used AutoHotKey check it out here [URL="http://www.autohotkey.com/"]http://www.autohotkey.com[/URL] for the rest of you I made a really simple script for Dev-C++ to add some speed to it. (I had more in the script but they were things only I would remember and … | |
One large chemical company pays its salespeople on a commision basis. The sales people receive $200 per week plus 9 percent of their gross sales for the week. For example a sells person who sells $5000 worth of chemicals in a week receive $200 plus 9 percent of $5000, or … | |
hi can anyone tell me please what is segmented error , i have made a program in c on linux and when i am running it after compiling , after a few inputs it shows segmwntwd erroe. what is this??:?: | |
Hi, Hi friends i am new to this site.Am happy to tell you guys out there that i liked this site and all the effort that everyone has put to keep this site going. Now coming to the point,i need to decide on a project possibly in c/c++/java which is … | |
Hello guys. Thanks for the help in the previous posts. This one is regarding pointers in C language. Does 1) c = *a and 2) *a = c mean the same thing? I think they are. Are they? Thanks for the reply. | |
[COLOR=#000000]Write the following functions[/COLOR] [COLOR=#000000][B] [/B]draw_circle – draws a circle[/COLOR] [COLOR=#000000] draw_intersect – draws intersecting lines[/COLOR] [COLOR=#000000] draw_base – draws a base line[/COLOR] [COLOR=#000000] draw_triangle – draws triangle using intersecting lines and base line[/COLOR] [COLOR=#000000] draw_rectangle – using baseline and parallel lines[/COLOR] [COLOR=#000000] skip_5_lines – skips five lines between each … | |
can somone help me! where can i find a turbo C compiler that has a BGI! Coz i have a program that have some graphics but i can't run it through my compiler coz it doesn't have a BGI! is there someone who knows where i can find a complete … | |
i have a string that i want to convert to double. i know atof is a standard library function for that, however, the input argument to atof is (const char*), not string type that i have. does anyone know how i might convert my string num to double ? thanks … | |
can anyone suggest some websites which has code snippets for creating shopping carts using jsp, servlets and javabeans. I am seriously looking for a career in J2EE. pls help Thanks | |
I know that lambda is some kind of function in Python. What does it do? Why would one use it? | |
hai , i am doing my final year project work. It is about buliding an Interactive voice response system. I have chosen VB and Oracle 8i as my tools. i want to know whether i can develop an implement an IVR using Vb 6.0 or not. If so how to … | |
I am writing a Win32 Console application and I need to change the font size to 18x10 pixels. I think this can be done with a function in windows.h but Im not sure which one or how to do it. | |
Hi everyone, I just came home from a software conference in nagoya, Japan where they had any kind of software you can think of on this planet. There was one talk i went for and i think its quite interesting to have it discussed fully here. Alot of the companies … | |
Shameless plug: [url]http://steve-parker.org/sh/sh.shtml[/url] A bourne Shell Programming/Scripting Tutorial for learning about using the Unix shell. Centres on the Bourne shell, but mentions when bash differs. Does not cover ksh/csh (considered harmful). Applies to UNIX and Linux. | |
This is giving me a headache...can someone please tell me why these statements ARE NOT equivalent? Statement 1.) if(running_result && shell[8 * (x - 1) + (y - 1)].input_val) running_result = true; else running_result = false; Statement 2.) running_result &= shell[8 * (x - 1) + (y - 1)].input_val; ------------------------- … | |
:mad: :mad: :( :( I've been trying to write this program that is suppose to read in a text file manipulate in and give the following out put infact here is the question Implement a program that uses a form-letter template to generate form letters. Your program should read in … | |
This might be a oversight by me but when I compile and the programs runs I get this error:park.cpp(11) : error C2065:'hours' : undeclared identifier [B]if (hours<=3)[/B] this is code from my program park.cpp(34) : error C2447: missing function header (old-style formal list?) What is this------->(old-style formal list?) Maybe I'm … | |
insert a node in circular link list without traversing it. :?: you have to insert the node at any place "without traversing it help me out!!! in this | |
The attached program performs a QuickSort in C++ which sorts an array of structs based on their data members. Basically, it sorts an array of coordinates based on their distance from the origin. | |
Crazy notions Time Limit: 1.0 second Memory Limit: 1 000 КБ For five days robot-loader JK546L54p has been buried under the thick layer of the Sibelian plutonium slag. The terrible strike of the atmospheric electricity has led to the depressurization of the robot’s fuel elements. Who will examine this heap … | |
I have an interest in learning a programming language in order to write programs to manipulate a fairly large set of numbers. For instance, I would like to write a programs to sort and maniuplate in various ways different baseball statistics on all of the active players in the last … | |
Hey I have this program that I'm having some trouble figuring out so maybe someone can give me some helpfuls hints. Here goes: I have to find all numbers between 1 to 999 who when their digits are cubed individually and then all added together, equal the original number. For … | |
[COLOR=Navy][/COLOR]hii, i am computer science student and i am doing win console application program "Project" by c++ compiler "mic visiual 6", the project is like a small data base which stores student names and thier grades and search for names, add, delete,edit and other things. i am asking if i … | |
Well I have looked around the forums. But I cant find the answer to my question. It has been asked many a time. Im a complete novice to the world of programming (I am, lololol) I am trying to decide which path to go down, c, c++, vb, etc. Please … | |
:rolleyes: right, im goin 2 sound like a right dunce now but here goes... what exactly is Visual C++? i've found things about it, but nothing which is easy to understand. any help would be appreciated | |
Hello everyone, iam a new one into this forum. Can anyone tell about what is the significance of programming c in UNIX | |
I'm working on a program with menus, but I don't know how to clear the screen before displaying the next menu. | |
"difference patching" is my word for the method used by patch makers that take only the differences in two files, and apply them to a patch file. RTPatch is an example of a program that does this. I've been trying to create one myself, but I'm stuck on the logic. … | |
I have just written some classes in visual c++ with MFC that give me out data I want to plot in excel. Are there any tutorials out there that will help me write a macro in excel that will pass the data to my classes then read the results given … | |
////having trouble with this one after first input starts a crazy loop malf. #include <iostream.h> #include <conio.h> const int MAX_ITEMS = 5; typedef int InventoryArray[MAX_ITEMS]; void DisplayOpeningMessage(); void DisplayEndMessage(); void OutputInventory(const InventoryArray items); // const used to protect the array from being changed void InputInventory(InventoryArray items); void ProcessChoices(); void OutputOneInventoryAmount(int … | |
Hello! To those who may be interested, my name is Matt. =o] Now, lets cut down to brass tacks. Yes, I agree nickle tacks are much more colorful in the world of style, however I perfer brass. A while ago, (long while =oX) I began working on a browser-based PHP … | |
Hi. How can we launch program from resources? | |
Here's a quick bit of code to upload a file in PHP. | |
In my increasingly futile attempt to remain using the now-defunct CodeIgniter 3 framework, I came across something that I figure might be worth sharing in case anyone else is maintaining older PHP codebases and suddenly things start breaking after a PHP upgrade. With PHP 8.2, there’s a new warning that’s … | |
What are some best practices for optimizing memory management when working with large datasets? I am tagging this topic both with php (because that is my language of choice, and the one I work with big data with) as well as c++ (because I know DaniWeb has a large low … | |
I try to remove the last character from a string with Japanese text and emojis using this code: <?php $text = "私の名前はダバーです👩🚀"; $new_text = substr($text, 0, strlen($text) - 1); echo $new_text; The output breaks the characters and shows garbage. How do I fix this? | |
Hi everyone. I am just learning Python on class so I am really at the basic. I need to write a python program that will flip a coin 100 times and then tell how many times tails and heads were flipped. This is what I have so far but I … | |
## Introduction ## In a previous tutorial, we learned [how to create a notification on Android](https://www.daniweb.com/programming/mobile-development/tutorials/536756/android-native-how-to-create-a-notification#post2282507). In that tutorial, we did not have to request any permission because applications did not need permission to post notifications on Android 12 and below. It has been almost a year since the release … | |
Hello, fellow coders, I'm relatively new to coding and web development but excited to embark on a project combining my passion and my budding programming skills. I'm eager to create a tool like this https://minecraftcirclegenerate.com/ created using HTML, CSS, and JavaScript. As a beginner, I'm seeking guidance on where to … | |
Hi everyone, I'm getting a 401 Unauthorized error when trying to call the Management API from my web app. I've already checked my token, headers, and API endpoint, but nothing seems to work. However, I’m still confused and can’t figure out where exactly I’m going wrong. I feel like the … | |
I have tried to read https://www.daniweb.com/programming/web-development/threads/386380/cannot-run-exe-files-in-asp-net-application but still lost in trying to achieve something. I installed the latest .net framework, and IIS on the latest updated windows 11. I wish to achieve the following: Have a webpage with a button, when pressed, it will launch a webpage that runs a … | |
As you may know, yuo can customize the error pages in Cloudflare, such as for a WAF block, etc. For some reason, since the switchover to the new error pages dashboard, the custom font I always use isn't working. I can see that it converted https://cdn.daniweb.com/font.woff into inline base64 for … | |
Hi Everyone, Web development can be both exciting and challenging, but having the right tools makes all the difference. If you're starting out or looking to improve your workflow, consider using popular frameworks like React or Vue for streamlined front-end development. On the back end, Node.js and Django are solid … | |
Just as the topic title suggests, any jQuery 4 beta users out there who could let me know what it's like? The wait for v4 gold release is killing me. Also, please don't make fun of me for being a jQuery user. DaniWeb has been built on jQuery for decades. … | |
Hello There, I am looking for MUI React-based admin template in the TypeScript version for my project. Can you guys suggest some React Admin templates that are comprehensive and easy to use? I really appreciate any help you can provide.! | |
I’ve been working on a mid-size React project and started noticing performance lags and bloated component trees. I optimized a few things like: Using useMemo() and useCallback() smartly (but not overusing) Breaking components into smaller reusable ones Lazy loading routes and components But I’d love to know: What are your … |
The End.