I am a beginning ansi C student. I have been tasked by my professor to write a program that encrypts, decrypts and parses an unbroken string of characters using a dictionary. My encryption and decryption algorithms are running perfectly but I am at a
I'm trying to create an array which at each index i have a bit field i tried this code: struct bitF { unsigned int x1:1; ... unsigned int xn:1; }intBF; typedef struct intBF *arr[]; int main(){ int i; unsigned int *arr2[10] for(i=0;i<sizeof(arr2)/size
I'm using a bulk insert command for SQL Server but for some reason the first row isn't being inserted. Why can't I insert data from the first row? Is bulk insert expecting headers as default and how can i circumvent this? If I add a dummy row and set
I have this grammar: KEY : [a-zA-Z\u0160\u0161\u00C0-\u00FF][a-zA-Z_0-9\-\''\u0160\u0161\u00C0-\u00FF]* ; Reading a ISO-8859-15 encoded text file new ANTLRFileStream(fileName, "ISO-8859-15") with the string Milešovka. Why is š giving a token rec
I got this sample code and I really do not understand how does it work. It is compiled by GCC and there are no errors at all. Also, can you please tell me what this piece of code "i = i&1" does? Thank you! int main(void){ int i; for (i = 5;
I'm trying to create a filter to allow users to use only English letters (Lowercase & uppercase) and numbers. how can I do that? (ANSI) (not trying to sanitize, only to tell if a string contain non-english letters) That filter should get me a clean d
I want to update a table (target) based on the values present in another table (source). But I am looking for a syntax that will work in 4 major databases - Oracle, MS SQL Server, PostgreSQL, MySQL. So far, I am not able to find such a uniform syntax
I'm trying to sort 2d array. First i sort it by column, then by rows. Column by column is working but row by row not. What's wrong in this code? int scmpr (const void *a, const void *b){ return strcmp((const char*)a, (const char*)b); } int main(void)
In VB6,UserControl or Form or PictureBox is ANSI window in locale English 1033 (configurable in Region and Language settings). I see wParam is always 63 (Char '?') in WM_IME_CHAR or WM_UNICHAR or WM_CHAR when I am typing Unicode via MS IME or Baidu i
I have a problem that I really cannot get my head around. I know how to sort data in general but this one is taxing me! I have a list of values in an array. The values look like this: [03;02HTransactions [03;16HPost Transactions [04:02HDividends [04;
I need to extract the text between 2 string patterns in c. Example: aaaaaa<BBBB>TEXT TO EXTRACT</BBBB>aaaaaaaaa PATTERN1=<BBBB> PATTERN2=</BBBB> Thanks.Here is an alive example of how to do this #include <stdio.h> #include &l
I have this text file: Line 1. "house" Line 2. "dog" Line 3. "mouse" Line 4. "car" ... I want to change Line 2. "dog" in new Line 2."cards" how can I do? thanks! (sorry for my bad English)Your pr
I have been assigned to program a generic stack in ANSI C. It is meant to be for primitive datatypes. Until here there was no big problem whatsoever. Afterwards I was asked to reprogram my application so that even complex data types can be used on my
I have a bash script that runs and outputs to a text file however the colour codes it uses are also included what i'd like to know is how to remove them from the file, ie ^[[38;1;32mHello^[[39m ^[[38;1;31mUser^[[39m so I just want to be left with Hel
I know this queston has been asked multiple times, but still I am unable to figure this out #include<stdio.h> #include<getopt.h> int ch; int queue_time=60; int thread_num=4; char *scheduling_algo="FCFS"; extern char *optarg; int port
First I want the user to input what is the size of the desired array. So I am using: int size; scanf("&d",&size); Now I want to create an integer array using a pointer and the malloc function. This is what I did: int *p1 = (int*)malloc(s
I'm trying to open a xml file (ansi) and converting and saving it UTF-8. Here is my code: using System; using System.IO; using System.Text; using System.Xml; class Test { public static void Main() { string path = @"C:\test\test.xml"; string path
I've got an Array in a javascript file that contains Hungarian first names with with special letters like: ö ő ó á í. var names = ["Aba", "Abád", "Abbás", "Abdiás", "Abdon", "Ábel", "Abelárd
I'm dealing with some code written in manner that is really, honestly, ugly. Is there a way to auto enforce proper tabs and remove all of the random multi-line white space entries?Old Unix people have a solution for everything, including lazy program
I'm trying to create an API that is easy to use correctly and hard to use incorrectly. Imagine you had a function "bool MyObject_SetLocalDateTime(MyObject *pMyObject, params...)" which allows client to set date and time in YYYY MM DD HH MM SS fo
I am trying to remember if, using a standard c compiler (C89), the two if statements below will evaluate in the same way. snippet 1: boolean function(formattype* format) { if(format != null && (*format == format1 || *format == format2 || *format =
"The const and volatile qualifiers may precede any declaration." I saw this statement marked as true in an online test series. But in standard C(89) I can see declaration: declaration-specifiers init-declarator-listopt ; declaration-specifiers:
I've got a string declared like this: str=malloc(sizeof(char)*128); I want to clear it completely so that whenI do strncat() operation, the new characters will be written to the beginning of str. The reason I need to clear it is that I'm writing over
I'm trying to get my dequeue method working on my implementation of a LinkedList ADT. However, it is removing from the beginning of the queue instead of the end. Any help with this? I'm new to C, and am trying to port a java exercise over to C.. It's
Is an ANSI C-compliant implementation allowed to include additional types and functions in its standard library, beyond those enumerated by the standard? (An ideal answer would reference the relevant part of the ANSI standard.) I ask particularly bec
i'm trying with this plugin jquery.csvToTable to show data from csv to web page , cvs file has encoding ansi with Japanese text , but webpage has encoding utf8 , and js is not working with ansi , how is possible to convert or if exist another method
In Xcode IDE, I have an option to set C language dialect one of ANSI C GNU89 C89 GNU99 C99 Compiler Default I understand what they mean except ANSI C. Because As I know, ANSI C is just one of C89 or C99. But there should be a reason about it's on the
I have tried Ansicon and I still cannot get ansi escape sequences to become recognized and interpreted in my CMD.EXE command prompt on Windows 7 64 bit. Has anyone been able to work this correctly and get a colorized console with this OS?I ran into t
How can I find the address of a WndProc (of a window of another process). Even if I inject a DLL and try to find it with either GetClassInfoEx() or GetWindowLong() or GetWindowLongPtr() I always get values like 0xffff08ed, which is definitely not an
We are developing an application in which we need to implement spell checking for Indic languages that use ANSI fonts (not UNICODE) I am looking for a Dictionary Component or Source Code that will allow: To maintain separate dictionaries like for exa