19,876 Topics

Member Avatar for
Member Avatar for jas2010

hi all friend I wanna Read some data from my Excel , but I can't work excel 2007, do you know what's problem.

Member Avatar for jas2010
0
297
Member Avatar for ineedsomehelp:3

[CODE]void printer(char x) { int d, b, z; for(z=x; z>=1; z--) { for(b=z; b<=x-1; b++) printf(" "); for(d=z; d>=1; d--) printf("%d ", d); printf("\n"); } }[/CODE] that's my code which is supposed to print 4 3 2 1 4 3 2 4 3 4 when input is 4. however, it …

Member Avatar for Arbus
0
215
Member Avatar for skmajharuddin

hii to all my frnd;;;; i want to know about function ; how it calls by value and address? so plz help me;;;[U[/U]

Member Avatar for Adak
-2
82
Member Avatar for Dani

Can someone please explain to me the difference between ++i and i++ when written as part of an expression (i.e. within loops and if statements) ? Thanks :)

Member Avatar for WaltP
0
662
Member Avatar for Teelnaw

Wondering if someone could guide me in the right direction. I think this code is right but can't figure out why my switch loop won't access my char array of grades and add it to an int array. [code] #include <stdio.h> int main (void) { char grade[32] = { 'A', …

Member Avatar for ari$av3s
0
280
Member Avatar for Trypanosoma

Hi. Can someone help me with how to transfer/print your last output in a word file? I'm researching and can't find a way on C. My code in C so don't suggest solutions for C++ thank you :).

Member Avatar for Ancient Dragon
0
688
Member Avatar for anjoz

My problem is that i want to get the 1st part only of the string ive done based on my code i can get the audio/x-aiff by finding the space but want i want to do is i want to is get or print the .aif is there any way …

Member Avatar for arindam31
0
114
Member Avatar for clarence_cool03
Member Avatar for kagotsky

[B]Can anyone know what program what's the best for this problem?[/B] -->Create a program that will compute for the sum of all even numbers among the ten integers inputted and print them out. Thanks in advance!:)

Member Avatar for arindam31
0
106
Member Avatar for harikrishna439

int a[3]={1,2,3}; printf("%d",a[3]); While I'm executing this snippet, I'm getting the output as 2. Is 2 a garbage value here? I don't think so... Can anyone explain how 2 comes instead of a garbage value? Any answer could be appreaciated.

Member Avatar for arindam31
0
164
Member Avatar for munnate

Hi, i need some pointers on how to approach my assignment. Dont want you to write me the code, just please point me in the right direction. I need to create a C++ program that requires the user to enter 10 student id numbers and the grade they received in …

Member Avatar for moh0
0
357
Member Avatar for thecoolman5

hi, i am trying to make a calculator and i have this code [CODE]#include<iostream> #include<sstream> using namespace std; int main (char argc) { int l = 1; for(l = l; l > 0; l--) { int q = -2; string n1 = "1+5"; int n; int e; stringstream(n1[q=q+2]) >> n; …

Member Avatar for mike_2000_17
0
1K
Member Avatar for asrockw7

So I got curious with OpenGL and I ended up having a copy of the "redbook", as people call it. Initially when I tried relying only on online sources like tutorials and whatnot they were all written using WinMain which was a drag so that sort of put me away …

Member Avatar for Sodabread
0
587
Member Avatar for jmurph333

In C# if you want the thread to pause you would use: [CODE]System.Threading.Thread.Sleep(300);[/CODE] However, I cannot seem to find a C++ equivalent to this? How would I do this, or is it just not possible? Any help is appreciated.

Member Avatar for jmurph333
0
156
Member Avatar for DOT6

Hello, I am creating a card game and need some advice/pointers or code snipets if possible on sprite movement in the sence I need to create an action of a card been drawn from the deck. Basicly I need to make the sprite(card) move from the deck posion(x,y) to the …

Member Avatar for DOT6
0
274
Member Avatar for mrar85

Hello, am a newbie in c#.. i have a question, how do you use read data from file and use it? my data file is something like this: Name amount1 amount2 [CODE]johen 1234 231411[/CODE] i have this code so far: [CODE]using System; using System.Data; using System.IO; class Class1 { static …

