19,876 Topics

Member Avatar for
Member Avatar for sanushks

Hi All, I'm using gdb to debug a C code which does file processing. The file i'm processing has about 100,000 records. The code runs fine until the 30,000 records and after that it produces garbage value. Could i use gdb to run the code until it reaches 30,000 records …

Member Avatar for sanushks
0
109
Member Avatar for msk32asu

Hi, I have a Windows Socket Server console app which executes power shell scripts, and it is working great. But when I try to covert it into a Windows Service it doesnt work. The service is created it does not hang as such, but when I ping the IP/Port of …

0
59
Member Avatar for sanushks

Hi All, I'm running a C code on cygwin compiled with gcc, the code basically does file processing, it runs fine on my PC, but when run on a Solaris machine, it gives Bus error and core dumps. Is it a known issue? If not, is there any way i …

Member Avatar for sanushks
0
290
Member Avatar for tksrules

I have answered few multiple choice questions.I am sure i have answered almost 95% correctly. Maybe you guys can identify if i have committed any mistakes.Just identify not solve.I will solve them myself.Just a hint what is wrong would help as i want to be sure all answers are perfect. …

Member Avatar for jephthah
0
216
Member Avatar for miniroselit
Member Avatar for Luckychap
0
148
Member Avatar for jephthah

so im working in an environment (National Instruments) that auto-generates header files for the GUI. in my GUI, i have 150-some odd LEDs arranged in a matrix to represent a large relay bank. my LEDs are named and sequenced numerically like [code]PANEL_LED_1 PANEL_LED_2 ... PANEL_LED_150 etc...[/code] which would allow me …

Member Avatar for jephthah
0
98
Member Avatar for lipee36

Hi, i'm having the same problem here... I have to send a xml file from a server and receive 16 bin files for answer.. I know how to send string and etc.. and tried to use sendfile() to send at least the xml file.. but it didn't work out... here's …

Member Avatar for jephthah
0
108
Member Avatar for javaAddict

Hi, I am trying to use this method: [URL="http://www.cs.indiana.edu/cgi-pub/oleykin/website/OpenCVHelp/ref/OpenCVRef_CxCore.htm#decl_cvCheckArr"]cvCheckArr[/URL] As a parameter I pass an IplImage and it compiles, but when I tried to run got this error: "Unsupported format in function: cvCheckArr .cxmathfuncs.cpp " I checked the above file and found from the code that it tries to convert …

0
75
Member Avatar for Pramoda.M.A

Hi All, I am facing problems with free() API of ANSI. I am using Visual Studio 2005. I am using 2 char pointers. If i copy from one to another and after if i try to free source pointer, it is giving exception. How to debug this problem? Please help …

Member Avatar for jephthah
0
85
Member Avatar for cool_zephyr
Member Avatar for Salem
0
104
Member Avatar for madtorahtut

Hello! I am rather new to c, and I am having a parsing problem. What I am trying to accomplish: I have a file filled with assignment statements such as: [CODE]var1=5 var2=80[/CODE]...etc. I want to parse through the file and then do a check to see if the variables exist …

Member Avatar for Narue
0
97
Member Avatar for Dewey1040

Ok i know this has all sorts of issues, im getting tons of errors, any suggestion on where to start? [code=C] #include <stdio.h> #include <stdlib.h> typdef char byte; void memcopy( byte *to, byte *from, int count ) { while ( count-- > 0 ) *to++ = *from++ ; } int …

Member Avatar for ArkM
0
178
Member Avatar for Vukinagauna

Please can some one help me here; I have 4 questions to solve /a. Write a member function to check whether two singly Linked List have the same contents. //b.Write a member function to reverse a singly Linked List using only one pass through the list. //c.Insert a new node …

Member Avatar for Vukinagauna
0
100
Member Avatar for Quessir

Hey guys. Trying to implement associative array with the help of libJudy. Here's small test, that doesn't work. Please, help me to find, where i did wrong? [CODE] #include <assert.h> #include <Judy.h> typedef struct { char *hash; int id; int views; } Watch_t; Pvoid_t dict = (Pvoid_t) NULL; PWord_t rcw; …

Member Avatar for Ancient Dragon
0
343
Member Avatar for scru

Do I do it like: [code=C] wchar_t *str = L"12345"; [/code] because that doesn't seem to be working.

Member Avatar for scru
-1
159
Member Avatar for Qousio

