199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Diellza

I want to make this code with random numebr array and time executation? Does anybady nows how can I do? #include <iostream> using namespace std; void print(int a[], int sz) { for (int i = 0; i < sz; i++ ) cout << a[i] << " "; cout << endl; …

Member Avatar for Diellza
0
287
Member Avatar for divinity02

write a algorithm in pseudocode for the procedure: input a person's age and salary. If the age is over 32, then add $1000 to the salary but otherwise subtract $500 from the salary. Finally, output the age and new salary: this is the question: here is the answer well the …

Member Avatar for divinity02
0
209
Member Avatar for chaitu11
Member Avatar for kidkardel

Hello again, i have this code string descf = //insert string char[] create20spaces = { ' ', ' ', ' ',' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', …

Member Avatar for ddanbe
0
140
Member Avatar for redtribal23

I have a txt file with 5 integers, then from standard input if I entered 1 it will output 10 if I entered 3 it will output 30. I put mine in an array, I just want to know if its possible to not put it in an array and …

Member Avatar for redtribal23
0
209
Member Avatar for Chay_1

I am reading books to improve my C++ and I wanted to try to get the leftover input from the input buffer after using the delimiter in getline(), this code works, it skips the cin statement and outputs the leftover buffer contents but my question is will it always do …

Member Avatar for NathanOliver
0
497
Member Avatar for Glaven

Hii,, I need to make a program that takes in a user’s number and keep dividing it by 2 until it is 1.I need to display the division steps i'm kinda new to c++ and i do not know how to keep making it divide by 2 until 1 i …

Member Avatar for NathanOliver
0
747
Member Avatar for fatalaccidents

Hello all, I was curious as to how run many jobs serially on a Cray XE6 machine. You usually qsub things with a ccmrun (for a serial job) or an aprun (instead of mpirun or mpiexec). I first wanted to use the Pool() function, but due to it not being …

0
148
Member Avatar for Violet_82

Hi guys, as I'm fairly new to visual studio and asp.net, I might be missing something really obvious here...basically I have created a CSS file which is referenced in the aspx file (I dragged the css file from the project to my aspx file). Then I created another aspx file …

Member Avatar for BMXDad
0
330
Member Avatar for shehzad.ali.399

how can I make a telephonic conversation in my website using asp.net with c#...

Member Avatar for BMXDad
0
90
Member Avatar for CaffeineCoder

Hello to all: I've been banging my head against the proverbial wall on this (for a few days), and finally thought I'd seek thoughts on it. I have an existing submission form that has been getting hit by bots, so I'm adding a CAPTCHA to it. The entire solution is …

Member Avatar for mattster
0
321
Member Avatar for gcardonav