Member Avatar for mrar85
0
344
Member Avatar for byrosport

[CODE]// name-printer.cpp : Defines the entry point for the console application. // #include <stdlib.h> #include <iostream> #include <iomanip> #include <fstream> #include <string> #include <cstdlib> using namespace std; int main () { string inputNameString; //the Name string that is entered by the user string names[3]; // A string array that will …

Member Avatar for WaltP
0
199
Member Avatar for D33wakar

I'm trying to convert hexadecimal values to Binary. I've done Decimal values to Binary up to 32 bits in this way: [CODE] #include <stdio.h> int showbits(int);/**************function*prototype******************************/ int main() { unsigned int num; printf("enter the number."); scanf("%d",&num); printf("%d in binary is ",num); printf("\n"); showbits(num);/*********************function*call********************************/ return 0; } showbits (int n)/******************function*definition****************************/ //* …

Member Avatar for D33wakar
0
407
Member Avatar for syria718

[CODE]char main()/*Start of the function main???*/ { char choice1; char choices = 'y'; while(choices == 'y' && choices != 'n'){/*while loop initialization*/ print(); getchar(); scanf("%c",&choice1); printf("%c",choice1); switch(choice1){/*Switch case statement,,,*/ case 'a': case 'A': addContact(); break; case 'f': case 'F': search(contacts); break; case 'v': case 'V': list(); break; case 'e': case …

Member Avatar for Narue
0
277
Member Avatar for Chamath
Member Avatar for Chamath
0
157
Member Avatar for Daniel_Wright

Hey! I have a problem. I've been coding Python for two years now, and it's great, but now I'd like to use a module called "ctypes" to import C function into Python. I know how to do it and all, but the problem is: I know how to program in …

Member Avatar for Daniel_Wright
0
302
Member Avatar for cemali_ys

Hello! I am writing a program to execute another process. But the argment string has " ) ( ; / \ symbols. So it does not allow me to start the program with the true string (argument)... Here is the program: the program is on the user agent string: [CODE]#include …

Member Avatar for cemali_ys
0
143
Member Avatar for Pro2000

Hello everybody.. I've been wondering whether the C language can copy files from the internet into the user's device, and whether it can process web pages and databases or not.. I think that ASP can do this. However, what should I do if my server's operating system is Linux?? Is …

Member Avatar for Pro2000
0
144
Member Avatar for syria718

[CODE] deleteCont(){/*function in deleting contacts*/ printf("enter contact you want to delete: "); getchar(); fgets(find,100,stdin); j = 0; while(strcmp(contacts[j],find) != 0){/*start of while loop*/ if (strcmp(contacts[i],find) == 0){/*start of first while loop*/ printf("you want to delete %s",contacts[i]); size = strlen(contacts[j]); for(i = 0 ; i < size ; i++){/*start of 2nd …

Member Avatar for syria718
0
122
Member Avatar for tubby123

I am finding the recursion very difficult on this one. Could someone explain this to me. If this is a famous algorithm, a link containing the explanation would also do. I thought probably a couple of magic lines from you would change the way i am looking at this. I …

Member Avatar for nezachem
0
78
Member Avatar for mtatadotcom

hello, i need help with this sub program, everything ele works fine except the subprogram that should compute the smallest and largest number in the array [CODE] #include<conio.h> #include<stdio.h> #define MAX 10 int input(void); int range(int i,int *s1,int *s2,int *s3,int *l1,int *l2,int *l3,int f[MAX],int hf[MAX],int lf[MAX]); void output(int v,int s1,int …

Member Avatar for mtatadotcom
0
167
Member Avatar for DarkPyros

i wrote a program to take text from a file of my choice named "data" and print it out on the screen, how can i tweak this so taht when the text comes out , it would be all in upper case using toupper?? this is the code [CODE]#include <stdio.h> …

Member Avatar for DarkPyros
0
184
Member Avatar for syria718

please help me fix these problem,,,, when i'm running the program it exits emediately [CODE]main()/*Start of the function main???*/ { do{/*do while loop initialization*/ print(); scanf("%c",&choice1); switch(choice1){ case 'A': case 'a': addContact(); break; case 'F': case 'f': search(contacts); break; case 'v': case 'V': list(); break; case 'e': case 'E': edit(contacts); …

Member Avatar for syria718
0
160
Member Avatar for busty043

anyone can you help me to my C++ i cant take the error everytime i make a program i got error and can you give me a program that can solve the area of Circle In Turbo C. thanks

Member Avatar for Narue
-2
145
Member Avatar for Graphix

Hi, At the moment I am trying to open a log file with notepad.exe while the original process continues. As I am developing for Windows, fork() is not available for me. I googled alot and found a good reference to opening processes ([url]http://www.yolinux.com/TUTORIALS/ForkExecProcesses.html[/url]), however they all put the original process …

Member Avatar for Graphix
0
266
Member Avatar for reza.adinata

Hi, I am starting to learn C programming. I recently stumbled across a structure below #include <stdio.h> #include <stdlib.h> [CODE] #include <stdio.h> #include <stdlib.h> typedef struct { int value; } fteid_t; typedef struct { fteid_t *fteid; // Optional Ins 0 } context_t; typedef struct { context_t default_bearer; } send_request; [/code] …

Member Avatar for reza.adinata
0
115
Member Avatar for murugavadivel

Getting Error after installing Turbo C.... how to rectify this problem.... Reply to this E-mail id: [email removed] ERROR: Sorry, unrecoverable internal error. Press ESC. EXCEPTION 13:general protection fault at 036F:3253 error code 0000 ax=0000,bx=0000,cx=0005,dx=0000,di=0000,si=0001 ds=069F limit=FFFF segment# 004D C:\TC\BIN\TC.EXE es=0000 limit=INVL segment# cs=036F limit=3881 segment# 001A C:\TC\BIN\TC.EXE ss=069F limit=FFFF …

Member Avatar for Salem
0
372
Member Avatar for DarkPyros

Hey, this code accepts data (type int) into a 4 by 4 array. im using 1234 as an example when entered, the data would be stored as: 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 the code the rotates it once to …

Member Avatar for DarkPyros
0
168
Member Avatar for acnodnem

I'm making a program that calculate wages, but I'm having problems in seeking the rates in the file, an example of one table.[URL="http://3.bp.blogspot.com/_xrZFmlhX0Ts/SYofqkmc1bI/AAAAAAAAO-Y/XfgESqYqZms/s400/tabela+2.JPG"]http://3.bp.blogspot.com/_xrZFmlhX0Ts/SYofqkmc1bI/AAAAAAAAO-Y/XfgESqYqZms/s400/tabela+2.JPG[/URL] the function receiving the salary and number of dependent, will seek in the file for the correct rate that this person as to pay. I thought of …

Member Avatar for acnodnem
0
223
Member Avatar for Graphix

Hi, Recently I started working on a project (it's called 'fd') that needs to retrieve the current processes running. It is written in C using the WinAPI. I am running Windows XP SP3 and am using MinGW compiler with Code::Blocks. After much searching I found the PSAPI to provide the …

Member Avatar for m4ster_r0shi
0
941
Member Avatar for gujinni

anybody know how to explain this??? set_difference(a.begin(), a.end(), b.begin(), b.end(), result.begin()); std::=is this algorithm??? how thus this code work??? vector<char>=how vectors work??? cassert=how thus this work??? back_inserter(setDifference)->i don't know how this code work???

Member Avatar for gujinni
0
270
Member Avatar for neah
Member Avatar for Adak
0
29
Member Avatar for melfoy

Hey , i am new to data structure and specially Graph . And i was going through a problem for finding the best path [url]http://www.codechef.com/JULY11/problems/LOKBIL/[/url] And couldn't think something usable. SO , if u guys help that will be a good start of me on this site too. PS i …

Member Avatar for alwaysLearning0
0
236
Member Avatar for Abhishek1857

whenever I start programing,i.e. #include<stdio.h> and compile it. An error is shown and message is displayed as "unable to open the file stdio.h". Please help me to remove the error.

Member Avatar for D33wakar
0
62
Member Avatar for rachelir

I have set up the following structs: [CODE]typedef struct lineList { int lineNum; struct lineList* Next; }*Line; typedef struct DictionaryList { char* word; Line lines; struct dictionaryList* Next; }*Dictionary; and then I have defined: Dictionary head = NULL; /*is a pointer to head of dictionary list */ Dictionary node = …

Member Avatar for arkoenig
0
206
Member Avatar for asrockw7

[CODE] typedef struct bunny_info{ /* MORE MEMBERS HERE */ struct bunny_info *nextBunny; }bunny; bunny *make_bunny(){ bunny *bunnyPtr; /* SOME CODE HERE */ return bunnyPtr; } bunny *makebunny(bunny *bunnyList, short int makeCount){ bunny *newBunny = NULL, *endPtr = bunnyList; while(makeCount > 0){ if(bunnyList != NULL){ bunny *temp = bunnyList; while(temp->nextBunny != …

Member Avatar for Narue
0
173
Member Avatar for byrosport

Okay the text on my input file is Wxmv_bpm_xwl_jig_lwwza,_PIT._Q'u_awzzg,_Lidm._Q'u_inziql_Q_kiv'b_lw_bpib. Here's My code but for some reason I can't get my program to convert the message to my output.txt file. Can someone please help thanks [CODE] #include <iostream> #include <fstream> #include <cstdlib> using namespace std; int main() { string str; int …

Member Avatar for byrosport
0
284
Member Avatar for surender_kumar

Hi friends I am a beginer in C. I want to make a simple program in which there are two balls on the screen. These two balls will Strike when the user presses any key ? Please help me with full code snippets.

Member Avatar for pseudorandom21
1
316
Member Avatar for jejak

Hey everyone. I'm really need help for important assignment. I need submit before 10 Jully 2001. but i'm stuck with my task. Can someone help to correct my assignment. Thank so much. Love u all.. This might a simple program but i really stuck.. help !!! QUESTION 1 As a …

Member Avatar for Adak
0
665
Member Avatar for lianpiau

I'm want datagridview display numeric only for certain column. eg: column is store length. data will display 25mm. Now I'm want show 25 only in datagridview column.

Member Avatar for Mitja Bonca
0
839
Member Avatar for byrosport

Okay I need to create this Program and I have no Idea where to start. you will write a program that performs a threshold filter on a sequence of one-dimensional data. A threshold filter replaces values in an array with preset constants based on whether the values are in the …

Member Avatar for NathanOliver
0
309
Member Avatar for awslc

Hey guys, Just wondering if you could assist me quickly with some validation. I have some strings in for the format: MM:SS.mm Where MM = Minutes, SS = Seconds, mm = Milliseconds. I'm just wondering whether you can help me with how to validate to ensure an input string is …

Member Avatar for awslc
0
354
Member Avatar for gman1991

[CODE]//====================================================== //this is the grading sorting program for part one //====================================================== #include <stdio.h> #include <stdlib.h> #include <string.h> #define SIZE 10 int main() { FILE *ifp; // file pointer, points to the file char filename[32]; // store file name int ID [SIZE],grade[SIZE]; int i; int sum_grades = 0; //opening file by …

Member Avatar for Salem
0
123
Member Avatar for alex1050

[CODE]int main() { // stating my primivative data types and variables float num1,result; char symbol, choice; printf("Calculator Is ON\n"); do{ result=0.0; //assign 0.0 to result printf("Result=%.1f\n", result); scanf(" %c",&symbol); while((symbol!='r') && (symbol!='R')) { scanf(" %f",&num1); switch(symbol) { case'+': result=result+num1; printf("Result = %.1f\n",result); break; case'-': result=result-num1; printf("Result = %.1f\n",result); break; case'*': …

Member Avatar for alex1050
0
107
Member Avatar for jashbela

[CODE]#include <iostream> using namespace std ; int main() ; { score and grade // declare variables ; float total_score // total weigted points ; char grade // letter grade ; int A , B , C , D , F ; // read in total score ; cout << endl …

Member Avatar for jashbela
0
336

The End.