Hello. Recently I have started to learn C++, however I ran into some problems. First of all, take a look at this part of code: [CODE] while (Uncomplete) { if(counter > 8) draw = true; if(draw == true) { PlaceCursor(0, 10); cout << "Its a draw!\n" << "continue?"; getch(); Uncomplete …

Member Avatar for ArkM
0
151
Member Avatar for vishy_85

Im trying to create a c++ server. Im using the schedule_Mgmt IDL , where module-schedule_Mgmt and i hav 3 interfaces , 1-config , 2-Listener, 3-MessageServer the following is my server code : [code] #include "schedule_MgmtI.h" #include <CosNamingC.h> int main( int argc, char *argv[] ) { try { cout << "Starting …

0
68
Member Avatar for skillincarnate

I am having problems with compiling some code in C++ which i am learing from Deitel and Deitels C++ how to program. When trying to compile one of their examples i get the following errors D:\Web Design\C++\C++ how to program\Fig03_15>g++ fig03_17.cpp C:\DOCUME~1\SKILLI~1\LOCALS~1\Temp/ccUzb5iL.o:fig03_17.cpp:(.text+0x1aa): undefined reference to `GradeBook::GradeBook(std::string)' C:\DOCUME~1\SKILLI~1\LOCALS~1\Temp/ccUzb5iL.o:fig03_17.cpp:(.text+0x283): undefined reference to …

Member Avatar for Stinomus
0
364
Member Avatar for jupkw

hello the problem that i am facing is that whenever i click on the tc icon to start the compiler, the screen turns black first (which is normal). and then after about two seconds the compiler is exited from even without starting it. Even when i try running the exe …

Member Avatar for vj4u99
0
256
Member Avatar for gdreisen

I'm very new to C and am working on a card game. I've got my cards and shuffle down, but I want each card to have a name. I made my cards inside an array of structs: [code] struct card { int value; int suits; int points; char name[20]; }; …

Member Avatar for dmachop
0
126
Member Avatar for Aamit

hi, In my array arr={10,20,30,40} i want to display output like 10 20 30 40 10+20 10+30 10+40 20+30 20+40 30+40 10+20+30 10+20+40 20+30+40 10+20+30+40 How to display output like this?? how to do this please help me??

Member Avatar for siddhant3s
0
503
Member Avatar for kvprajapati

I have two integer numbers. I want to find which number is greater than other one without using relational operators.

Member Avatar for Dave Sinkula
0
184
Member Avatar for richardcyper

Arrange the following list of functions in ascending order of growth rate. If the growth rate of function f is less than the growth rate of function g, you write f < g. For functions having the same growth rate, use = to denote this case. Your answer therefore will …

Member Avatar for jephthah
-1
92
Member Avatar for lolguy

Hello guys i began reading K&R but there problem in a code i dont really understand it here code of a sequeeze function [code] /* squeeze: delete all c from s */ void squeeze(char *buffer, int c) { int i, j; for (i = j = 0; buffer[i] != '\0'; …

Member Avatar for lolguy
0
163
Member Avatar for lolguy

Hello guys I m trying to code a program to fix indented code but problem is that i will use strstr to search for the for string then i ill read it till it encounted \0 then i wanna jump to next line to add 4 spaces before the code …

Member Avatar for lolguy
0
104
Member Avatar for dzoch89

A problem asks me to make a printf statement which will print out the members of the struct given, I wrote a program to make sure I would get the right printf statement. [code] #include <stdlib.h> #include <stdio.h> int main() { struct house { 5. char style[40]; int rooms; float …

Member Avatar for dzoch89
0
83
Member Avatar for mingke

I have four arrays as input, then used it in a function that result an output. Then I sorted the output array. Next step, I want to find the index and the value of the input array that resulted the sorted array. I keep getting the wrong result. Here my …

Member Avatar for Salem
1
153
Member Avatar for DaveD3

Hello, I am finishing up my first C# application and I have one wrinkle to iron out. My form has a number of controls at the top but the majority of the area is filled with 3 datagridview controls. The datagridviews were dragged on and sized in the design view. …

Member Avatar for serkan sendur
0
85
Member Avatar for anitha joe

Hello All, I have a C program where I have created a UDP socket and bound to a particular ip address and a port number. As the program proceeds, msgs will be sent to different clients using the [B]same socket, using the same port, but each has a different ip …

Member Avatar for anitha joe
-1
191
Member Avatar for Aelphaeis

ok, I have a very serious somewhat simple problem that I just can't seem to figure out myself. Simply put I want to make a program take the lines Hello How Are You ToDay and output ToDay Are You How Hello Using the End of data marker as a newline …

Member Avatar for Narue
0
294
Member Avatar for tuse
Member Avatar for DevC++4.9.9.2

I am trying to read a line from the command prompt and output that line to a text box in my C# application. The only catch is i can't seem to get it to read a line at a time and display it in the text box as the command …

Member Avatar for DevC++4.9.9.2
0
1K
Member Avatar for shazzy99

hi, One of my freind is asking for bpsk modulator and demodulator. It's out of my domain knowledge and i'm not sure what is it about. Can you refer to some C language example codes of the above. will appreciate your quick reply thx

Member Avatar for jephthah
0
397
Member Avatar for something78

Hi, I am student doing my final term project. For my project, I am suppose to create a webpage that controls the a robot, the webpage will send out commands to allow the robot to program routines. The command will be send through serial port via the webpage. I have …

Member Avatar for mail2saion
0
77
Member Avatar for Rama_Kamisetty

i want code for the follwing series 1 1 2 1 2 3 1 2 3 4 1 2 3 4 ..................n when we n as 2 it should display 1 1 2 when we gave n as 4 it should dispaly 1 1 2 1 2 3 1 2 …

Member Avatar for ramyasowbhagya
0
93
Member Avatar for something78

Hi, I am student doing my final term project. For my project, I am suppose to create a webpage that controls the a robot, the webpage will send out commands to allow the robot to program routines. The command will be send through serial port via the webpage. I have …

Member Avatar for something78
0
94
Member Avatar for Church

Well i was looking in the paper the other day and they have this Word puzzle with a bunch of letters used to figure out what the quote of some famous guy was. Basically they take every letter of the alphabet and just change them and print it out and …

Member Avatar for NeoKyrgyz
0
243
Member Avatar for Dewey1040

i dont understand why this isnt working ill post the code thats relevent for some reason no matter what numbers i enter it will just print out that the complex number is 0.00000... idk how to fix it heres the main function [code=C] #include <stdio.h> #include "globals.h" #include "complex.h" int …

Member Avatar for jephthah
0
174
Member Avatar for waphon

this is an Object-oriented solution between ourselves of ai technique. Ai standard database chiefly contain: Main, Noun, Verb, Preposition Create database: Main. Create table columns 3 D memory x-axis, y-axis, z-axis, Class mark Input condition X Y Z Expected result X Y Z Reporting demonstration X Y Z Object enantiopathy …

Member Avatar for ArkM
0
171
Member Avatar for kaku_lala

Folks, I know we can use unsigned/signed int and char to define our own Boolean type in C. We can either use 0 or 1 to distinguish FALSE or TRUE or use TRUE as anything which is non-zero. Why can't I use float data type to define my own boolean …

Member Avatar for Narue
0
186
Member Avatar for winrawr

What's the main difference between while(){ } and do{ }while() loops? From looking at it, it looks like the former evaluates before it performs the iteration and the latter does the evaluation after each iteration... is that correct? Why would I pick one over the other? Is it mainly just …

Member Avatar for winrawr
0
148
Member Avatar for dzoch89

I need help making code that will create 4 different output files. All I know at the moment on this topic is how to fopen/fclose and the stuff in between however fopen requires the output file to be available before the program stars to run. Mabey theres an fcreate function …

Member Avatar for s_sridhar
0
91
Member Avatar for frosty1979

i am using windows 7 and i am trying to setup a program but it is asking me to install visual c++ runtime i think i got the right one but it doesn't work can anyone help me out on this thanks

Member Avatar for VernonDozier
0
122
Member Avatar for Adexter

Hi, Im working on a project for school and Im having a little trouble with one of my functions. I need a function to find the highest test score and a function to print the highest test score and the student that has it. The students first and last names, …

Member Avatar for Ancient Dragon
0
146
Member Avatar for NTxC

Hello. I'm currently having a memory leak problem in my program (C++ with MFC, VS2005) and I don't know WHY it happens, as the code seems to be OK to me. Anyway, here's the code that causes memory leaks: [code=C++]char* va( char* FormatStr, ... ) { va_list ArgPtr; char *FinalString; …

Member Avatar for NTxC
0
449
Member Avatar for Petrock6

Hello. I'm developing a encryption program. I'm testing with encryption right now. I use bitwise operators and also bitwise shifts. [OR [|], XOR[^], AND[&], NOT[~], right[>>],left[<<]] To add even more security, I went ahead and added bitwise shifts. Whenever I shift the numbers, they go over 256 [max int in …

Member Avatar for NeoKyrgyz
0
142
Member Avatar for schaffino

Heya, i'm learning c at the moment and have a project i need to complete. I'd like to start of by saying that the course i'm on is pretty poorly taught. They taught us scanf printf basic arrays basic structures and fflush which doesn't even work on my compiler. We …

Member Avatar for schaffino
0
109
Member Avatar for richardcyper

1.write a program segment that computes 1+2+3+...+(n-1)+n, where n is a data value. follow the loop body with an if statement that compares this value to (n*(n+1)) /2 and displays a message that indicates whether the value are the same or different. what message do you think will be displayed. …

Member Avatar for ArkM
0
134
Member Avatar for dzoch89

[code]typedef struct item { int number; char package[20]; char start[20]; char finish[20]; int weight; int distance; }ITEM; int i = 0; int num = 0; while(fscanf(ifp, "%d %s %s %s %d %d", &item[i].number, item[i].package, item[i].start, item[i].finish, &item[i].weight, &item[i].distance) != EOF) { num++; i++; } rewind(ifp); printf("\n\nnum = %d\n\n", num); [/code] …

Member Avatar for dzoch89
0
131
Member Avatar for wakeboarder1335

Hello, I am working on a project that involves creating both a client and server in C. The client must get from the user: A = int B = double C = int D = double Then it must send all the values to the server in one send. The …

Member Avatar for Ancient Dragon
0
117

The End.