I run the [code](http://embed.plnkr.co/C76bGd5ao07oSP4vvPj0/preview) but the template ir not doing anything at all. Is there a problem with my syntax?

Member Avatar for glennferrie
0
218
Member Avatar for jeripotula

Hello. as I am new to coding , I couldnt understand how to create a login page without registration and without a database in ASP.NET & C#.net. i would like to write the code for only 1 user and the username and password must be in the code not in …

Member Avatar for glennferrie
0
576
Member Avatar for sana.f.qureshi_1

hello good people, i have created atab control and added a gridview in it. When i run it this is how it shows: ![42e98ae1ab28208a1d5964503f00cecd](/attachments/large/4/42e98ae1ab28208a1d5964503f00cecd.png "42e98ae1ab28208a1d5964503f00cecd") i have tried adjusting the heights and widths of both but tono avail. here is my code: <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Height="421px" style="z-index: 1; left: …

Member Avatar for sana.f.qureshi_1
0
582
Member Avatar for sana.f.qureshi_1

Hey good people, I hope you are all well. Ok so here is the scenario, i have 4 tables that i have made in sql server 2008. I am using a drop down menu to diplay their names. Like this... ![ecb53783b16f2f19f927a3cd72bee4d0](/attachments/large/4/ecb53783b16f2f19f927a3cd72bee4d0.png "ecb53783b16f2f19f927a3cd72bee4d0") I am going to use a dataGrid view. …

Member Avatar for BMXDad
0
304
Member Avatar for Papa_Don

Group, I'm trying to improve a macro in an EXCEL spreadsheet. The spreadsheet has multiple tabs (sheets), some of which have grouped rows in them. My "cleanup" routine needs to check to see if these grouped rows exist. Is there some code that does this (hopefully boolean)? If it helps, …

Member Avatar for ddanbe
0
758
Member Avatar for andruluchko

To tell the truth. this program isn't mine. I got this from book "Robert Lafore. Data structures and algorithms in java". There are all written in detail and comments how to implement a 2-3-4 tree, but I need to implement a 2-3 tree. It is not present in the book. …

Member Avatar for JamesCherrill
0
881
Member Avatar for Mahesh57

Hi All, I am trying to share articles to Facebook using Facebook share button. While i am trying to share the discription displays as "Hi You don't have an account please register an account by entering..." like message. It will happen only using to share the "http://www.crazyenews.com/" and related sub …

Member Avatar for Mahesh57
0
371
Member Avatar for Jophis

I'm working on a simple Ceasar Cipher encryption program in C. I am trying to make it simpler for my son and I to decipher so I put these rules: characters other than letters are unchanged while lowercase and uppercase will remain in their current case (so a Y incremented …

Member Avatar for loserspearl
0
175
Member Avatar for Muhammad_69
Member Avatar for sneekula
0
113
Member Avatar for kidkardel

hi, 1st of all thank you guys again for all of your help. ![a3ce81a2808d02214775965e56a6d32b](/attachments/large/4/a3ce81a2808d02214775965e56a6d32b.png "a3ce81a2808d02214775965e56a6d32b") i have this datagrid view and i want to write it on a richtextbox like: 14 APPLE0-13 @ 60.00 840.00 so on and so forth. how can i achieved getting all of them and can …

Member Avatar for kidkardel
0
2K
Member Avatar for Dudestreet

Hi Friend, Could you please help me with Row level Access Data reading? What I mean to say is(PFA Screenshot) [Click Here](http://postimg.org/image/cultofmhv/) Suppose I only need to read the Row with "EmpID" AA/0141/D/12749, how can I do it? Keep in mind that It is always going to be a random …

Member Avatar for Dudestreet
0
220
Member Avatar for Papa_Don

Group, I've created a large spreadsheet with a fair amount of code behide it. Historically it has run well and with no issues. However it has started giving me a "Run-time error '9': Subscript out of range" error. I have no idea what is causing it. It is stoping at …

Member Avatar for Papa_Don
0
2K
Member Avatar for J.C. SolvoTerra

Hi guys, I'm currently on the pretty cool Database development path. I've quickly got to terms with basic SQL with individual tables, and various queries. Now things seen to be getting a little beyond a concept I had been taught from a young age. Am I doing this right. The …

Member Avatar for jstfsklh211
0
189
Member Avatar for Xiao_1

hi do you all have any info of student attendance checking system using VB with Microsoft access woth the simple, guide, referenc or simple code on this

Member Avatar for Xiao_1
0
92
Member Avatar for jean_5

I need to do a search that specifies in witch line of the search that the information was found. For example: select * from table where height=100; this code returns 50 lines, but i want, for example, in that search, the person 'Matheus' was in the 28th line of the …

Member Avatar for pritaeas
0
258
Member Avatar for sonalchavda

Hi i m learning PHP.How can i insert a data in mysql by using onchange event in radio button, i m not used a submit button in my code can u help me by giving a solution of my prolblem by giving a little example. Thank you so much

Member Avatar for mmcdonald
0
439
Member Avatar for RikTelner

I'm here with Google Maps API. I've got map working, I learned how to set markers with custom images. I also made custom search bar and I plan to make PHP/SQL connection, so whenever user uses it, it saves copy of address in database so that it can be recalled …

Member Avatar for cereal
0
439
Member Avatar for muhd.hadziq

#include <stdio.h> int main() { char membershiptype; int purchase; //float monthly_reward; // enter membership type; printf("membership type: "); scanf("%c", &membershiptype); printf("Standard = S , Plus = P , Premium = A"); switch(membershiptype) { case 'S': printf("\n\nEnter the total monthly purchase :RM"); scanf("%d", &purchase); if (purchase < 75) printf("\nMonthly Reward :RM%.0f …

Member Avatar for Banfa
0
180
Member Avatar for Pyler

So I'm trying to remove 2 brackets from lines I'm reading from a file. For some reason when I run my program the characters in between the delimeters is removed. for example `greetings pe()ple` would end up as `greetings pe` I'm using a char array of delimiters. `char delimiters[] = …

Member Avatar for Banfa
0
1K
Member Avatar for ehpratah

Hi need some insight on how to show record from different database on the same server. i also tried using join but didnt get the correct output. im finding a way to make it work using just one query. my last resort will be using different query to select the …

Member Avatar for ehpratah
0
344
Member Avatar for Xiao_1
Member Avatar for Xiao_1
0
280
Member Avatar for Diellza

have problem with understand how to resolve error in my code. Here it comes: def counting_sort(some_list, max=100000): licznik = [0] * (max+1) for x in some_list: licznik[x] = licznik[x]+1 i=0 for x in range(max+1): for y in range(licznik[x]): some_list[i]=x i=i+1 return some_list.reverse() def gen(number, b=100000): some_list = [] return [some_list.append(random.randint(0, …

Member Avatar for Diellza
0
246
Member Avatar for PinoyDev

Good day! I just want to know on how to correctly use SendMessage API. When the save as dialog box popsup, Save button will be automatically click. Let say I have hwnd and classname value. Please see below Public Declare Function SendMessage Lib "user32" Alias "SendMessageW" (ByVal hwnd As Long, …

Member Avatar for SalmiSoft
0
857
Member Avatar for grant.baker

Ok, what I'm trying to do is have next and prev buttons to navigate through a mysql database sorted by date. Currently, the code I wrote does this, but gets stuck on duplicate dates. $Next = mysql_query("SELECT * FROM $logbook WHERE Date>='$Date' AND ID!='$ID' ORDER BY Date LIMIT 1"); $Prev …

Member Avatar for raybigto
0
3K
Member Avatar for mxwarning

Hello, I am having trouble sorting my array. I have gotten it to read out just the names in ABC order, but I need it to display all of the attributes. I have read several sites trying to figure out how to do it and I keep getting errors. Here …

Member Avatar for zolymo
0
466
Member Avatar for lui.szeleong

Hi , I m new to codeigniter and i m trying to build a login system. However the logout system is not working well. After I click logout in /main/home it shows URL error. anyone know whats the problem ? <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); …

Member Avatar for veedeoo
0
253
Member Avatar for amvx86

I have an old API from a bas file, and I'm trying to convert it. I think I'm on the right track however, I keep running into some problems with it. I can post the old one, and the new one, with the edits that I've made. Is there anyone …

Member Avatar for amvx86
0
352
Member Avatar for zebnoon

Dea Friends, it is superb serveice you are doing....lets please talk about SESSION in PHP.My code is below. <!DOCTYPE html> <?php session_start(); ?> <html> <head> <title>Login page</title> </head> <h1 style="width: 20%" >Login Page</h1> <fieldset style="width: 30%"> <legend style="background: #59CC57" >Login</legend> <body style="background: #B6ECEB"> <form method="post" > Username:<input type="text" name="username" placeholder="username" …

Member Avatar for broj1
0
469
Member Avatar for patk570

I have a code: $data=$_SESSION['title']; $view=$con->query("select flower.*, mystash.* from flower,mystash where mystash.name like '%$data%' OR flower.name like '%$data%' ORDER BY name ASC"); $check=$view; if($check!="") { while($descri=mysqli_fetch_object($view)) { I am trying to get the name from each table `flower` and `mystash` each have a column in there of `name` I am …

Member Avatar for kimhanu
0
247
Member Avatar for Jfunch

The problem I am trying to solve is Write a program using fork() to compute average of N numbers. The parent process forks a child process that takes input from the user, adds all the numbers and returns the sum and the count of numbers to the parent process that …

Member Avatar for Kyle_4
0
3K
Member Avatar for Search_not

How do I overload the cout and cin operators so as to get input and show output using an object? Heres a simple example of what I'm trying to do: class Temp{ double fTemp; public: double FahrToCelsius(double fTemp){ return (fTemp - 32.0) / 1.8; } friend std::ostream operator<<(std::ostream Out, const …

Member Avatar for Search_not
0
780
Member Avatar for Schol-R-LEA

One of the more common functions in any language is conversion of an integer to a string. This implementation, which demonstrates not only the common function activation record format but also a simple recursive function, was written in response to a recent question in which the OP posted an incomplete …

Member Avatar for Kiệt
0
7K
Member Avatar for soomro_moon

hello everyone, im working on some php project for my masters thesis, i need a help. can any one guide me how can i insert data from mysql to excel file using php. i have some data in my phpmyadmin database suppose like book_store , table name books, i want …

Member Avatar for soomro_moon
0
123
Member Avatar for sk8ergirl

I'm learning kinect development in my free time and I've read some books and other webiste and what I'm trying to do is gestures recognition for left swipe , right swipe , hand clapping , clockwise circle with left hand , anticlockwise with left hand I've successfully did the hand …

0
127
Member Avatar for Fil_1

I have been trying to make this code work for some time now. I have had an issue geting a return from toBinary. I have all of the needed includes so do not worry about them. I am some what new to C++ and even to programing in general so …

Member Avatar for ddanbe
0
246
Member Avatar for muhd.hadziq

#include <stdio.h> int main (void) { //declare variables int sales = 0; int totalsales =0; double commission = 0.0; //enter input items printf("\nsales: "); scanf("%d", &totalsales); //determine whether the data is valid if (sales <= 0 && commission = -1); else if (sales <= 10000 && commission = sales*0.2); else …

Member Avatar for muhd.hadziq
0
205
Member Avatar for Vardaan_1

Hi guys :) It's my first time posting and I need help with a program I'm supposed to write for school. I have no clue how to do it and could use any information, thank you! Here's the Information: "Ask the user to enter a word. Output the letters in …

Member Avatar for stultuske
0
171
Member Avatar for andrew909

Hi I'm creating a program that holds three arrays one for the persons last name, one for the points scored and one for the player number, now I've got all the arrays and everything done but I'm not sure as to how to return the 3 new arrays from my …

Member Avatar for kplcjl
0
285
Member Avatar for Ralphael
Member Avatar for ~s.o.s~
0
961

The End.