15,547 Topics

Member Avatar for
Member Avatar for kouty

I dont understand the appearent discrepency in the treatment of the variabe x, y, and z. Why y isn't treated as x and z? #include <stdio.h> #include <string.h> int main() { char result[100] = "Philippe Dupont 30"; char x[50]; char y[50]; int z; /*We use sscanf to give a value …

Member Avatar for kouty
0
1K
Member Avatar for Rohan_12

Hello Everyone, I have an FPGA application that has some function (i.e: Matrix Multiplication) now I want to create the memory interface for FPGA communication based on the model pushed into the FPGA? For example, If we have the size of 1024 and the size of data is 10 bit …

Member Avatar for rproffitt
0
409
Member Avatar for cambalinho

i'm creating a program using Code Blocks with GNU\GCC compiler. i'm using Windows 10 with Windows Defender. my program create a txt files(instead a text files, we can speak binary files too), but the Windows Defender can delete the file(and i have sure), for avoid these problem i must disable …

Member Avatar for cambalinho
0
4K
Member Avatar for praneeth_gunda

This Program implements the Predictive Parsing Of the grammar E->E+T/T F->F*T/F F->id(Identifier)

Member Avatar for yesim
1
26K
Member Avatar for angbatangprog

Programming Exercise ATM Machine In this assignment you will create a program that allows a user to do the following: 1) Create a bank account by supplying a user id and password. 2) Login using their id and password. 3) Quit the program. Now if login was successful the user …

Member Avatar for Apoorva_2
0
6K
Member Avatar for dongtrien

How do I process the xamarin forms that connect to SQL Server and export data to the listView ? I'm looking for this simple example. What do I find on google ?

Member Avatar for bangalore.webguru
3
23K
Member Avatar for DemonLady

I got this assignment and I'm stuck. I have to write a function that takes an integer value and returns the number with its digits reversed. For example, given the number 7631, the function should return 1367. Can someone help? :confused:

Member Avatar for Ajini
0
3K
Member Avatar for chandrabhanu

Above program takes input of coefficient and power separately of 2 different polynomials add them up to a new polynomial.It is successfully compiled and executed in DEV CPP as C file.It Turbo C compiler add void before main function to avoid warning messages.

Member Avatar for Nithesh_1
0
49K
Member Avatar for DaniWebUser_1

I just started learning C with a book called "Sams | Teach Yourself C in 21 Days, 6th edition" and I've already run into a problem I can't solve. The book gives a program that is supposed to display any code from any saved source file - including its own. …

Member Avatar for DaniWebUser_1
0
1K
Member Avatar for Rahaf_2

i need to read from file two array with two different type (string and intger) but when i wrote the c code to read the file : char ON[row][30]; int RA[row][clo]; int i; int j; FILE*infile; infile=fopen("rane.txt","r"); for(i=0; i<row; i++) { fscanf(infile,"%s",&ON[i]); for (i=1;i<row;i++) for(j=0; j<clo; j++) fscanf(infile,"%d",&RA[i][j]); } then …

Member Avatar for Reverend Jim
0
352
Member Avatar for Ann_9
Member Avatar for TheHDTrip

I'm creating a program that maintains student scores. I've created a class called students that stores the data and displays it in a list box. Once the user clicks btnAdd a new form (frmAddStudent) loads that allows them to add the user by name and their scores and display it …

0
311
Member Avatar for Jeinel

Hi can anyone help me convert these codes into java and let me know which classes are to have? // Clustering.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <string.h> #include "MersenneTwister.h" #define CATAGORICAL_CONST 30.0 #define MAX_FILENAME_SIZE 500 #define MAX_BUFFER_SIZE 500 #define MAX_STRING_SIZE 100 #define …

Member Avatar for Dani
0
988
Member Avatar for prudvi_1

can anyone help me with Add to cart functionality in xamarin(i.e) C# code using SQLite

Member Avatar for Dani
0
304
Member Avatar for johnhacker

Hello, i need your help. I need to make a program which will make sum of digits in number e.g. 123 is 6 BUT, the number could be very big like 1000 digits long or more.(e.g. 1 005 854 684......) - of course without spaces So, i cannot use datatypes …

Member Avatar for johnhacker
0
956
Member Avatar for tun712

