19,876 Topics

Member Avatar for
Member Avatar for eskavvas

Hi all, I have a very large file so I want to dynamically allocate the memory of a 2d array and then fill it up with the file inputs. Before i used malloc to make the 2d array, everything worked fine (I was using a practice small .txt). However, i …

Member Avatar for eskavvas
0
814
Member Avatar for on93

need help for this question Calculate the biggest of four integers. The user inputs four integers. Your program will determine the biggest of these four numbers and print out an appropriate message, specifying this biggest value. You are required to implement and use the following functions for this task: int …

Member Avatar for on93
0
126
Member Avatar for Skrell

First, i'm new to C and trying to teach it to myself so be gentle. All i'm trying to do is malloc a block of memory so that i can store a few strings. These strings are to be pointed at by an array of pointers so that as i …

Member Avatar for Skrell
0
101
Member Avatar for Despairy

lets say I make a shortcut to a file that exists ln -s ex7 ex7_shortcut now I have a C program that checks and finds that ex7_shortcut is a symbolic link and changes it be placed at "currFolder/links/" ("currFolder/links/ex7_shortcut") 1) how (if possible) can i fix the symbolic link to …

0
95
Member Avatar for neronero

Hi I would like to make cgi-bin program which will make dynamic pictures. I know how to make cgi program which would output simple html file #include <iostream> using namespace std; int main(int argc, char* argv[]) { cout <<"Content-type: text/html\r\n\r\n" << endl; try { cout<<"<html><body><h1>Test</h1></body></html>"<<endl; } catch (exception e) { …

Member Avatar for neronero
0
340
Member Avatar for Ole Raptor

Hello, I am such a rookie when it comes to C#. I have created a class with a list. I am needing to read an xml file into this from inside the class. Then I am needing to manipulate this list from inside the class as well. I have everything …

Member Avatar for Ole Raptor
0
163
Member Avatar for BHKK

Hi, i need an help for an error. When I run this code it crush, with this error: Unhandled exception at 0x77da331f in ES_7.exe: 0xC0000005: Access violation reading location 0x00000004. Process returned -1073741819 (0xC0000005) I translated some parts of the code to better understanding NB: When I run this code …

Member Avatar for BHKK
0
604
Member Avatar for neronero

Hi, i'm programing in CodeBlocks (http://www.codeblocks.org/). I would like to add Dlib (http://dlib.net/) library to my project. How can I do this? I went to my project "Build options..."->"Search directories"->Compiler and added path to "dlib" folder. I did the same for "Linker" and "Resource compiler" (more info abaut adding libaries …

Member Avatar for Ancient Dragon
0
488
Member Avatar for somjit{}

# problem with code for converting decimal to other bases # when i give any input, a window appears saying "**a problem has occured, windows needs to close**" ![Cprob1](/attachments/large/3/Cprob1.JPG "Cprob1") i cant understand what im doing wrong here. any help will highly appreciated :) this is my code: #include<stdio.h> #include<conio.h> …

Member Avatar for somjit{}
0
175
Member Avatar for eskavvas

Hey broskis! I've only taken one class in introductory programming and my internship wants me to organize some excel data (it's in txt now). We never went over files in my c programming class so I'm struggling with this code a bit. For practicing purposes my text looks like this. …

Member Avatar for eskavvas
0
182
Member Avatar for itgrowsind

I am trying to set up a a program that gets four numbers from the user, also a random generator to get four numbers compare if any were the same and print out how many numbers were matching this is what I have so far... using System; class Program { …

Member Avatar for hericles
0
158
Member Avatar for thiemebr

Hi, I have 2 ddl, ddlCountry and ddlState, on selecting ddlCountry, the ddlState IS updated based on the chosen country BUT... when I select ddlState, the selected item in ddlState is not being masked as selected, thus I can't get the selected value. Here is the code: <asp:DropDownList ID="ddlReceiverCountry" runat="server" …

Member Avatar for thiemebr
0
1K
Member Avatar for aasi007onfire

in our college we have a repeated C aptitude question... which goes like this.... [code] int i=5 printf("%d %d %d", i--,i,i++) [/code] and the answer given to us was 5,6,5.... when asked it was said that the compiler evaluates printf from right to left...... can somebody throw some light on …

Member Avatar for deceptikon
0
278
Member Avatar for massivefermion

I've read that C# compiler's name is csc.exe I have MonoDevelop3 And can't find a file with that name. Also can find nothing which looks like a compiler in MonoDevelop's directories. The documentations didn't help too. Could you help? Thanks

Member Avatar for massivefermion
0
153
Member Avatar for on93
Member Avatar for L7Sqr
0
150
Member Avatar for alaa sam

hey everyone Well currently I'm on a very long holiday and I'm trying not to waste my time doing nothing . So can any one tell me where I can get some tasks or anything to tell me what to implement ?? so that I can learn new things in …

Member Avatar for madelinekim
0
326
Member Avatar for newbie1234

How to implement sizeof api. Means sizeof is already there but i do not want to use that. Major question is .... If i want to use size of int. than i can get by pointer but do not know in the case of array of int. I think that …

Member Avatar for sepp2k
0
129
Member Avatar for shibu2all

void quick_sort (int *a, int n) { if (n < 2) return; int p = a[n / 2]; int *l = a; int *r = a + n - 1; while (l <= r) { while (*l < p) l++; while (*r > p) r--; if (l <= r) { …

Member Avatar for sethlahaul
0
188
Member Avatar for sparsh610

hey starting data structers through pointers , i don't know how to reverse a singly linklist? pls help

Member Avatar for sethlahaul
0
174
Member Avatar for lastbencher

I made the following functions for deleting a node of a singly linked list. 1. Can these functions be improved furthur? 2. Is it necessary to free the memory of the node that is deleted? nodep deleteByValue(nodep p, int value) { nodep temp = p; if(temp->data == value) return temp->next; …

Member Avatar for sethlahaul
0
215
Member Avatar for on93
Member Avatar for Lucaci Andrew
0
293
Member Avatar for Nirvin M

Why does the following snippet produces different result than expected? #include <stdio.h> int main() { int i = 5; printf("%d %d %d", i++, i++, ++i); getchar(); } I compiled and run this code with Visual C++ 2010 and it produces the output 7 6 8 instead of 7 6 6 …

Member Avatar for TrustyTony
0
185
Member Avatar for lulug76

I am wrote a program that generates 20 random numbers from 1-99 and put them into an array. I am trying to sort them with a bucket sort, but I can't figure out how to do it. I have searched google and yahoo for information but everything I find just …

Member Avatar for deceptikon
0
195
Member Avatar for kase20

Hi everyone. I wrote the following code: if the number entered is even ie if n=6 , the column of # should be at the 3rd column (ie 6/2) if the number is odd ie if the number is 9, then the column of # should be at the 5th …

Member Avatar for kase20
0
155
Member Avatar for taigi100

Hello, I am trying to make an OpenGL Hearts game ( like the one from windows 7 or such) but I expected some problems. First I will show you the code that iv done untill now : Card.h: #ifndef Card_H #define Card_H //#include <GL/glut.h> //#include <SOIL.h> #include <stdlib.h> class Card …

0
120
Member Avatar for ashine80
Member Avatar for hwoarang69

hi i am programming for about 4 years and i want to learn how to make a operating system. for ex window, mac or unix. And i am think of storing it on a disk. I have no idea how to get started. can any one tell me the steps? …

Member Avatar for Schol-R-LEA
0
247
Member Avatar for msrikanth

Hi Everyone, Could any one provide some complex questions in C Shell Scripting as i need to conduct lab exam in scripting in 2 weeks, i have searched in google but i found only very small programs so could anyone provide some advanced shell scripting questions so that i could …

0
81
Member Avatar for jeevsmyd

For my OS lab we have linux at college and the question is to find the factors of a number and pass it use pipe function from child to main process. I googled up the syntax of pipe and I find it difficult to understand the idea. You need a …

Member Avatar for Lucaci Andrew
0
210
Member Avatar for dorien

I am trying to run an easy Android ndk app in cpp, but I get UnsatisfiedLink Error for the Generate() function. Any help would be appreciated. I am quite fluent in c++, but my java is a little bit rusty. I have been trying a lot of tips from the …

Member Avatar for dorien
0
279
Member Avatar for GilbertB

I have this form connected with SQL server : http://img171.imageshack.us/img171/7423/692012101827pm.png is there any way that when I enter a new company and press save icon, the combobox will update automatically ? Thanks

Member Avatar for ious
0
191
Member Avatar for tomtetlaw

My Ubuntu version is 12.04. I'm simply trying to include GL/glu.h in my program, but I get the error: `fatal error: GL/glu.h: No such file or directory` I include it like this: `#include <GL/glu.h>` I have libgl1-mesa-glx-dbg, libgl1-mesa-dev, mesa-common-dev all installed.

Member Avatar for tomtetlaw
0
141
Member Avatar for Perry31

Hi, Anyone suggest/Explain code optimization, time complexity of program. I came across Big O(n), Big O(...). can anyone explain what these means and how to find these for programs. -- Thanks in advance

Member Avatar for Perry31
0
687
Member Avatar for ashine80
Member Avatar for niyasc

Hi, I'm trying to make a simple applet that will display battery status using gtk+ . For that purpose I have written code given below. It continously check for battery status using acpi command and display it. Do you think that I have done things in proper way? I want …

0
194
Member Avatar for aniketpatil1987

Hi there, I have a project consisting of a asp.net webpage generating report of total usage per day of a pertucular item. the code worked in CR 9 with VS 2008 but since i converted it to CR 13 with VS 2010 the report is throwing error as "Parameter values …

0
64
Member Avatar for ashine80
Member Avatar for ashine80
Member Avatar for ashine80
Member Avatar for salmansaifi7

i want to append a node in the linked list when i append this as struct node*p; p=NULL; append(p,1); where function is declared as append(struct node*q int num) i append three node, after this i call the function for counting the node, i get the total no node is 0, …

Member Avatar for Schol-R-LEA
0
186
Member Avatar for MasterHacker110

I have this code, but when i type in one comand and then the next comand it does doe the comand i type in but the first comand i typed in. * I think it is becuase i dont clean my vector string, if so how do i clean it. …

Member Avatar for MasterHacker110
0
243
Member Avatar for vallarakesh

this program is to find the largest palindrome of 3 digit numbers.this code is workig for two digit numbers but it is not working for 3 digit numbers. `` #include<stdio.h> #include<conio.h> #include<math.h> void main() { int i,j,con=0; long int num=0,res=0; clrscr(); for(i=999;i>900;i--) { for(j=999;j>i;j--) { num=(i*j); con=pal(num); if(con==0&&num>=res) res=num; } …

Member Avatar for 2teez
0
201
Member Avatar for monmondiesel

Hi, I am running Ubuntu 12 on Virtual box and I am using GCC to compile this simple C program that has simple OpenMp pragmas : #include <stdio.h> #include <omp.h> #define MAX 10000000000 void main() { unsigned long long i,j,k,l; int threadnumber; #pragma omp parallel shared(i,j,k,l) { threadnumber = omp_get_thread_num(); …

Member Avatar for Sokurenko
0
1K
Member Avatar for Webbsta

Hello everybody, I was wondering if anybody knows whether or not it is possible to send data too fast over a NetworkStream? I have an issue with my client/server program, where I am sending large files over normal IP address (Not Local) where everything used to work fine. It would …

Member Avatar for Momerath
0
342
Member Avatar for jesskavidja

Hey there, I'm having issues with a custom string tokenizer I'm using for an assignment. I've looked around and haven't managed to find anything that really answers my question, so here goes nothing. Whenever I run the program and it runs the tokenizer, I get a seg fault. I'm fairly …

Member Avatar for Sokurenko
0
291
Member Avatar for codercpp1

I'm not sure how to do this, but i'm making a small shell in C++ in command line, with a few external scripts and executables being called. What I want to do is either make a simple web browser or a way to show web pages in C++, or if …

Member Avatar for c++Fun
0
2K
Member Avatar for sparsh610

what is comparision of linklist? when i read this question , arises two option 1.either compare value of each element. 2.just compare the length of both the link list. pls help which one is right approach to solve the question.??

Member Avatar for deceptikon
0
72
Member Avatar for sparsh610

hello friends... **1**. struct node *p; p=malloc(sizeof(struct node)); **2**. struct node *p; p=malloc(sizeof(struct node *)); what is the difference between 1 and 2 code :) pls help

Member Avatar for mike_2000_17
0
84
Member Avatar for sparsh610

hello friends, i have some problem with the concept of singly link list,,, don't know how to read it backward pls help

Member Avatar for mike_2000_17
0
852
Member Avatar for Vish0203

hello!! i was working on a small software a few days back which allows a user to login through the interfaceand see the topics inside the program. But how toavoid mis use of it??? if a person gives the software to some one else giving his user name and password …

Member Avatar for Vish0203
0
76

The End.