I was wandering aimlessly on google, I found [ReactOS](https://www.reactos.org/). It's interesting. I tried this OS, many windows applications are running well on it. But some latest applications are unable to run like **Firefox 65.0.1** I have few questions, * How worth is using this OS? * What is future of …

Member Avatar for tun712
0
858
Member Avatar for Pk11

Hi, I'm writing in C my program and I have a problem with this pieces of code: //lib.h typedef struct Array { char **array; char *searchDirPath; char *searchFile; char *tmpFileName; int tmpFile; int arraySize; int currIndex; } Array; // lib.c Array* createArray(int size) { Array* newArray = calloc(1,sizeof(Array)); newArray->array = …

Member Avatar for kevenm
0
2K
Member Avatar for dongtrien

Suppose I create an asp.net website project that loads data into griview from the class library, declaring the library to use loading data for griview //file: ChitietSP.aspx using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Diagnostics; // …

0
289
Member Avatar for NUGA_1

So given the following code (not my actual code since it would add unnecessary lines): typedef struct block{ int a; int table[64]; }block; typedef block* block_ptr; void getValues(block_ptr node){ int i, j; for(i=0; i<5; i++){ for(j=0; j < 15; j++){ node[i].table[j] = j; } } } int main(){ block node[10]; …

Member Avatar for Reverend Jim
0
499
Member Avatar for overwraith

This may sound wierd, or easy, I just don't have a statistics background. How do I alter the statistical value of an array of emmitted random numbers? I am completely capable of using ranges, or creating an algorithim, I just need pseudo code or a brief description to guide me …

Member Avatar for overwraith
0
750
Member Avatar for mldardy

I am starting a website where an image shows on the home page and when I scroll to hover over the image it opens a newpage. I’m trying to figure out a way to do a slow dissolve from the home page to new page and also if the user …

0
389
Member Avatar for Kerdon

I'm trying to make this queue program for school to take the next packet out of my queue (therefore delete it) in the queue function : struct packet_t *queue_retrieve(struct queue_t *queue) in line 73. I know that i have to use my write and read but i fail to understand …

Member Avatar for rproffitt
0
578
Member Avatar for Moha_3

HEEY EVERYONE ,hope you're doing well my teacher assigned us a homework wich is to create a program with C; this program takes as input a text file with some data in it .every line of the text file contains the ID of an employee and it's name and salary …

Member Avatar for Reverend Jim
0
516
Member Avatar for rollercoaster

Hi, does anyone know how to pass variables between functions in C so one function can recognise the variable passed from another function. one function knowing from another function like length = 0; while (length <= 5) { length ++; } return(length); getting the value of the length from the …

Member Avatar for Manali_2
0
4K
Member Avatar for simm3

Hello everybody, I want to convert python to c but ı did not find any converter. Is it possible to convert

Member Avatar for Reverend Jim
0
335
Member Avatar for Yoni_2

hello. how can i print out in textbox a void * value ? here is the code: uintptr_t offsetFromBuffer = (uintptr_t)internalAddress - (uintptr_t)&buffer; void * healthDecAddress = (void*)(currentChunk + offsetFromBuffer); richTextBox1->Text = healthDecAddress; // how can i do it right ?

Member Avatar for Yoni_2
0
413
Member Avatar for COKEDUDE

I am doing a team project with some people that prefer Linux and some people prefer Windows. We are also not allowed to share code for security reasons. One thing the Windows people love to whine about is a way to hold the window open. So the way they usually …

Member Avatar for liammasson33
0
2K
Member Avatar for COKEDUDE

I am trying to replace a string in a function with double pointers. I would like to see this change back in main. What am I doing wrong? These are the warnings my compiler gave me. $ gcc *.c -Wall main.c: In function ‘replacevalue’: main.c:10:12: warning: passing argument 1 of …

Member Avatar for nullptr
0
2K
Member Avatar for Ilia_2

Hi, I have a C++ program : // ConsoleApplication14.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <list> #include <queue> #include <vector> #include <string> using namespace std; class RectangularVectors { public: static std::vector<std::vector<int>> ReturnRectangularIntVector(int size1, int size2) { std::vector<std::vector<int>> newVector(size1); for (int vector1 …

Member Avatar for Nutster
0
594
Member Avatar for cppgangster

Hi I am trying to get windows positioned in specific order as show below ![desired.PNG](/attachments/large/3/6447240b1491d04046fa904f31659f9b.PNG) but I am unable to get and get always this ![wrong.PNG](/attachments/large/3/71f4b92c4f40a6afeeab7e3c2f136526.PNG) the code below is shown HDWP cmdWnds; cmdWnds = BeginDeferWindowPos(col.size()); for (int i = 0; i < col.size(); i++) { if (i == 0) …

0
333

The End.